<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta content="text/html; charset=ISO-8859-1"
http-equiv="Content-Type">
</head>
<body bgcolor="#ffffff" text="#000000">
Or as field properties if you want to access them from another form
...<br>
<br>
<div><span> type </span></div>
<div><span> TWallaceForm = class(TForm) </span></div>
<div><span> btnOK: TButton; </span></div>
<span> private </span>
<div><span> FWallacesPrivateVar: string; // private
storage </span></div>
public<br>
<div><span></span>
<div><span> property WallacesPrivateVar: string read
FWallacesPrivateVar write FWallacesPrivateVar; </span></div>
<div>
<div>
<div><span> </span>...<br>
</div>
</div>
</div>
<span> end; </span></div>
<div> <br>
</div>
Cheers<br>
<br>
D<br>
<br>
On 20/01/11 16:09, Conor Boyd wrote:
<blockquote
cite="mid:F7C0AA5DD1508F4789E10B6CC9BB75DB0422703C@nzc-ap-xch-02.ap.trimblecorp.net"
type="cite">
<meta http-equiv="Context-Type" content="text/html;
charset=us-ascii">
<div><span> Probably as a field on the form class that you're
dealing with. </span></div>
<div><span> </span> </div>
<div><span> e.g. </span></div>
<div><span> </span> </div>
<div><span> type </span></div>
<div><span> TWallaceForm = class(TForm) </span></div>
<div><span> btnOK: TButton; </span></div>
<div><span> ... </span></div>
<div><span> txtWallacesHiddenTextBox: TEdit; </span></div>
<div><span> ... </span></div>
<div><span> private </span></div>
<div><span> FWallacesPrivateVar: string; // use this
instead of your hidden text box. </span></div>
<div><span> //
Can create as many "variables" (or fields as they're known in
Delphi parlance, hence the F prefix) </span></div>
<div><span> //
of as many different types as you like. </span></div>
<div><span> ... </span></div>
<div><span> end; </span></div>
<div> </div>
<div><span></span> H<span>ope I've understood what you're asking
for correctly.</span> </div>
<div> <span></span> </div>
<div> <span>HTH,</span> </div>
<div> <span></span> </div>
<div> <span>Conor</span> </div>
<div><br>
</div>
<div lang="en-us"> <b>From:</b> <a class="moz-txt-link-abbreviated" href="mailto:delphi-bounces@delphi.org.nz">delphi-bounces@delphi.org.nz</a>
[<a class="moz-txt-link-freetext" href="mailto:delphi-bounces@delphi.org.nz">mailto:delphi-bounces@delphi.org.nz</a>] <b>On Behalf Of </b>Marshland
Engineering<br>
<b>Sent:</b> Thursday, 20 January 2011 3:45 p.m.<br>
<b>To:</b> <a class="moz-txt-link-abbreviated" href="mailto:delphi@delphi.org.nz">delphi@delphi.org.nz</a><br>
<b>Subject:</b> [DUG] Variabels stored<br>
<br>
</div>
<div> Is there a way to store variables so I can use them from one
procedure to another? </div>
<div> </div>
<div> I have been currently storing them in hidden edit.text boxes
on the form but there must be a better way. </div>
<div> </div>
<div> Cheers Wallace </div>
<pre wrap="">
<fieldset class="mimeAttachmentHeader"></fieldset>
_______________________________________________
NZ Borland Developers Group - Delphi mailing list
Post: <a class="moz-txt-link-abbreviated" href="mailto:delphi@delphi.org.nz">delphi@delphi.org.nz</a>
Admin: <a class="moz-txt-link-freetext" href="http://delphi.org.nz/mailman/listinfo/delphi">http://delphi.org.nz/mailman/listinfo/delphi</a>
Unsubscribe: send an email to <a class="moz-txt-link-abbreviated" href="mailto:delphi-request@delphi.org.nz">delphi-request@delphi.org.nz</a> with Subject: unsubscribe</pre>
</blockquote>
<br>
</body>
</html>