Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Checking string for predefined format
Message
From
10/08/2000 14:41:51
 
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00403485
Message ID:
00403569
Views:
24
OK, OK, the help says that for Character strings, no transform is performed. :)
Yup, I see what you mean. I think that has to do with the fact that the lengths of the masks and the lcAPN values are different. But that still sounds like an undocumented feature.

This was part of my test. If the alphas and numerics are switched, they both return .T.
lcAPN = "123456A-B789012C-D345678EF-GH901234I-KLMNOP"
?(lcApn= TRANSFORM(lcAPN, "999999X-X999999X-X999999XX-XX999999X-XXXXXX"))
lcAPN = "ABCDEF1-2DEFGHI3-4JKLMNO56-78PQRSTU9-012345"
?(lcApn= TRANSFORM(lcAPN, "999999X-X999999X-X999999XX-XX999999X-XXXXXX"))
>Strange, but these are my tests:
>lcAPN = "123456A-B789012C-D345678EF-GH901234I-KLMNOP"
>?(lcApn= TRANSFORM(lcAPN, "999999X-X999999X-X999999XX-XX999999X-XXXXXX"))
>lcAPN = "a123456A-B789012C-D345678EF-GH901234I-KLMNOP"
>?(lcApn= TRANSFORM(lcAPN, "999999X-X999999X-X999999XX-XX999999X-XXXXXX"))
...
>
>Undocumented feature?
Insanity: Doing the same thing over and over and expecting different results.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform