RE: [U2] [UV] non-numeric error after passing (ANS MATCHES '0N' ANS0)

2005-03-10 Thread Stevenson, Charles
Could your ANS variable have contained Char(255) ? A string containing Char(255) won't passes the (ANS MATCHES '0N') test. If anyone can show me a string containing characters other than the 10 digits that passes that test, I'd be much obliged. cds --- u2-users mailing list

RE: [U2] [UV] non-numeric error after passing (ANS MATCHES '0N' ANS0)

2005-03-10 Thread Piers Angliss
A very long numeric string will do this, see sample code below: 0001: ARRAY = '12345' ;* Just so array has a value 0002: VAR = STR('1',512) 0003: IF VAR MATCHES 0N THEN PRINT 'Numeric' 0004: DUM = ARRAYVAR 0005: END RUN BP T2 Numeric Program T2: Line 4, Nonnumeric data when numeric required.

Re: [U2] [UV] non-numeric error after passing (ANS MATCHES '0N' ANS0)

2005-03-10 Thread Mats Carlid
Don't bet on it! :^) IMHO unicode characters for indian,chinese or arabic digits should pass the test but I haven't tried. -- mats Stevenson, Charles wrote: Could your ANS variable have contained Char(255) ? A string containing Char(255) won't passes the (ANS MATCHES '0N') test. If anyone

RE: [U2] [UV] non-numeric error after passing (ANS MATCHES '0N' ANS0)

2005-03-10 Thread Alfke, Colin
I found ANS = '':@VM will pass. I didn't try any combinations/derivatives. I also saw another post where a very long number passed the test but failed in the array assignment. Colin Alfke -Original Message- From: Stevenson, Charles Could your ANS variable have contained Char(255)

RE: [U2] [UV] non-numeric error after passing (ANS MATCHES '0N' ANS0)

2005-03-10 Thread Stevenson, Charles
BINGO! This is exactly it! Thank-you Piers, and everyone else for your thoughtful responses along the way. I am sure this is it. We've had other instances where users camp on a key. Typically: INPUT ANS READ ... FROM F, ANS ELSE... where this generates an error in trying to read an ID

RE: [U2] [UV] non-numeric error after passing (ANS MATCHES '0N' ANS0)

2005-03-10 Thread Stevenson, Charles
Subject: Re: [U2] [UV] non-numeric error after passing (ANS MATCHES '0N' ANS0) Don't bet on it! :^) IMHO unicode characters for indian,chinese or arabic digits should pass the test but I haven't tried. -- mats --- u2-users mailing list u2-users@listserver.u2ug.org To unsubscribe please visit

RE: [U2] [UV] non-numeric error after passing (ANS MATCHES '0N' ANS0)

2005-03-10 Thread Stevenson, Charles
, cds -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Alfke, Colin Sent: Thursday, March 10, 2005 5:28 AM To: u2-users@listserver.u2ug.org Subject: RE: [U2] [UV] non-numeric error after passing (ANS MATCHES '0N' ANS0) I found ANS = '':@VM will pass. I

RE: [U2] [UV] non-numeric error after passing (ANS MATCHES '0N' ANS0)

2005-03-10 Thread John Solie
AM To: u2-users@listserver.u2ug.org Subject: RE: [U2] [UV] non-numeric error after passing (ANS MATCHES '0N' ANS0) A very long numeric string will do this, see sample code below: 0001: ARRAY = '12345' ;* Just so array has a value 0002: VAR = STR('1',512) 0003: IF VAR MATCHES 0N

RE: [U2] [UV] non-numeric error after passing (ANS MATCHES '0N' ANS0)

2005-03-10 Thread Alfke, Colin
Because num() will OK 1.1, -22 etc that you wouldn't want to use in an array expression. Colin Alfke -Original Message- From: John Solie I'm wondering why y'all are using a ...MATCHES 0N... Usually, I'll use the NUM() function. The code snippet in one of the first messages in

RE: [U2] [UV] non-numeric error after passing (ANS MATCHES '0N' ANS0)

2005-03-10 Thread Alfke, Colin
Yes, I'm on UniData (testing on 5.1.27). We don't have the !matches version. However, I did test some very large values in the array and didn't get the non-numeric error. Some more of those things that are almost the same between UniData and UniVerse but not quite. No wonder they don't want to

RE: [U2] [UV] non-numeric error after passing (ANS MATCHES '0N ' ANS0)

2005-03-10 Thread Andrew Lakeland
:[EMAIL PROTECTED] Sent: 10 March 2005 18:24 To: u2-users@listserver.u2ug.org Subject: RE: [U2] [UV] non-numeric error after passing (ANS MATCHES '0N' ANS0) I'm wondering why y'all are using a ...MATCHES 0N... Usually, I'll use the NUM() function. The code snippet in one of the first messages

RE: [U2] [UV] non-numeric error after passing (ANS MATCHES '0N' ANS0)

2005-03-10 Thread John Solie
12:24 PM To: u2-users@listserver.u2ug.org Subject: RE: [U2] [UV] non-numeric error after passing (ANS MATCHES '0N' ANS0) I'm wondering why y'all are using a ...MATCHES 0N... Usually, I'll use the NUM() function. The code snippet in one of the first messages in this thread would

