Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Find the space
Message
From
01/11/2004 10:11:31
Hilmar Zonneveld
Independent Consultant
Cochabamba, Bolivia
 
 
To
01/11/2004 07:20:45
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Title:
Environment versions
Visual FoxPro:
VFP 6
OS:
Windows XP
Miscellaneous
Thread ID:
00956490
Message ID:
00956545
Views:
7
>I have a field that is defined as a caracter, and I want to detect a space in the used part of the field (not the space at the end of the text). is there a difrence in the definithion of the two kinds of spaces? if not how can I request the space in the first 10 letters only?
>example: 06 7129361. I want to get (by select * from) only lines that there is a space in the first ten characters.
>Who can help me?

If I understand your specifications correctly, you may want to combine both of Sergey's suggestions: space(1) $ alltrim(left(MyField, 10)).
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