[futurebasic] Re: [FB] Stretching Variables

Message: < previous - next > : Reply : Subscribe : Cleanse
Home   : August 2000 : Group Archive : Group : All Groups

From: "Peter Dempsey" <theviron@...>
Date: Sun, 13 Aug 2000 12:42:40 CDT


>From: Ryan Wilkerson <cyberboy_48382@...>
>Reply-To: futurebasic@...
>To: futurebasic@...
>Subject: [FB] Stretching Variables
>Date: Sun, 13 Aug 2000 07:39:06 -0400
>
>In my program, I need variables to be able to hold more than 6 or so
>digits.  It seems like when INPUT gets them, they can only be 6 digits
>big.  Any way around this?  I know in C you can use long, but I'm not
>sure about FB.
>
>Ryan

I'm not sure what the differences are between FB1 and FB3... but in FB3 you 
assign memory to variables with the ;

DIM gBigVar;9999999 'or whatever

without that it has a standard size.. can't remember what it is..

you can also use things like # and ! and % to say what kind of variable it 
is (like # means its not an INT, allows for decimals)... theres also AS 
things.. like DIM gIntegerVariable AS INT

In particular, a long is defined by DIM gLongVariable& (the & symbol)

I'm pretty sure theres a variable section in FB1 handbook

Hope this helps (and I am not making a fool of myself)

-Peter Dempsey



________________________________________________________________________
Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com