Trevor,

The following program seems to show that A = "1" does indeed store the
value as a string! I also wonder why you would want to know this. I am
running UV 10.0.15 on W2K.

ED PGM TEST
1 lines long.
----: p
0001= A = "1"
0002= DEBUG
0003= STOP
0004= END
Bottom at line 4.
----: FI
"TEST" filed in file "PGM".

>BASIC PGM TEST
Compiling: Source = 'PGM/TEST', Object = 'PGM.O/TEST'
Compilation Complete.

>RUN PGM TEST
 TEST:   3: STOP
:: A/
STRING: T r L=1 `1'
::                  

Derek Falkner
Kingston, Ontario, Canada

 

> -----Original Message-----
> From: [EMAIL PROTECTED] 
> [mailto:[EMAIL PROTECTED] On Behalf Of Trevor Ockenden
> Sent: March 31, 2004 1:26 AM
> To: U2 Users Discussion List
> Subject: Re: Data typing in MV Basic
> 
> 
> Will, I stand corrected on that one. So far in 20 odd years 
> of programming
> in MV I haven't needed to worry about it.
> 
> Now Will raises a terrific question. If A = "1" assigns 1 as 
> numeric. How
> would you determine if A contained a numeric or a string in this case?
> 
> My short answer is - why would I need to know? BUT I'm sure 
> somebody has a
> good answer to that one.
> 
> Cheers
> 
> Trevor Ockenden
> Open Systems Professionals

-- 
u2-users mailing list
[EMAIL PROTECTED]
http://www.oliver.com/mailman/listinfo/u2-users

Reply via email to