<!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>&nbsp;&nbsp;&nbsp; TWallaceForm = class(TForm) </span></div>
    <div><span>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp; btnOK: TButton; </span></div>
    <span>&nbsp;&nbsp;&nbsp; private </span>
    <div><span> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp; FWallacesPrivateVar: string;&nbsp;&nbsp;&nbsp;&nbsp; // private
        storage </span></div>
    &nbsp; &nbsp;&nbsp; public<br>
    <div><span></span>
      <div><span> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; property WallacesPrivateVar: string read&nbsp;
          FWallacesPrivateVar write FWallacesPrivateVar; </span></div>
      <div>
        <div>
          <div><span>&nbsp; </span>...<br>
          </div>
        </div>
      </div>
      <span>&nbsp;&nbsp;&nbsp; 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>&nbsp;</div>
      <div><span> e.g. </span></div>
      <div><span> </span>&nbsp;</div>
      <div><span> type </span></div>
      <div><span>&nbsp;&nbsp;&nbsp; TWallaceForm = class(TForm) </span></div>
      <div><span>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp; btnOK: TButton; </span></div>
      <div><span> &nbsp;&nbsp;&nbsp; ... </span></div>
      <div><span> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp; txtWallacesHiddenTextBox: TEdit; </span></div>
      <div><span> &nbsp;&nbsp;&nbsp;&nbsp;... </span></div>
      <div><span> &nbsp;&nbsp;&nbsp; private </span></div>
      <div><span> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp; FWallacesPrivateVar: string;&nbsp;&nbsp;&nbsp;&nbsp; // use this
          instead of your hidden text box. </span></div>
      <div><span> &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) </span></div>
      <div><span> &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. </span></div>
      <div><span> &nbsp;&nbsp;&nbsp; ... </span></div>
      <div><span> &nbsp;&nbsp;&nbsp; end; </span></div>
      <div> &nbsp;</div>
      <div><span></span> H<span>ope I've understood what you're asking
          for correctly.</span> </div>
      <div> <span></span> &nbsp;</div>
      <div> <span>HTH,</span> </div>
      <div> <span></span> &nbsp;</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&nbsp;variables so I can use them from one
        procedure to another? &nbsp; </div>
      <div> &nbsp;</div>
      <div> I have been currently storing them in&nbsp;hidden edit.text boxes
        on the form but there must be a better way. </div>
      <div> &nbsp;</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>