Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Position in a Memo field
Message
De
19/11/2008 16:11:20
 
 
À
19/11/2008 16:00:13
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Versions des environnements
Visual FoxPro:
VFP 9 SP2
Divers
Thread ID:
01362935
Message ID:
01362959
Vues:
8
My code should place the cursor at the right place, but do you also want to hide the text before the desired position? If so, I guess you must store the first part of the old value in a variable in the gotfocus event, use the last part as value for the editbox and in lostfocus you must add the two parts together again.

>That does'nt work
>
>>Soemthing like
>>*gotfocus:
>>this.selstart=at('4',this.value)
>>
>>
>>>Have en edit box in a form. Memo field
>>>
>>>How do I position the cursor so that the user sees the content of that memo field starting with the occurence of a string of character.
>>>
>>>For example:
>>>
>>>Field contains
>>>
>>>1
>>>2
>>>3
>>>====
>>>4
>>>5
>>>6
>>>7
>>>8
>>>
>>>I want the user to see the data starting at 4 in the memo field.
>>>
>>>I guess that SelStart and SelLengtn are involved here
>>>
>>>But what next?
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform