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...
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)
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
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.
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...
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...
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...
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...
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...
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.
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...
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...
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...
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...
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...
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...
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...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.