[DUG] Variabels stored

Conor Boyd Conor.Boyd at trimble.co.nz
Thu Jan 20 16:09:18 NZDT 2011


Probably as a field on the form class that you're dealing with.
 
e.g.
 
type
    TWallaceForm = class(TForm)
      btnOK: TButton;
    ...
      txtWallacesHiddenTextBox: TEdit;
    ...
    private
      FWallacesPrivateVar: string;     // use this instead of your
hidden text box.
                                                    // Can create as
many "variables" (or fields as they're known in Delphi parlance, hence
the F prefix)
                                                    // of as many
different types as you like.
    ...
    end;
 
Hope I've understood what you're asking for correctly.
 
HTH,
 
Conor

________________________________

From: delphi-bounces at delphi.org.nz [mailto:delphi-bounces at delphi.org.nz]
On Behalf Of Marshland Engineering
Sent: Thursday, 20 January 2011 3:45 p.m.
To: delphi at delphi.org.nz
Subject: [DUG] Variabels stored


Is there a way to store variables so I can use them from one procedure
to another?  
 
I have been currently storing them in hidden edit.text boxes on the form
but there must be a better way. 
 
Cheers Wallace
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://listserver.123.net.nz/pipermail/delphi/attachments/20110120/adcdf763/attachment.html 


More information about the Delphi mailing list