Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Search results for query: *

  1. onealm

    Insert Trigger, change values

    If you are using ASA, your trigger will look something like this: create trigger tbi_DefaultMyTableFK before insert on MyTable referencing NEW as new_rows for each row begin if MyFKField is null then //logic to set FKField default value... select max(PKField) into...
  2. onealm

    selecting current date

    You don't need to select the current date. If you use ASE, use this... ... where date_index = Today(*) If you use ASA, you can use Today(*) as above, or you can use Current Date, like this: ... where date_index = Current Date
  3. onealm

    Extracting date part alone from a datetime field

    If the comparison you are performing is in Crystal Reports, then you can use the Crystal Reports Date function: Date( {datetime expression} ). If you are trying to do this in ASA, ASA has a similar Date function. ASE may also support a similar function but I don't know for sure as I haven't...
  4. onealm

    CONVERT vs LIKE -> Who's the winner?

    Using AColumn LIKE 'SOME TEXT%' is interpreted by the parser into the following operation which can be nicely optimized if the column you use is indexed: AColumn >= 'SOME TEXT' AND AColumn <= 'SOME TEXT' + &quot;CHAR&quot;(255) The query parser is smart enough to recognize that anything...
  5. onealm

    Sharing a .db?

    You need to install ASA Server on the server. Each workstation connecting to the database will need to use an ASA Client. Putting the database in a shared folder is not necessary (and doesn't help anything) as the ASA Server provides all connectivity to the database. That's the way...
  6. onealm

    How to run 2 versions of BDE on one computer

    Actually, it is a 32-bit app. They normally use BDE 3.50, but we have been able to run it on the more recent 4.5.1.4. This problem just cropped up after we migrated our product to Delphi 5, in which the BDE isn't backward compatible. How do you run something in its own memory space??? I mean...
  7. onealm

    How do you make an MDI form take focus away from a component?

    How about using the TForm.Activate method instead of setfocus?
  8. onealm

    How to run 2 versions of BDE on one computer

    This implies that you are running two BDE versions that are compatible. For example, they are both 5.x or later. Delphi 5 shipped with BDE 5.x. This version of the BDE was heavily documented by Borland to NOT be backward compatible. In fact, migrating our source code from D3 to D5 would have...
  9. onealm

    How to run 2 versions of BDE on one computer

    The application using the older BDE isn't ours. We don't have the source code. So we cannot recompile it. Even if we did have the source code, it was developed in Turbo C++ (predecessor to C++ Builder)... not Delphi. Just to give you an idea of how old this app is, it doesn't even use...
  10. onealm

    How to run 2 versions of BDE on one computer

    Unfortunately, this does not address the problem. Each program requires a different version of the BDE (not just a different alias). One requires BDE version 4.5.1.4 The other requires BDE version 5.1.0.4. All suggestions are appreciated.
  11. onealm

    How to run 2 versions of BDE on one computer

    We have two separate applications that both need to run at the same time on the same workstation. Each application uses a different version of the Borland Database Engine (BDE). The two BDE versions are incompatible. Does anyone know how to configure a system to allow both BDE versions to run...
  12. onealm

    Event to import a text file

    I believe INPUT is a command that is exclusive to ISQL. Adaptive Server Anywhere supports INPUT in ISQL, but also has a LOAD TABLE statement that will work in SQL commands issued by a client app, stored procedure, or trigger. If you are using Adaptive Server Enterprise, see if it supports the...
  13. onealm

    BIG drag'n drop problem!!

    Using the OnMouseDown event to start the dragging operation is incorrect, since any kind of mouse click could trigger the drag operation. You cannot really identify the mouse operation as drag-and-drop until after the user, still holding the mouse button down, moves the mouse a minimum distance...
  14. onealm

    TTreeView, hide vertical scrollbar permanently.

    A quick and dirty way of doing this is to put the second TTreeView control inside a TPanel so that the vertical scroll bar is clipped by the TPanel container control. Be sure to set the TPanel.Locked property to True to disable its OLE functionality. Manipulate the TPanel's border properties as...
  15. onealm

    Checkbox caption and size of checkbox

    It's true that the caption of a check box is difficult to control. One solution is to NOT use the check box caption, but use a TLabel instead (as it gives you more control). Otherwise, you can use your form's canvas to calculate the width of the text you are displaying...

Part and Inventory Search

Back
Top