RE: [U2] [UV] non-numeric error after passing (ANS MATCHES '0N' ANS0)

2005-03-10 Thread Stevenson, Charles
-Original Message- From: John Solie I'm wondering why y'all are using a ...MATCHES 0N... Usually, I'll use the NUM() function. The code snippet in one of the first messages in this thread would be: BEGIN CASE CASE NUM(ANS) AND ANS 0 more code here Or is NUM() something

RE: [U2] [UV] non-numeric error after passing (ANS MATCHES '0N' ANS0)

2005-03-10 Thread Stevenson, Charles
I think we've squeezed enough blood outa this turnip, except for one niggling little question. What's with the creeping number of spaces in the subject line in the various posts?: Subject: RE: [U2] [UV] non-numeric error after passing (ANS MATCHES '0N' ANS0) RE: [U2] [UV] non-numeric error

RE: [U2] [UV] non-numeric error after passing (ANS MATCHES '0N' ANS0)

2005-03-09 Thread Stevenson, Charles
In UniData the '.' and '-' will evaluate as numeric. You might want to check how these would fall through your logic in UniVerse. Colin, But they don't pass MATCHES '0N' test on UD, do they? In UD (and UV) NUM('.1') is true, as is NUM(-1), but this program does not test for NUM(). On UD,

RE: [U2] [UV] non-numeric error after passing (ANS MATCHES '0N' ANS0)

2005-03-09 Thread Stevenson, Charles
Ezhno, Thank-you for your help. Comments interspersed. cds -Original Message- From: Ezhno Cheveyo 072: BEGIN CASE 073: CASE ANS MATCHES '0N' ANS0 074: IF MITM5,ANS# THEN 075: IF MITM7,ANS# THEN GOSUB 200 ; IF Anyhow, the LOCATE command on the

RE: [U2] [UV] non-numeric error after passing (ANS MATCHES '0N' ANS0)

2005-03-09 Thread Stevenson, Charles
-Original Message- From: Andrew Lakeland How about writing a mickey mouse program which goes through the full ASCII char set and see which one passes the logic. I've tried that several variations on the theme. For example: FOR I = 0 TO 255 IF ( 1:CHAR(I) MATCHES '0N') THEN

RE: [U2] [UV] non-numeric error after passing (ANS MATCHES '0N' ANS0)

2005-03-09 Thread Alfke, Colin
Right, but I wasn't sure how UniVerse would handle them. A quick check with ANS = :@VM passed the test though. Any possibility of that kind of problem? hth Colin Alfke Calgary, AB -Original Message- From: Stevenson, Charles In UniData the '.' and '-' will evaluate as numeric.

RE: [U2] [UV] non-numeric error after passing (ANS MATCHES '0N' ANS0)

2005-03-09 Thread Jacques G.
The bottom line is that ANS MATCHES '0N' test should never be true if ANS contains anything other than the chars 0 through 9. Right? 074: IF MITM5,ANS# THEN 075: IF MITM7,ANS# THEN GOSUB 200 ; There is another possibility. Your non-numeric error could be on a different line of your code.

RE: [U2] [UV] non-numeric error after passing (ANS MATCHES '0N' ANS0)

2005-03-09 Thread Stevenson, Charles
-Original Message- From: Jacques G. There is another possibility. Your non-numeric error could be on a different line of your code. In Universe, if you have a comment next to an include line: $INCLUDE SOMEINC SOMETHING.EQU ;* Include comment The Raid debugger will not show the

RE: [U2] [UV] non-numeric error after passing (ANS MATCHES '0N' ANS0)

2005-03-09 Thread Jacques G.
Actually, I was thinking that this was fixed a while back. Is that wrong or has this reappeared? There is another comparison error I ran into with Universe. When working with data that contained German accents, I came upon some that used character 255 as one of their accented characters.

Re: [U2] [UV] non-numeric error after passing (ANS MATCHES '0N' ANS0)

2005-03-08 Thread Bruce Nichol
Goo'day, Charles, At 18:25 08/03/05 -0500, you wrote: The relevant code ( I am VERY sure source matches object): 072: BEGIN CASE 073: CASE ANS MATCHES '0N' ANS0 074: IF MITM5,ANS# THEN 075: IF MITM7,ANS# THEN GOSUB 200 ; IF ERR THEN GOTO 15 287: 200:*Subroutine For Password

Re: [U2] [UV] non-numeric error after passing (ANS MATCHES '0N' ANS0)

2005-03-08 Thread Ezhno Cheveyo
072: BEGIN CASE 073: CASE ANS MATCHES '0N' ANS0 074: IF MITM5,ANS# THEN 075: IF MITM7,ANS# THEN GOSUB 200 ; IF I saw a case similar to this. There was this program code which was looking for an address. There was an index per building where the city code, civic number

RE: [U2] [UV] non-numeric error after passing (ANS MATCHES '0N' ANS0)

2005-03-08 Thread Alfke, Colin
In UniData the '.' and '-' will evaluate as numeric. You might want to check how these would fall through your logic in UniVerse. hth Colin Alfke -Original Message- From: Stevenson, Charles The relevant code ( I am VERY sure source matches