Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Parsing a city,state zip field
Message
From
31/07/2001 15:02:24
Hilmar Zonneveld
Independent Consultant
Cochabamba, Bolivia
 
 
To
31/07/2001 14:55:42
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00537937
Message ID:
00537941
Views:
10
>I need an example via fox sql, of (if any) pulling the zip-code out of a city,state zip field unfortunately the data has been captured in this one field for years and I need to break it out. There are no constants i.e. (city, state zip), (city state zip), (city-state-zip) or (city, state zip). The zip can be from 5 to 9 numbers in char. Help : )

Can you provide a few sample field contents?

How would a human recognize where each part starts?

Some functions that may help you: at(), strtran(), substr().

Hilmar.
Difference in opinions hath cost many millions of lives: for instance, whether flesh be bread, or bread be flesh; whether whistling be a vice or a virtue; whether it be better to kiss a post, or throw it into the fire... (from Gulliver's Travels)
Previous
Reply
Map
View

Click here to load this message in the networking platform