Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Inserting into an existing memo field
Message
 
 
À
12/10/2001 11:15:26
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00567640
Message ID:
00567666
Vues:
11
Hi!

In the editbox code:
this.Value = STUFF(this.Value,this.SelStart,this.SelLength,lcStringToInsert)

HTH.

>Hi Folks -
>I have an interesting one:
>We would like to take a memo, display it in an edit box. Now when the user types into the edit box, give them the ability to activate what we call a picklist, right mouse click activates a list from which the user can select from. Once the user selects from the picklist, the value needs to be inserted into the memo field, exactly where the cursor was prior to activating the picklist.
>
>The activation of the picklist no-problem, getting the selected value from the picklist no problem, the problem is placing the picklist value in the memo field exactly where the user activated the picklist. The only idea I can come up with is to insert a hidden character just befor activating the list, then parsing the memo field replacing the hidden character the picklist value. The main issue is if the insert is in the middle of a sentence and not at the end.
>
>Has anyone have any other ideas ?
>
>Thanks,
>
>Larry
Vlad Grynchyshyn, Project Manager, MCP
vgryn@yahoo.com
ICQ #10709245
The professional level of programmer could be determined by level of stupidity of his/her bugs

It is not appropriate to say that question is "foolish". There could be only foolish answers. Everybody passed period of time when knows nothing about something.
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform