IT SOLUTIONS
Your full service technology partner! 
-Collapse +Expand
Delphi
Search Delphi Group:

Advanced
-Collapse +Expand Delphi To/From
To/FromCODEGuides
-Collapse +Expand Delphi Store
PRESTWOODSTORE

Prestwood eMagazine

June Edition
Subscribe now! It's Free!
Enter your email:

   ► MB LobbyPascal and Delphi Coding Board   Print This     

Delphi Single User Apps Topic Most Active Threads

Non-distributed database applications including questions on single user, multi-user, BDE, non-BDE, TDataSet, TTable, TQuery, ADS, MyBASE, etc.
<table style="BORDER-RIGHT: #800000 1px dotted; BORDER-TOP: #800000 1px dotted; BORDER-LEFT: #800000 1px dotted; BORDER-BOTTOM: #800000 1px dotted" cellspacing="0" width="100%" border="0"><tbody><tr> <td bgcolor="#dadada" class="darkcolor2" align="center"
 Show:
New Activity New Threads Oldest Unanswered Most Active Most Read
  


25 Threads:

Add New ThreadRandom Thread

Thread 25 of 25
Thread Starter  

Daydreamer
Database Problems
Hello everyone!  I am new to Delphi and I am picking it up really quickly by the way.  My problem is I haven't seen a working Mysql database that worked from examples I have downloaded.  I have gotten a few Access database running with Delphi.  What I can't seem to do however is get a certain recordset.  I can't find no information on pulling a specific recordset with Access/Delphi. Here is what I am trying to do:  when a person logs on to the chatroom server, I want them to have access  to the information they entered in there personal record only? If there is an easier way to do this besides using Access, can someone point me in the right direction please.  I am using Delphi 7. Thanking you all in advance!!! 
13 years ago
9 replies. Last post:

Wes
{Too Long!}
12 years ago
Nothing New Since Your Last Visit
4944
Hits

Thread 24 of 25
Thread Starter  

rt
DB navigator
Ideally I would like a bit of code that I could activate when say leaving a DBEditBox that would emulate exactly what the post button does on the DB navigator bar without the DB nav bar getting involved at all., , I have tried using 'post' in various guises without success due I suspect to datamodule peakiness! , rt
18 years ago
8 replies. Last post:

rt
{Too Long!}
18 years ago
Nothing New Since Your Last Visit
2672
Hits

Thread 23 of 25
Thread Starter  

Creeden
Calculations with blank Edit Boxes
{Too Long!}
18 years ago
7 replies. Last post:

Creeden
{Too Long!}
18 years ago
Nothing New Since Your Last Visit
13789
Hits

Thread 22 of 25
Thread Starter  

rt
Posting records
{Too Long!}
18 years ago
7 replies. Last post:

Rick Carter
Forgive me if I'm stating the obvious, but at the start you said it worked with the table component on the form, but not in the data module. When you drop a table component onto the form, the appropriate "uses" are automatically added; could it be that your form is missing "dbtables" or something else that it needs in the "uses" statement? And does your form also have the data module in its "uses" statement?
18 years ago
Nothing New Since Your Last Visit
2686
Hits

Thread 21 of 25
Thread Starter  

Aleks Ozolins
16-bit applications
Is it possible to compile 16-bit applications with Delphi? I can't seem to find any info in the help or on Google about it., , Thanks.
18 years ago
7 replies. Last post:

