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 number.

RE: Data typing in MV Basic

2004-04-01 Thread Anthony Youngman
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 April 2004 09:32 To: [EMAIL PROTECTED] Subject: Re: Data typing in MV

RE: Data typing in MV Basic

2004-03-31 Thread Mitchell, Stewart
] 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 Cheers, Stewart Sorry stewart I don't believe that's the case. And btw

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 this

RE: Data typing in MV Basic

2004-03-31 Thread Dennis Bartlett
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 to make 0203 to 0304 requires

RE: Data typing in MV Basic

2004-03-31 Thread djordan
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] On Behalf Of djordan Sent: 31 March

RE: Data typing in MV Basic

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

RE: Data typing in MV Basic

2004-03-31 Thread Mitchell, Stewart
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 Subject: RE: Data typing in MV Basic Why? Let's work

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 Anthony Youngman
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 Subject: RE: Data typing in MV Basic

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 assigns a

Re: Data typing in MV Basic

2004-03-30 Thread Trevor Ockenden
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 MV Basic In a message dated 3/30

Re: Data typing in MV Basic

2004-03-30 Thread Jim Garratt
: 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

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 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

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

RE: Data typing in MV Basic

2004-03-30 Thread Anthony Youngman
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 A = 0 ; Numeric - Original

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 NUM(A),