Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Working with text and numbers..
Message
De
01/07/2008 03:23:59
 
 
À
01/07/2008 03:16:15
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Versions des environnements
Visual FoxPro:
VFP 6 SP5
Divers
Thread ID:
01327805
Message ID:
01327806
Vues:
11
>I have set automatic value for a textbox like "RA-'.
>
>At the end of this text, the user should be able to add a no., like RA-01..
>
>In ADD button click event, I set the value of text to RA and did a setfocus on the textbox.
>
>How should I do this to put the cursor at the end of the text RA.. rather than put the cursor before the text.. ?
>
>If the text is RA-01.. and so forth.. how can I automatically set the value of the text box to RA-02.. when user clicks the ADD button?
>
>Any help? TIA.
lnOldValue=val(substr(yourbox.value,4))
Yourbox.value='RA-' + Transform(lnOldValue+1,'@L 99')
Yourbox.SelStart=4
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform