Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Numbers and Characters
Message
From
18/09/2000 18:51:55
 
 
To
18/09/2000 18:37:45
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00417845
Message ID:
00417852
Views:
22
Use following logical expression to find such records:
allt(str(val(HouseNumber),12,0)) == allt(HouseNumber)
Expression will be .T. when HouseNumber is really number, .F. when it contains some other characters.

>I have acquired table with an address number (in a character) field that I want to clean up. Got just about everything taken care of but there are some records that are like "1234B". I tried to exclude them with val( HouseNumber) but it simply returns 1234. What’s the best way to find these sorts of records to remove them programmatically? Thanks!
Vlad Grynchyshyn, Project Manager, MCP
vgryn@yahoo.com
ICQ #10709245
The professional level of programmer could be determined by level of stupidity of his/her bugs

It is not appropriate to say that question is "foolish". There could be only foolish answers. Everybody passed period of time when knows nothing about something.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform