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 TouchToneTommy 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. 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.
  16. JES1904

    Can't run Delphi App in WinXP

    Your delphi Code should work in versions greater that Delphi 4. You can purchase in many places. In addition, limited versions may still be avilable for free. Google Turbo Delphi and see what is avilable na dwhat limitations on use apply for you. Some earlier Personal releases do not include...
  17. JES1904

    Using ClientDataSet with a local file.

    I am trying to use a clientdataset without an associated Table. I am attempting to extract and edit data from a Cad program. The Cad program has an interface in which the user selects specific entities within the Cad file (lines, circles, text etc) and provides basic information and attributes...
  18. JES1904

    ClientDataSet, NexusDB etc. - Which single user database?

    ClientDataSet provides a means of moving the data into memory. Since it is in memory it will accelerate performance working with the data. It also tracks all changes made to the data before the file based copy is updated, allowing a number of changes to be accepted or deleted before the...
  19. JES1904

    'Live' data from Excel to Delphi?

    You can find some useful info here http://delphi.about.com/od/database/l/aa090903a.htm re: how to connect, read and write an Excel spreadsheet. There is more of a challenge having Excel notify your program of a change. You will have to determine what information you want to monitor and...
  20. JES1904

    Debug Issue Problem with booleans in Local Variables window

    Thanks, I gave fake code because the actual code was pretty extensive. Your suggestion worked. I forgot that not defining the type of parameter behaved as a Const parameter instead of as a Var parameter. Apparently this confuses the debugger and it will not monitor the values for booleans...

Part and Inventory Search

Back
Top