Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Getting Editbox's Line and Column position
Message
 
 
À
02/02/2009 09:48:56
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Versions des environnements
Visual FoxPro:
VFP 9 SP2
OS:
Windows XP SP2
Network:
Windows XP
Database:
Visual FoxPro
Application:
Desktop
Divers
Thread ID:
01378690
Message ID:
01378767
Vues:
26
Something like
lnStart = Thisform.Edit1.SelStart
lcCrLf = CHR(13) + CHR(10)

lnOccurence = OCCURS(lcCrLf, LEFT(Thisform.Edit1.Text, lnStart))

lcCommand = STREXTRACT(lcCrLf + Thisform.Edit1.Text, lcCrLf ,lcCrLf, lnOccurence + 1,2) 
>
>for instance:
>
>
>LIST[CR&LF]
>DISP MEMO[CR&LF]
>LIST ALL FOR;[CR&LF]
>empty(client_id)[CR&LF]
>BROWSE[CR&LF]
>PACK[CR&LF]
>
>
>on keypress RETURN I'd like to grab the code near to left side and process it.. Exactly as the same behavior of VFP's command line window
--sb--
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform