Help with String Sizes Problums.
Posted on 2004-03-21
Hi experts I am designing a liveUpdate program creator. anyway the program is going quite well but am having some problums with string anyway I have a recored like the one below in a unit file
Header = record
Version : ShortString;
ProgName : ShortString;
UpdateFile : ShortString;
HomePage : ShortString;
UpDateUrl : ShortString;
VerFoundInfo : ShortString;
VerInfo : ShortString;
DownloadDoneInfo : ShortString;
Ok the record above as you may already tell am storeing information about the program's update
My problums is that VerFoundInfo will only allow me to add 255 char some times I may need more than this I have tryed to use WideString but when I try to read the info it does not work. or reports errors is there something I am doing wrong please help PS i am only starting to learn Delphi from moveing from VB so any help whoule be helpfull.
PS the recored aboeve I also write to a file I left the code below incase there may be something wrong there.
procedure WriteUpdate(lzFile : String);
f : File;
procedure ReadUpdate(lzFile : String);
f : File;
Var sUpdate : Header;