|
|
|||||||||
|
|||||||||
| |||||||||
|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
#1
|
|||
|
|||
|
Storing From Varible Length Stringgrids
Hi Im a college student and a total NEWBIE to delphi!
Im trying to save the information which will be entered in to a varible length stringgrid in to a dat file for storage! ive though about using a variable length array! but i have no idea how to make a variable length array though! Any suggestions would be greatly appreciated! Thanks in advance gaz |
|
#2
|
||||
|
||||
|
You could try storing data in a TStringList:
Code:
var
foo : TStringList;
begin
foo := TStringList.Create;
foo.Add('string 1');
foo.Add('string 2');
nMax := foo.Count; // # of items in the string list
ShowMessage(foo[nMax-1]); // Show last item (0-based index)
foo.SaveToFile('foo.txt'); // Save it to disk
foo.Free;
end;
__________________
Up the Irons What Would Jimi Do? Smash amps. Burn guitar. Take the groupies home. "Death Before Dishonour, my Friends!!" - Bruce D ickinson, Iron Maiden Aug 20, 2005 @ OzzFest Down with Sharon Osbourne Puzzle of the Month solved by Keath and KevinADC, superior perl programmers of the month |
![]() |
| Viewing: Dev Shed Forums > Programming Languages - More > Delphi Programming > Storing From Varible Length Stringgrids |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|