Talk About Network

Google


Register and Login
Nick
Password
Register create new account Sign up is FREE and you can post replies, new topics, bookmark posts and more!
Recover lost password


Programming > Basic Misc > Re: QBASIC colo...
Latest [ Topics | Posts ] Archive Post A New Topic Post a Reply
<< Topic < Post Post 5 of 7 Topic 1374 of 1492
Post > Topic >>

Re: QBASIC color numbers

by "Judson McClendon" <judmc@[EMAIL PROTECTED] > Nov 12, 2007 at 07:45 AM

"David Williams" <david.williams@[EMAIL PROTECTED]
> wrote:
>
> Of course, it is easy to make BASIC pass parameters by value by writing
> them as arithmetic expressions, rather than single variables:
>
> CALL Routine (X + 0)
>
> Even if Routine changes the value of its input parameter, the value of
> X in the calling routine is unaltered. I don't think I have ever done
> this in practice, but I can see that it might sometimes be useful.

Actually, you usually don't need to go that far. QuickBASIC & QBASIC,
for example, appear to consider it an expression if it is enclosed in
parenthesis, like this:

CALL Routine (X)
-- 
Judson McClendon      judmc@[EMAIL PROTECTED]
 (remove zero)
Sun Valley Systems     http://sunvaley.com
"For God so loved the world that He gave His only begotten Son, that
whoever believes in Him should not perish but have everlasting life."
 




 7 Posts in Topic:
Re: QBASIC color numbers
david.williams@[EMAIL PRO  2007-11-11 20:52:10 
Re: QBASIC color numbers
ArarghMail711NOSPAM@[EMAI  2007-11-11 22:15:09 
Re: QBASIC color numbers
"news@[EMAIL PROTECT  2007-11-12 01:35:15 
Re: QBASIC color numbers
Adam <no@[EMAIL PROTEC  2007-11-12 19:48:58 
Re: QBASIC color numbers
"Judson McClendon&qu  2007-11-12 07:45:01 
Re: QBASIC color numbers
Derek <derekrss@[EMAIL  2007-11-12 20:46:03 
Re: QBASIC color numbers
"Judson McClendon&qu  2007-11-13 02:05:27 

Post A Reply:
  Go here to Signup

AddThis Feed Button


About - Advertising - Contact - Frequently Asked Questions - Privacy Policy - Terms of Use - Signup

Contact
tan12V112 Sat Jul 26 2:41:48 CDT 2008.