sixy
No luck Scott. I went and checked the 'generate console application' (I hadn't before) and tried it again under DOS, but it's still giving me the same message. Is there perhaps something else I'm missing? , , Thanks,, -Aleks
18 years ago
Nothing New Since Your Last Visit
2401
Hits

Thread 20 of 25
Thread Starter  

rt
Calc fields
I'm having just a little trouble getting a calculated field to work in Delphi6 - , , On a form with a QReport component there are 6 sub-detail bands showing various figures, with each sub-detail band having a calculated field showing a 'total' for that bands particular info. Each 'total' calculated field has a different name such as SubTotLabour, SubTotMachine etc. , , All the data is linked to various tables in a datamodule and everything works fine except ... that I cannot seem to be able to get a calculated field to add all the subtotal fields together to show a grand total - the field is blank (nonexistant) every time. Any ideas? , rt
18 years ago
6 replies. Last post:

rt
{Too Long!}
18 years ago
Nothing New Since Your Last Visit
1570
Hits

Thread 19 of 25
Thread Starter  

NevilleRichards
Delphi 1 - Creating an Alias
Subsequent versiona of Delphi include methods in the TSession component to create an Alias on the fly, and even store it. How would you accomplish the same in D1, where the methods in TSession are not there., , Neville
19 years ago
6 replies. Last post:

Scott
{Too Long!}
19 years ago
Nothing New Since Your Last Visit
2092
Hits

Thread 18 of 25
Thread Starter  

mdelattr
How to pass a buffer parameter in a procedure and
I am trying to pass a buffer as parameters in a call to a procedure but the recievd value in the parameter is empty, i have tried to pass it as a pointer but nothing is working if someone got an idea it will be nice:, , PBuffer := @buffer;, /..../ , MessageDispatcher.writeBuffer(PBuffer,1024);, , procedure TMessageDispatcher.WriteStr(ch:String);, var chaine : PChar;, begin, ch:=lowercase(ch);, ch:=ch+#13;, chaine := PChar(ch);, if DM.Comm32.Write(chaine^,length(ch))=-1 then, DefaultReceiver.StdOutput.WriteStr('*** COM TIMEOUT ***');, end;
19 years ago
6 replies. Last post:

wpantoja
The Buffer parameter is not a pointer. You need to type-cast the address of Buffer instead., ,
, procedure TMessageDispatcher.WriteBuffer (var Buffer; Count : LongInt);,  , var,    Test : PChar;,  , begin,    Test := PChar(@Buffer);,    DM.Comm32.Write(Test, Count);, end;
19 years ago
Nothing New Since Your Last Visit
1832
Hits

Thread 17 of 25
Thread Starter  

hyp3n0zy5
Creating/modifying Interbase databases
The Database Desktop does not support Interbase databases. How can I work with Interbase databases in the the same way as the Database Desktop? Creating/modifying tables, editing data etc., in a visual way. I have not seen any program like that shipping with Interbase.
19 years ago
5 replies. Last post:

lrutledge
In my opinion, the best tool for working with Interbase is "[b]Interbase Workbench[/b]", available from [URL=http://www.interbaseworkbench.com/]Interbase Workbench Home Page[/URL].
19 years ago
Nothing New Since Your Last Visit
1799
Hits

Thread 16 of 25
Thread Starter  

Negative
Making a spectrogram
I have written a program that does soundanalyses with a FFT-function. To view the data I want to display it in a spectrogram. The method I have applied now is drawing the frequencies on the vertical axis and time on the horizontal axis. The amplitude of the signal is displayed using different colors. To draw the colors on the bitmap I currently use the Pixel function of the Canvas, but this goes really slow., , My question is : Is there another, faster method to draw colors on the bitmap; keeping in mind that every pixel could have another color?
19 years ago
Nothing New Since Your Last Visit
6160
Hits

Thread 15 of 25
Thread Starter  

rt
A little guidance..
Hi, Bit off my normal Paradox patch, but I thought in view of the fact that Paradox is slowly dying that I ought have a go at a DB using Delphi for a change - and I have even dusted off my copy of D3Pro. , , Is there anything special in the information line that I should be begging or borrowing to get me going - or something like a decent article or guide on converting a Paradox DB to Delphi that might help?, , All (sanitary) suggestions welcome!, rt :)
18 years ago
5 replies. Last post:

rt
Well, thanks for the suggestions - I've done both of them., And, you are of course quite right about V6, which is why I dusted off V3 - so now I had better start using it!, rt
18 years ago
Nothing New Since Your Last Visit
1361
Hits

Thread 14 of 25
Thread Starter  

C.Oberhaus
Method pointers
Hey all, , Has anyone had experience with method pointers? They are pointers to methods which consist of two addresses (apparently) - one points to the instance of the class, the other to the method., , My question is, does anyone know how to extract these two pointers and hand them to another function (in my case, hand them to a dll function) so the other function can use that method?, , I have had trouble even extracting one of the addresses of a method (although a static function pointer is simple)- but I can get one using, , , methodAddress('sendEmail'); , , , But calling the method using this pointer results in an access violation error., , Any help greatly appreciated, Pea, , p.s Would have posted on other board (delphi/other) but has been down for a week or so.
19 years ago
5 replies. Last post:

wpantoja
Good solution to a tricky problem. As I mentioned before, using an entry point function to access a method within an object is usually how this kind of thing is done. Although it is possible to get the complete method pointer, the way you did is better from a compatibility point of view. There is no danger of your program breaking if Borland changed the way method pointers are stored in future releases.
19 years ago
Nothing New Since Your Last Visit
1691
Hits

Thread 13 of 25
Thread Starter  

Shyami
'Access violation at address...' error
Hello pals,, , I have a Delphi application connecting to an Oracle database sitting on a Citrix server. When I try to do certain things I get an error 'Access violation at address...' The application was not developed inhouse and I do not know Delphi & Citrix so I can't guess why I get the error message. I get this message even when I am logged in as administrator on the citrix server and try to open a client session from there. The application runs without any problem on Windows NT/98. The problem seems to be specific to Citrix and Delphi, can anybody please help., , Hope I have given enough details., , Thanks,, Confused , -Shyami
18 years ago
5 replies. Last post:

Shyamis
Thanks for the reply Scott, I will try to check out the permissions on the directories. I will let you know if my application worked and how, hopefully it should help someone who is having the same problems as me!, , Thanks again,, -Shyami
18 years ago
Nothing New Since Your Last Visit
17493
Hits

Thread 12 of 25
Thread Starter  

Ron Roper
How to change sort to descending?
{Too Long!}
18 years ago
5 replies. Last post:

rdkram

If it is an index, then by default it is automatically ascending.

When selecting the data, include a SORT BY clause and then DESC for descending - it is automatically ascending by default. Here is an example:
SELECT FieldA, FieldB, FieldC FROM Employee ORDER BY FieldB; 
SELECT FieldA, FieldB, FieldC FROM Employee ORDER BY FieldB DESC;

 

9 years ago
Nothing New Since Your Last Visit
7980
Hits

Thread 11 of 25
Thread Starter  

MET
OnKeyDown / OnKeyPress
In my Delphi program a key-filter-procedure is called OnKeyDown, , which veryfies the variable (Key : word). For a number of keys, Char(Key) , does not correspond to the character of the key as indicated on the key-board., However, in the following OnKeyPress the variable key corresponds , to the correct character., , My question:, How can I determine already in the OnKeyDown-procedure the correct key?
18 years ago
5 replies. Last post:

m-e.tschudin
The answer to certain problems is some time very simple. "Lemy" from [URL=http://www.swissdelphicenter.ch]www.swissdelphicenter.ch[/URL] gave me the solution:, , procedure TForm1.FormKeyDown(Sender: TObject; var Key: Word; , Shift: TShiftState); , begin , if ( ( Key = VkKeyScan('-') ) , and , ( Shift = [] ) ), Then Application.MessageBox('"-" gedrÔü┐ckt', Nil, MB_OK); , end;, , Best greetings , Marcel E. Tschudin
18 years ago
Nothing New Since Your Last Visit
3796
Hits

Thread 10 of 25
Thread Starter  

rt
It should be easy
{Too Long!}
17 years ago
5 replies. Last post:

rt
Thats very kind, give me a day or so and I'll send something., rt
17 years ago
Nothing New Since Your Last Visit
2291
Hits

Thread 9 of 25
Thread Starter  

smw
Where is my dll located?
I have a delphi dll, and I need to be able find the directory where the dll is located. Application.ExeName returns the location of the application calling the dll, but I need to know the location of the actual dll (it is not the same place as the calling application and not in the System directory). Is there a way to do this?? It seems such a simple thing but I am new to delphi and not sure how to do it.
17 years ago
5 replies. Last post:

smw
Thanks for that. Such a simple answer in the end and i have been trying to figure this out for a long time. I ended up just writing the following function to return the location of the dll being used., , function GetModuleFileSpec: String;, var, cret: integer;, test: string;, ModName: array[0..MAX_PATH - 1] of Char;, begin, Windows.GetModuleFileName(HInstance, ModName, SizeOf(ModName));, GetModuleFileSpec := ModName;, , end;
17 years ago
Nothing New Since Your Last Visit
2835
Hits

Thread 8 of 25
Thread Starter  

rt
Access violation
Now heres a little problem. When trying to open a report from a button on a form I get the following message, which I expect we have all seen at some time or other., , "Project MyProg.exe raised exception class EAccessViolation with message 'Access violation at address 004C2699 in module 'MyProg.exe' Read of address FFFFFFFF. Process stopped. Use step or Run to continue", , I'm using D7 Pro and the simple bit of button code using works fine on another project. So, what steps can (or should) I take to get to the bottom of this - there is the view CPU thingy but that looks a bit highly testicle Bomb! , rt
18 years ago
4 replies. Last post:

rt
{Too Long!}
18 years ago
Nothing New Since Your Last Visit
1391
Hits

Thread 7 of 25
Thread Starter  

Raimundo
Varbyte in Delphi
How can I display a field varbyte in a DBGrid in Delphi 4?
16 years ago
Nothing New Since Your Last Visit
7790
Hits

Thread 6 of 25
Thread Starter  

owen.moore
Can anybody help me with getti...
Can anybody help me with getting a directory file listing into a listbox so that I can programatticlly go through the listbox and put the filenames into a database they Database part is not causing me any trouble I can get it into  a dirlistbox but can not use that to then post certain of the file names to the Database any help is most appreciated Owen
10 years ago
4 replies. Last post:

Wes
Hi Larry, Thanks for the great post putting some meat on the bones of my suggestions. There's nothing like good sample code to get one started. I wanted to post some, but time didn't permit. Glad you did.
10 years ago
Nothing New Since Your Last Visit
4069
Hits

Thread 5 of 25
Thread Starter  

rocarobin
Display the clicked/selected filename in the form
Hello Delphi Users Below is the result of the clicked/selected filename outside from delphi form. selected filename I have a code but its complicated, from daddy of tek-tip., Is there any simple code to run the program? Thanks.,
11 years ago
4 replies. Last post:

rocarobin
Thanks for the infos. I'm glad of it.,
11 years ago
Nothing New Since Your Last Visit
3238
Hits

Thread 4 of 25
Thread Starter  

rt
Answers on a postcard please..
I have been putting off for ages trying to think this problem through, so could I put it out as a hyperthetical problem and ask for some help to solve by whatever solution ., , The scenario -, There are six sets of 3 DBEdit boxes all referencing a different table on a DataModule. The user does not have delete record option, but can only edit the two entry Boxes A and B., , Box A is Integer, Box B is Currency, Box C is the result of A*B and is 'read only', , The problem -, If only box A or B has an entry then Box C is to remain empty and a message asks to confirm deletion of the sole (incorrect) entry in either box A or B. , If, at a later date an entry to either box A or B is deleted then the content of the remaining boxes is also to be deleted. , The table records are to be updated for every correct entry., , All help or suggestions greatly appreciated as I can't put this off any longer., Send your correct answers on a postcard to.., sorry that's a bit of a British thing! , rt
18 years ago
4 replies. Last post:

rt
Thanks again and FastReport is like QuickReport but different if you see what I mean, horses for courses and other silly expressions!, rt
18 years ago
Nothing New Since Your Last Visit
1213
Hits

Thread 3 of 25
Thread Starter  

RavenMaster
DLL and TStringList
Hi,, , i made a DLL with a number of routines. Among the variables is ( Var Lines : TStringList )., I make the stringlist and pass it to the procedure, the procedure does it's thing then the Lines.Text gets the correct data. I've checked that. The problem now is this : i try to free the TStringList object like this : Lines.Free, This results in a invalid pointer operation address FFFFFF, , I tryed the same with the a regular unit then it works, but when i use the DLL ( same routine ) then i get this error., , Any idea's what might be causing this ?, Since i can access the Text property correctly after processing by the routine in the DLL i assume that the pointer to the object is still correct,.. so what could it be ???, , Help Plz. , Thx
18 years ago
4 replies. Last post:

ravenmaster
Tnx., , I understand now., I'm gonne use PChar's instead to pass the text between exe and DLL.
18 years ago
Nothing New Since Your Last Visit
3464
Hits

Thread 2 of 25
Thread Starter  

rt
Table edits
{Too Long!}
18 years ago
4 replies. Last post:

rt
{Too Long!}
18 years ago
Nothing New Since Your Last Visit
1474
Hits

Thread 1 of 25
Thread Starter  

rt
AsDateTime
I was trying to get the AsDateTime feature to work, but have to admit after some experimentation I have given up!, , The following bit of code would seem in theory to do what I want. which is to put the date selected from the DateEdit thing into the table field MyDateField and then display it in a grid -, , MyTable.FieldByName('MyDateField').AsDateTime:= DateEdit.Date;, , I've had this working on a form with a datasource and a table - the problem is that it refuses to work when the form is linked to a data module for table data and I can find no examples in this situation., , I think it is the syntax which has the better of me, so what syntax should I be using for this particular case and when referencing tables via a datamodule in general?, rt Confused
18 years ago
4 replies. Last post:

rt
{Too Long!}
18 years ago
Nothing New Since Your Last Visit
1276
Hits

New Thread
Sales Website: www.prestwood.com Or visit our legacy sales site: 
legacy.prestwood.com


©1995-2020 Prestwood IT Solutions.   [Security & Privacy]