devxlogo

Tip Bank

Date Comparisons

Question: I cannot find much info on how to do Date math. I am trying to determine elapsed days from a record entry date to the current date. I am

How to Use the CreateToolbarEx Function

Question: How do you use the CreateToolbarEx function? I want to use it to create dockable tool bars. Answer: With CreateToolBarEx, you’re walking into real low-level stuff that willrequire that

Memo Fields and Carets

Question: I need to be able to move the caret in my memo field back to the begining of the field. Any idea how I do this? Answer: Try this:Memo1.SelStart(0);This

Putting a char into a Pchar

Question: I’m using the Winexec command and trying to use a string as the argument, but Winexec takes only a Pchar as its argument. I can’t figure out how to

DBLookupComboBox

Question: Can the drop-down items for a DBLookupComboBox be populated from the results of a TQuery? Answer: Yes, a query can act as the data source for a TDBLookupCombo. You

Resizing Resolution

Question: How do I re-size the buttons, etc. on my forms when the resolution changes? If I create something in Delphi at a high resolution and run it on a

Filtering Table Records

Question: I want to be able to filter records in a table based on criteria in, say, three combo boxes on a form. Answer: If you have indexes on those

Compiled Program won’t Run

Question: I’m a Delphi rookie but an experienced programmer in Turbo Pascal.I’m trying to use DBF tables, with good results.But when I copy my compiled programs to a disketteand install