<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META content="text/html; charset=us-ascii" http-equiv=Content-Type>
<META name=GENERATOR content="MSHTML 8.00.6001.18975">
<STYLE></STYLE>
</HEAD>
<BODY bgColor=#ffffff>
<DIV dir=ltr align=left><SPAN class=716140203-20012011><FONT color=#0000ff 
size=2 face=Arial>Probably as a field on the form class that you're dealing 
with.</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=716140203-20012011><FONT color=#0000ff 
size=2 face=Arial></FONT></SPAN>&nbsp;</DIV>
<DIV dir=ltr align=left><SPAN class=716140203-20012011><FONT color=#0000ff 
size=2 face=Arial>e.g.</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=716140203-20012011><FONT color=#0000ff 
size=2 face=Arial></FONT></SPAN>&nbsp;</DIV>
<DIV dir=ltr align=left><SPAN class=716140203-20012011><FONT color=#0000ff 
size=2 face=Arial>type</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=716140203-20012011>&nbsp;&nbsp;&nbsp; <FONT 
color=#0000ff size=2 face=Arial>TWallaceForm = class(TForm)</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=716140203-20012011>&nbsp;&nbsp;&nbsp;<FONT 
color=#0000ff size=2 face=Arial>&nbsp;&nbsp; btnOK: TButton;</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=716140203-20012011><FONT color=#0000ff 
size=2 face=Arial>&nbsp;&nbsp;&nbsp; ...</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=716140203-20012011><FONT color=#0000ff 
size=2 face=Arial>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; txtWallacesHiddenTextBox: 
TEdit;</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=716140203-20012011><FONT color=#0000ff 
size=2 face=Arial>&nbsp;&nbsp;&nbsp;&nbsp;...</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=716140203-20012011><FONT color=#0000ff 
size=2 face=Arial>&nbsp;&nbsp;&nbsp; private</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=716140203-20012011><FONT color=#0000ff 
size=2 face=Arial>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; FWallacesPrivateVar: 
string;&nbsp;&nbsp;&nbsp;&nbsp; // use this instead of your hidden text 
box.</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=716140203-20012011><FONT color=#0000ff 
size=2 
face=Arial>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
// Can create as many "variables" (or fields as they're known in Delphi 
parlance, hence the F prefix)</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=716140203-20012011><FONT color=#0000ff 
size=2 
face=Arial>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
// of as many different types as you like.</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=716140203-20012011><FONT color=#0000ff 
size=2 face=Arial>&nbsp;&nbsp;&nbsp; ...</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=716140203-20012011><FONT color=#0000ff 
size=2 face=Arial>&nbsp;&nbsp;&nbsp; end;</FONT></SPAN></DIV>
<DIV><FONT color=#0000ff size=2 face=Arial></FONT>&nbsp;</DIV>
<DIV><SPAN class=716140203-20012011></SPAN><FONT face=Arial><FONT 
color=#0000ff><FONT size=2>H<SPAN class=716140203-20012011>ope I've understood 
what you're asking for correctly.</SPAN></FONT></FONT></FONT></DIV>
<DIV><FONT face=Arial><FONT color=#0000ff><FONT size=2><SPAN 
class=716140203-20012011></SPAN></FONT></FONT></FONT>&nbsp;</DIV>
<DIV><FONT face=Arial><FONT color=#0000ff><FONT size=2><SPAN 
class=716140203-20012011>HTH,</SPAN></FONT></FONT></FONT></DIV>
<DIV><FONT face=Arial><FONT color=#0000ff><FONT size=2><SPAN 
class=716140203-20012011></SPAN></FONT></FONT></FONT>&nbsp;</DIV>
<DIV><FONT face=Arial><FONT color=#0000ff><FONT size=2><SPAN 
class=716140203-20012011>Conor</SPAN></FONT></FONT></FONT></DIV>
<DIV><BR></DIV>
<DIV dir=ltr lang=en-us class=OutlookMessageHeader align=left>
<HR tabIndex=-1>
<FONT size=2 face=Tahoma><B>From:</B> delphi-bounces@delphi.org.nz 
[mailto:delphi-bounces@delphi.org.nz] <B>On Behalf Of </B>Marshland 
Engineering<BR><B>Sent:</B> Thursday, 20 January 2011 3:45 p.m.<BR><B>To:</B> 
delphi@delphi.org.nz<BR><B>Subject:</B> [DUG] Variabels 
stored<BR></FONT><BR></DIV>
<DIV></DIV>
<DIV><FONT size=2 face=Arial>Is there a way to store&nbsp;variables so I can use 
them from one procedure to another? &nbsp;</FONT></DIV>
<DIV><FONT size=2 face=Arial></FONT>&nbsp;</DIV>
<DIV><FONT size=2 face=Arial>I have been currently storing them in&nbsp;hidden 
edit.text boxes on the form but there must be a better way. </FONT></DIV>
<DIV><FONT size=2 face=Arial></FONT>&nbsp;</DIV>
<DIV><FONT size=2 face=Arial>Cheers Wallace</FONT></DIV></BODY></HTML>