I was surprised at how easy it really is to passing data to a method. I
found that I saved so much room as I was re-writing the same code over and
over and over again in each pushbutton events. That I found is NOT good
programming. Creating ONE method to do the job of all those pushbutton
events saved time and made the .exe so much smaller.
Norman was great in helping me there.
Thanks Norman
Jonathon
----- Original Message -----
From: "Norman Palardy" <[EMAIL PROTECTED]>
To: "Getting Started" <[email protected]>
Sent: Tuesday, October 10, 2006 10:13 PM
Subject: Re: help on passing data to a method
On Oct 10, 2006, at 9:28 PM, Robert Poland wrote:
Hi,
I would like to learn how to pass a variable to a method and use it in
the method. The users guide seems to imply that it can be done but
doesn't explain it very well.
sub sample1(someInteger as integer)
if someInteger > 0 then
msgbox "someinteger is > 10"
else
msgbox "it's not"
end if
end sub
anywhere else you just do
dim someValue as integer
somevalue = 12
sample1(somValue)
not much more sophisticated than that
_______________________________________________
Unsubscribe or switch delivery mode:
<http://www.realsoftware.com/support/listmanager/>
Search the archives of this list here:
<http://support.realsoftware.com/listarchives/lists.html>
--
No virus found in this incoming message.
Checked by AVG Free Edition.
Version: 7.1.408 / Virus Database: 268.13.2/471 - Release Date: 10/10/2006
--
No virus found in this outgoing message.
Checked by AVG Free Edition.
Version: 7.1.408 / Virus Database: 268.13.2/471 - Release Date: 10/10/2006
_______________________________________________
Unsubscribe or switch delivery mode:
<http://www.realsoftware.com/support/listmanager/>
Search the archives of this list here:
<http://support.realsoftware.com/listarchives/lists.html>