Precisely Speaking
May 18, 2012, 03:47:31 PM
Welcome,
Guest
. Please
login
or
register
.
1 Hour
1 Day
1 Week
1 Month
Forever
Login with username, password and session length
News
: So what's news with you? Tell us about it in "Getting To Know You"!
Home
Help
Calendar
Login
Register
Precisely Speaking
>
Training and Education
>
SB+ Programming Questions
>
"1" = "001"?
Pages: [
1
]
Go Down
« previous
next »
Print
Author
Topic: "1" = "001"? (Read 2317 times)
precisonline
President/Chief Technologist
Administrator
Rock Star
Posts: 1532
"1" = "001"?
«
on:
September 18, 2009, 09:26:37 AM »
Just ran into an interesting thing with SB+. Comparing strings of "1" = "001", SB+ thinks they're identical! Now, I can see this as a numeric comparison, but not as a string comparison. I guess I'll have to throw an extra character out there on both to get a true comparison, eh?
Logged
-Kevin
Accidents "happen"; success, however, is planned and executed.
DonQuixote
Rock Star
Posts: 107
To Dream the Impossible Dream...
Re: "1" = "001"?
«
Reply #1 on:
December 16, 2009, 01:56:36 PM »
sounds like that old saying. "A son is son until he gets a wife, a daughter is a daughter all her life". In this case "A numeric is a numeric until he gets a string, a numeric is a numeric all her life". Doesn't rhyme very well.
Logged
DonQuixote
Rock Star
Posts: 107
To Dream the Impossible Dream...
Re: "1" = "001"?
«
Reply #2 on:
October 14, 2010, 12:20:38 PM »
The programming manual says to use EQS instead of EQ or =
That doesn't work on my system.
But, the following is the only thing I can find to convert a numeric to a string.
AA = QUOTE(1)
BB = QUOTE(001)
Now AA does not equal BB
Logged
precisonline
President/Chief Technologist
Administrator
Rock Star
Posts: 1532
Re: "1" = "001"?
«
Reply #3 on:
October 14, 2010, 12:34:04 PM »
EQS might be only for $BASICTYPE "U"...
Logged
-Kevin
Accidents "happen"; success, however, is planned and executed.
Pages: [
1
]
Go Up
Print
« previous
next »
Jump to:
Please select a destination:
-----------------------------
General Category
-----------------------------
=> Getting To Know You
=> Announcements
=> Big Thoughts / Cool Ideas
=> Rants & Raves
-----------------------------
Application Support
-----------------------------
=> Red Leaf
=> Activant/Prelude Support
=> Summit Support
=> Avante Support
=> PRC Support
-----------------------------
Training and Education
-----------------------------
=> Connect!
=> U2 Programming Questions
=> SB+ Programming Questions
=> Web Programming Questions
=> Business Intelligence / MITS
=> PC / Hardware / Miscellaneous Support
Loading...