Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
SelStart Bug?
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Titre:
Divers
Thread ID:
00589456
Message ID:
00589791
Vues:
41
Hi Craig

You are right about the stuff command but it does not solve the problem. The value of SelStart is still incorrect.

Simon

>Simon, it looks like your STUFF command is not quite right.
>
>With your example, if you insert then backspace the inserted text out then insert again, it will keep shifting to the left.
>
>STUFF is inserting at the value of selstart, i.e. if selstart was at 5 then the STUFF command will insert before 5.
>
>existing text: 12345
>insert "text"
>result: 1234text5
>
>and so on.
>
>Try modifying the STUFF command like this:
>
This.Parent.editbox.value=Stuff(This.Parent.editbox.Value,This.Parent.editBox.selStart+1,0,"test")
>
>Hope this helps,
Simon White
dCipher Computing
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform