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 strongm 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. majlumbo

    Another Newbie Question

    if the components didn't install correctly, then I suggest removing them. You can adapt the instructions here: https://stackoverflow.com/a/32758027 to remove the JCL and JEDI packages and then attempt to reinstall them. I don't think you need to set any environment variable for GetIt to...
  2. majlumbo

    Some Struggles with Delphi 10.4 Community edition

    To set up a DBGrid, you need to have a connection component to the database. Once that's set up, you need a TQuery or TTable component, that attaches to the connector, then you need a TDatasource that points to the TTable or TQuery. The final step is to have the DBGrid attached to the...
  3. majlumbo

    Another Newbie Question

    Are you using the JEDI included in the GetIt package manager? Menu item "Tools| GetIt Package Manager." You must first install "JEDI Code Library" before you can install "JEDI Visual Component Library." That should install the packages completely. One last think, as the install starts, it...
  4. majlumbo

    KeyPressed procedure

    If you want to capture any key pressed on any of the controls on a form, then you have to set the form's keypreview property to True. https://docwiki.embarcadero.com/Libraries/Sydney/en/Vcl.Forms.TCustomForm.KeyPreview
  5. majlumbo

    Combo Boxes question

    Then it may be solved by attaching the code to the combobox's OnChange event. That way it fires when a new item is selected.
  6. majlumbo

    Combo Boxes question

    A ComboBox has an OnExit method. If you need to perform a task like updating another comboBox, simply attach it to ComboBox1Exit method.
  7. majlumbo

    Sqlite Database Connection in Multi device application (Android)

    Have you checked this link. It explains how to use SQLite on Mobile apps (and desktops). Towards the bottom of the article you'll find "Setting Up Your Database Deployment for mobile",
  8. majlumbo

    After Update Trigger?

    Your trigger is an On Update Trigger, so your trigger has access to 2 possible values for cah_avail (and every other value for each of the columns), the OLD one and the NEW one (even if you didn't change it and they remain the same value). You have to preface the column name with either...
  9. majlumbo

    Problems with old Delphi 5 application under Windows 10 (64bit)

    This is exactly how the for loop is expected to operate. From the documentation: The for statement assigns the value of initialValue to counter, then executes statement repeatedly, incrementing or decrementing counter after each iteration. (The for...to syntax increments counter, while the...
  10. majlumbo

    Delphi 6...

    Result := Result + SL[I][1]
  11. majlumbo

    Delphi 6...

    Actually, that makes sense, it's a string, and strings in D6 start with 1 not 0, just change 0 to a 1 and it should work.
  12. majlumbo

    Delphi 6...

    It's not Replace.Text it is ReplaceText (without the period), but if it's not available in Delphi 6, then try this instead SL.Text := stringreplace(Value, ' ', '#13#10', [rfReplaceAll]);
  13. majlumbo

    Delphi 6...

    try something like this: function GetInitials(const Value: String): String; var SL: TStringList; I: Integer; begin //Doesn't guard against having more than one consecutive space or nothing but spaces in Value... Result := ''; SL := TStringList.Create; try Result := ''...
  14. majlumbo

    shortcut question

    What shortcut are you activating when you are typing? Shortcuts should involve holding the Alt or Ctrl keys with or without Shift or one of the F keys F1, F2 etc. or maybe the esc key, which should not happen under normal conditions when you are typing.
  15. majlumbo

    Monitor Key Press

    The event is now associated with the entire form, so if the enter key is clicked while that form has focus, it will kick off the event handler. If you want it to happen no matter which form has focus, that is a bit trickier.
  16. majlumbo

    Monitor Key Press

    more than likely you didn't catch my comment when I provided this code, if you want it to send the message ANY TIME the enter key is pressed, then you don't want to use Edit1's OnKeypress, you would use the FORM's OnKeyPress but then you would need to set the FORM's KeyPreview to True...
  17. majlumbo

    How to call a plsql storeprocedure in delphi

    I suppose that is not advisable. Here is a link I've found on running a stored proc from Delphi using ADO components. Hopefully, it can help.
  18. majlumbo

    please, how to add start-up behaviour ?

    Glad to help. At least it put you on the correct path to figure it out on your own.
  19. majlumbo

    Configuring the Environment

    When you switch to the code tab, you can doubleclick on a procedure name and it will take you to the code of that procedure.
  20. majlumbo

    How to call a plsql storeprocedure in delphi

    If it returns a value, then technically, it's a stored function, thus you can use the function in the select or where portion of an SQL statement. i.e. select A, B, MyStoredProc(param1, paramn) from tablename where A = 'some value';

Part and Inventory Search

Back
Top