Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
String manipulation (preferably without RegExp)
Message
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Environment versions
Visual FoxPro:
VFP 8 SP1
OS:
Windows XP
Database:
Visual FoxPro
Miscellaneous
Thread ID:
01167490
Message ID:
01167549
Views:
7
>Naomi,
>
>I do not think that it matters not having letters at all, other than you will need to do further checking to see if the second value (quality) is applicable.
>
>Oh, sorry, it does matter, if you use the at() instead of the getwordnum function
>
>

Right. Anyway, the fun is only beginning. Now when I know the number part I need to start playing. I may have the same Color, type, number, Stone, but different quality (I guess, color quality would not matter). So, I think I need to try to find every part, which is present. Then I would need to try various combinations: first with ? instead of quality, then different type of stone, then without W- part if there is a part with -, then without type part, which could be E NK PN (I guess) and others, I don't know all possible types.

>
>>What if I don't have a letter at the beginning or don't have letters at all?
>>
>>Anyway, this
>>lcNumbers = Alltrim(chrtran("A-B123Q4E", "ABCDEFGHIJKLMNOPQRSTUVWXYZ-", Space(26)))
>>MESSAGEBOX(GETWORDCOUNT(lcNumbers))
>>seems to work.
>>
>>Thanks again.
If it's not broken, fix it until it is.


My Blog
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform