[futurebasic] Re: [FB] FB^3 Variable Error

Message: < previous - next > : Reply : Subscribe : Cleanse
Home   : November 1999 : Group Archive : Group : All Groups

From: "Michael Evans" <mikonic@...>
Date: Sat, 06 Nov 1999 22:48:35 -0500
> FB3 flags this as an error :
> 
> temp$=a$
> PRINT temp$;
> temp=12
> print temp
>
> The error says the second variable temp is "expected" to be a string.
> Temp is not DIMmed nor defined as a string anywhere.

mel:

I believe dim'ing both temp$ and temp would stop this 'error'...

That is:
DIM temp$, temp

temp$=a$
PRINT temp$;
temp=12
print temp

is ok

DIM temp$

temp$=a$
PRINT temp$;
temp=12
print temp

is not....

----------------------------------------------------------
Michael Evans
Manager of Software Development * Photo Systems, Inc.
3301 Wood Valley Road, NW * Atlanta, GA, 30327-1515
Voice: (404) 846-9386
Fax: (404) 240-0878 * Cell: (404) 229-3930
E-mail: evans@... * michael_evans@...
----------------------------------------------------------