Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Retrieving 10 center characters from string
Message
De
04/06/2008 04:47:16
 
 
À
04/06/2008 04:35:28
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Versions des environnements
Visual FoxPro:
VFP 8 SP1
Divers
Thread ID:
01321512
Message ID:
01321513
Vues:
23
Hi Chaim,

would this be enough?
myBarcode = [*c123456-789c*]
CHRTRAN(myBarcode,[*c],[])
>Hi
>
>I have to read Barcode.
>I have to get 10 character with the following format 123456-789 (6 digits, dash +3 digits) .
>My clients use with few bar readers that each one retrieve the results, but adding different characters for safe.
>
>for example:
>*123456-789*
>c123456-789c
>*c123456-789c*
>***123456-789***
>123456-789
>
>I want to get always the 10 center characters.
>In addition, I want to be sure that all the rest not digits (how to run isdigit function).
Best Regards
-Tom

Debugging is twice as hard as writing the code in the first place.
Therefore, if you write the code as cleverly as possible, you are,
by definition, not smart enough to debug it.

Oh, and BTW: 010101100100011001010000011110000101001001101111011000110110101101110011
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform