Page 1 of 1

~Shared Sources~ We are only human =^.^=

Posted: Sun Apr 17, 2005 12:59 pm
by QT-Pi
How is the SHARED statement used to pass values between a main program and a subprogram? What I mean is .... do I place the statement in the main program or the subprogram?
Mercy! This can be confusing.

Posted: Sun Apr 17, 2005 1:04 pm
by mundofr
yeah u put the statement:

Code: Select all

 COMMON SHARED variable, variable2, variable3 
before anythin else in your program, u delcare your sub and then right after that u put the common shared statement, of course u put it in the main program.
hope this helps... :D

Posted: Sun Apr 17, 2005 1:56 pm
by lurah-
yah, mundofr is right.

Code: Select all

DECLARE MySub ()
DIM SHARED variable AS INTEGER
and so on

Posted: Mon Apr 18, 2005 10:46 am
by QT-Pi
LoL.... We knew that :wink: Hehe, just kidding, thanks for the help!

Posted: Mon Apr 18, 2005 11:08 am
by MystikShadows
Hmmm "we knew that"? Are you speaking like a queen, or is there more than one of you? lol

Posted: Mon Apr 18, 2005 11:34 am
by Mitth'raw'nuruodo
ya I noticed that too.....look at her location <--

Posted: Mon Apr 18, 2005 12:13 pm
by MystikShadows
LOL well if there's more than one, or three very different looking of the same I want pics for PROOF !!!! roflmao my friends ain't ever gonna believe this LOLOL

Posted: Mon Apr 18, 2005 1:17 pm
by Z!re
QT-Pi is using this site to pass school assignments, with its friends.

I thought that was fairly obvious.


Let me guess, VB course next semester?

Posted: Tue Apr 19, 2005 11:56 am
by QT-Pi
We = 3, and no we come here for the hell of it and yeah, some help too. LoL o Z!re.. too much coffee today? We still like you anyway :D We have had some positive output, well for the most part. And us 3 , We Thank-You!

Posted: Tue Apr 19, 2005 1:37 pm
by Z!re
I dont drink coffe.


EDIT: Keep your replies to the topic where the post was made.
Stop spamming the boards.

Posted: Tue Apr 19, 2005 3:03 pm
by Mitth'raw'nuruodo
Z!re wrote:QT-Pi is using this site to pass school assignments, with its friends.

I thought that was fairly obvious.


Let me guess, VB course next semester?
Ya, I noticed that too....you know Z!re I'm not totally clueless :wink:

Ya I generally believe that off-topic posting is ok, but really QT-Pi, you guys are just posting shit.