daveinc Posted January 8, 2013 Posted January 8, 2013 Any idea why 0.00 is greater than 0 when it is in a Text field? When I do a Replace Field Contents If ( Table::f2 > 0 ; something happens ) and Table::f2 is a Text field, it evaluates as greater than 0 and "something happens". Why?
Raybaudi Posted January 8, 2013 Posted January 8, 2013 0.0 is > 0 exactly as A.A is > A: they sort that way when in a text field. Try: If ( GetAsNumber ( Table::f2 ) > 0 ; something happens ) 1
daveinc Posted January 8, 2013 Author Posted January 8, 2013 Raybaudi, I have a script with 256 Replace lines in it for 256 fields. I was trying to not have to do all of the editing. I just changed the text field to number 256 times, slightly easier than changing all of the Replace lines. It defaulted to text field type because of the original import from a tab file. Thanks for the reply.
comment Posted January 8, 2013 Posted January 8, 2013 I have a script with 256 Replace lines in it for 256 fields. I suggest you re=examine your structure - it sounds like you should have 256 related records instead.
Vaughan Posted January 8, 2013 Posted January 8, 2013 It defaulted to text field type because of the original import from a tab file. Thanks for the reply. Make a backup of the file, then change the field(s) from text to number type. See if the problem is solved.
Recommended Posts
This topic is 4337 days old. Please don't post here. Open a new topic instead.
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now