Precisely Speaking
May 18, 2012, 03:47:31 PM *
Welcome, Guest. Please login or register.

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  
Pages: [1]   Go Down
  Print  
Author Topic: "1" = "001"?  (Read 2317 times)
precisonline
President/Chief Technologist
Administrator
Rock Star
*****
Posts: 1532



WWW
« 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...


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


« 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



WWW
« 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  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.7 | SMF © 2006-2008, Simple Machines LLC Valid XHTML 1.0! Valid CSS!