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 SkipVought 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. chillywinter

    Save string to file using SaveDialog

    I created a string separated by commas. I want to save it using the savedialog but this code doesn't work: CSV_string := '1,2,3' ; if SaveDialog1.Execute then CSV_string.savetofile(SaveDialog1.FileName + '.csv'); I've discovered that .savetofile doesn't work with strings, so how do I...
  2. chillywinter

    How to use Typecasting

    The declare array method (see Prattaratt's solution above) using pointers works well (but requires an array to be defined, and pointers look so ugly). Based on sggaunt's explanation and through reading the Delphi help file and its FindComponent example, the following code seems to work quiet...
  3. chillywinter

    How to use Typecasting

    Also tried this, without luck: procedure TForm1.Button1Click(Sender: TObject); var I : integer; myname : string; begin for I := 1 to 5 do begin myname := 'checkbox'+inttostr(i); tcheckbox(myname).Checked := false; end; end;
  4. chillywinter

    How to use Typecasting

    I want to reset all my check box's to unticked. I can do it with the following code but is there a short hand way to code this using a FOR statement: procedure TForm1.Button1Click(Sender: TObject); begin checkbox1.checked := false; checkbox2.checked := false; checkbox3.checked := false...

Part and Inventory Search

Back
Top