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
"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
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"
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
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
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
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
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
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
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
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]
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
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
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
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
>
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
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
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
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
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
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
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
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
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
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
25 matches
Mail list logo