Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Strip leading zeros
Message
De
20/10/2009 19:42:40
Hilmar Zonneveld
Independent Consultant
Cochabamba, Bolivie
 
 
À
20/10/2009 19:25:21
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Versions des environnements
Visual FoxPro:
VFP 8 SP1
Divers
Thread ID:
01430254
Message ID:
01430274
Vues:
49
>>In the present case, wouldn't it be simpler to do a padl(...) on whatever the user types, before doing the comparison?
>
>I dont' think so. There's no way to determine how many zero's to pad with. BOTH the following values should yield TRUE
>0024567890
>0000000290
I may have misunderstood the problem statement, but I thought in the table, data was filled out with zeros to a certain length, for example, 10 characters. If that is the case, whatever the user types should also be filled out to 10 characters.
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)
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform