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 dencom on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Recent content by JES1904

  1. JES1904

    Retrieve Files and Subfolders from a Directory?

    Res := FindFirst(Path + '*.*', faDirectory, SearchRec);
  2. JES1904

    File Read+Write

    You may want to change the file format. You can view it as an array of characters from the start to the end of the file. or Create a database consisting of string records using database access tools to read & write. What are you trying to store in the file since it is oK to overwrite the...
  3. JES1904

    Clientdataset error "must apply updates before refresh"

    I don't know if this fits your problem or not, but remember that there may be two data structures using the Clientdataset. USing Update is different than ApplyUpdates. Google Cary Jensen who did a series of articles on Cleintdataset behavior. ( I believe it was at delphi.About.com)
  4. JES1904

    Problem with Pchar in dll function

    I believe your problem may have to do with memory management check this site or google the problem: http://delphi.about.com/od/objectpascalide/l/aa103003a.htm
  5. JES1904

    Toolbar following the cursor.

    Look for the OnMouseMove event on the form or compnent that is receiveing the mouse messages. Place your popup menu code to trigger on the onmouse move event. You should be able to access and enter code for this directly through the object inspector window events page.
  6. JES1904

    Is Delphi right for me?

    I also use BD2006. Another area I have struggled with in the IDE is the "Uses" statement. I have had numerous problems where errors are listed that the IDE cannot find files in the uses clause such as Classes or Sysutils and yet the paths are included in the options library paths. The IDE hold...
  7. JES1904

    Is Delphi right for me?

    scanreg123, If you are new to Delphi or Object Pascal, then the most difficult thing is getting past basics. There is a great deal of writing about Delphi, much of it is at least 10 years old. It looks like Delphi was the hot product when they introduced the GUI and component libraries way...
  8. JES1904

    Database on Server, how can I access it?

    Yes, If you can see the file on your station, you should be able to work with it. So should others if you allow sharing on the file. There are a number of web sites that might have info that would be helpful.Delphi.about.com, Delphi3000.com, or this site. It depends on what you need...
  9. JES1904

    Question defining a packed record using the Case Statement

    I just ran across some code that declares a complex packed record: aSInt = Integer; entity = packed Record Enttype : byte; field2 : double; ... //continues with other standard fields and then uses this case CASE aSInt OF entlin: (linpt1, linpt2...
  10. JES1904

    Database on Server, how can I access it?

    IF the file is visible from each location through your server, it should be accessible from each. The connection string may differ between locations depending upon how it is defined for access at other locations. Your network manager should be able to give you specific requirements to alter the...
  11. JES1904

    Using a String for Data Storage

    I also discovered the "Absolute" keyword that allows the declaration of two variable types overlapping in memory. Var data array of byte; Int : Integer absolute data; aligns the data and int in memory.
  12. JES1904

    Using a String for Data Storage

    Sggaunt, How do you get an integer or float into the data array of byte to begin with?
  13. JES1904

    Using a String for Data Storage

    I may halve answered my question. I forgot that o character in shortstring sets length of the string and thought it was terminated by CR and/or LF. That would mean that my data could be truncated if those characters occured in the data string. Thanks for your snippet. I assume that Data is...
  14. JES1904

    Using a String for Data Storage

    I am working on a project for a Cad program in which I must embed data in the Cad file. The tools for doing so in the cad program allow for embedding boolean, integer, double byte and string values, one at a time. There is a lot of data and the best way to store it would be in a single packet...
  15. JES1904

    How to catch Left and Right brackets event?

    Yes, Handle it just as you would any other character.

Part and Inventory Search

Back
Top