Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Inserting text into a edit field using a button
Message
De
24/01/2006 15:02:33
Dragan Nedeljkovich (En ligne)
Now officially retired
Zrenjanin, Serbia
 
 
À
24/01/2006 09:33:39
Hilmar Zonneveld
Independent Consultant
Cochabamba, Bolivie
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Versions des environnements
Visual FoxPro:
VFP 8 SP1
OS:
Windows XP SP1
Network:
Windows 2000 Server
Database:
Visual FoxPro
Divers
Thread ID:
01089711
Message ID:
01089878
Vues:
19
>>I have created a form in which a user can type in a message. When the user clicks a button I want to insert some text where the cursor is located in the message. For example at any time the user can click a button and it inserts the text OPTION1 in the edit field of the message.
>>
>>Any ideas
>
>You can find out the position of the cursor with .SelStart (see also .SelLength). From there, it should be possible to manipulate the EditBox.Text property, through standard string-manipulation functions.

Even better - no string manipulation needed:

this.editbox.seltext="any text or string variable you like"

back to same old

the first online autobiography, unfinished by design
What, me reckless? I'm full of recks!
Balkans, eh? Count them.
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform