Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Textbox Auto Complete
Message
De
19/12/2005 07:06:33
 
 
À
19/12/2005 03:34:20
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Versions des environnements
Visual FoxPro:
VFP 6 SP5
OS:
Windows XP
Network:
Windows XP
Database:
Visual FoxPro
Divers
Thread ID:
01079101
Message ID:
01079123
Vues:
30
>Dear Experts
>
>I want to fill up text1 with following method
>If I write B in text1 then should display BILL and so on.
>And cursor must remain in text1 and should go to the end of the word.
>
>I wrote following codes that work fine on the lostfocus of text1.
>But I do not want to use lostfocus.
>
>Please help
>
>case1=alltrim(thisform.text1.value)
>DO case
>CASE case1="B"
>	this.VALUE=alltrim("BILL")
>CASE case1="S"
>	this.VALUE=alltrim("BILLS")
>CASE case1="Q"
>	this.VALUE=alltrim("CHEQUE # ")
>ENDCASE
>
* on interactivechange

case1=alltrim(thisform.text1.value)
DO case
case len(m.case1)>1
  return 
CASE case1=="B"
	this.VALUE="BILL"
CASE case1=="S"
	this.VALUE="BILLS"
CASE case1=="Q"
	this.VALUE="CHEQUE #"
ENDCASE
this.selstart = 1000000
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform