RE: Data typing in MV Basic

2004-04-01 Thread Anthony Youngman
ed, as it comes from the lexer into the parser I have already lost the distinction between '1' and '"1"', and can't tell them apart... Cheers, Wol -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Simon Lewington Sent: 01 Apri

Re: Data typing in MV Basic

2004-04-01 Thread Simon Lewington
"Anthony Youngman"... > 'A = 1' and 'A = "1"' both result in IDENTICAL p-code. This is certainly how the UD compiler works. I say its a bug, because 'A="1.1"' and 'A="1,1"' *don't* result in the same p-code - and it doesn't just differ by the comma - one is stored as a string the other as a num

RE: Data typing in MV Basic

2004-03-31 Thread Anthony Youngman
is demonstrably flawed. Cheers, Wol -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Mitchell, Stewart Sent: 31 March 2004 08:31 To: 'U2 Users Discussion List' Subject: RE: Data typing in MV Basic A = 1 is held as an integer A = "1"

Re: Data typing in MV Basic

2004-03-31 Thread Mark Johnson
Users Discussion List'" <[EMAIL PROTECTED]> Sent: Wednesday, March 31, 2004 3:30 PM Subject: RE: Data typing in MV Basic > Wol, > > It is not how the compiler deals with the information but how the runtime > engine deals with the data. > I have demonstrated the runtime en

RE: Data typing in MV Basic

2004-03-31 Thread Stewart Leicester
Why not just do a VLIST on the program and look at the compiler-generated object code to see what's actually going on? I'd do it but don't have access to a UV machine... Stewart Wol, It is not how the compiler deals with the information but how the runtime engine deals with the data. I have

RE: Data typing in MV Basic

2004-03-31 Thread Mitchell, Stewart
ing A/ as you can see the runtime engine reports each line as INTEGER or STRING depending on how the data was entered in the source code. Regards, Stewart -Original Message- From: Anthony Youngman [mailto:[EMAIL PROTECTED] Sent: Wednesday, 31 March 2004 19:15 To: U2 Users Discussion List Su

Re: Data typing in MV Basic

2004-03-31 Thread FFT2001
In a message dated 3/31/2004 4:44:48 AM Eastern Standard Time, [EMAIL PROTECTED] writes: > Therefore 'A = 1' and 'A = "1"' both result in IDENTICAL p-code. > > Therefore, unless you know how the compiler works, your > conclusion is > demonstrably flawed. > > Cheers, > Wol Wol it was already d

Re: Data typing in MV Basic

2004-03-31 Thread Martin Phillips
Ok, so I've deleted most of the discussion of this one but I felt it was time to give my two cents (pence?) worth. Apologies if it's all been said before.. Literal values are stored according to the way they are written. Stick quotes round something and its a string. Just write a number and

Re: Data typing in MV Basic

2004-03-31 Thread Robert Stearns
At what version of Universe was this added? I still use my "Universe Quick Reference" from version 8.3.1 because of its ease of use and completeness. If anyone knows of a comparable book (its wire bound, remember, so you can lay it down to use a keyboard/mouse) for version 10, PLEASE let me kn

RE: Data typing in MV Basic

2004-03-31 Thread Derek Falkner
a > -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

RE: Data typing in MV Basic

2004-03-31 Thread djordan
9:03 PM To: 'U2 Users Discussion List' Subject: RE: Data typing in MV Basic Surely OneYear = 101 Current = 0203 * NextYr = ( Current + OneYear ) "R(0)#4" would be simpler??? -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]

RE: Data typing in MV Basic

2004-03-31 Thread Dennis Bartlett
7; Subject: RE: Data typing in MV Basic The issue I have had to deal with, which may be common to this discussion is where we use fiscal year 0203 for 2002/2003. If you do A = 0203, then sometimes but not always it becomes 203. where a = "0203" it remains 0203. If you want to add a year

RE: Data typing in MV Basic

2004-03-31 Thread djordan
The issue I have had to deal with, which may be common to this discussion is where we use fiscal year 0203 for 2002/2003. If you do A = 0203, then sometimes but not always it becomes 203. where a = "0203" it remains 0203. If you want to add a year to make 0203 to 0304 requires something like thi

RE: Data typing in MV Basic

2004-03-31 Thread Anthony Youngman
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Mitchell, Stewart Sent: 31 March 2004 08:31 To: 'U2 Users Discussion List' Subject: RE: Data typing in MV Basic A = 1 is held as an integer A = "1" is held as a string A = "1" + 0 is held as an integer C

RE: Data typing in MV Basic

2004-03-31 Thread Mitchell, Stewart
31 March 2004 17:26 To: [EMAIL PROTECTED] Subject: Re: Data typing in MV Basic In a message dated 3/30/2004 11:33:53 PM Pacific Standard Time, [EMAIL PROTECTED] writes: > A = 1 is held as an integer > A = "1" is held as a string > A = "1" + 0 is held as an integer >

Re: Data typing in MV Basic

2004-03-30 Thread FFT2001
In a message dated 3/30/2004 11:33:53 PM Pacific Standard Time, [EMAIL PROTECTED] writes: > A = 1 is held as an integer > A = "1" is held as a string > A = "1" + 0 is held as an integer > > Cheers, > Stewart Sorry stewart I don't believe that's the case. And btw to the posted that suggested NU

RE: Data typing in MV Basic

2004-03-30 Thread Mitchell, Stewart
A = 1 is held as an integer A = "1" is held as a string A = "1" + 0 is held as an integer Cheers, Stewart -Original Message- From: Anthony Youngman [mailto:[EMAIL PROTECTED] Sent: Wednesday, 31 March 2004 17:00 To: U2 Users Discussion List Subject: RE: Data typing

RE: Data typing in MV Basic

2004-03-30 Thread Anthony Youngman
Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Jim Garratt Sent: 31 March 2004 07:39 To: U2 Users Discussion List Subject: Re: Data typing in MV Basic Would this not be set by your initialisation of the variable A. eg A = '';*Alpha/Numeric or String

Re: Data typing in MV Basic

2004-03-30 Thread Mats Carlid
Mats Carlid wrote: Trevor Ockenden wrote: 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. Neither have I . Now Will raises a terrific question. If A = "1" assigns 1 as numeric. How would you determine if A contained a nume

Re: Data typing in MV Basic

2004-03-30 Thread Mats Carlid
Trevor Ockenden wrote: 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. Neither have I . 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 thi

Re: Data typing in MV Basic

2004-03-30 Thread Craig Bennett
Trevor, >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? in UV I think you want the DESCRINFO function According to the manual, DESCRINFO(X, 1) returns 0 unassigned variable 1 integer 2 numeric 3 s

Re: Data typing in MV Basic

2004-03-30 Thread Bruce Nichol
Goo'day, At 16:25 31/03/04, you wrote: 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? IF NUM(A) ??? BTW, Trevor, 16:18 (or thereabouts) is nowhere near going to the pub ^H^H^H^H^H^H^H^H^H home

Re: Data typing in MV Basic

2004-03-30 Thread Jim Garratt
t; Sent: Wednesday, March 31, 2004 2:25 PM 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. H

Re: Data typing in MV Basic

2004-03-30 Thread Trevor Ockenden
s - why would I need to know? BUT I'm sure somebody has a good answer to that one. Cheers Trevor Ockenden Open Systems Professionals - Original Message - From: <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Wednesday, March 31, 2004 4:10 PM Subject: Re: Data typing in M

Re: Data typing in MV Basic

2004-03-30 Thread FFT2001
In a message dated 3/30/2004 8:19:18 PM Pacific Standard Time, [EMAIL PROTECTED] writes: > A = 1 assigns a numeric integer. The expression need not contain operators > (+,-,etc) to be numeric. > A = "1" assigns a string however, as you have explicitly declared it to be > string. > A = "1" + 2 as