Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Foxpro and Mysql
Message
 
 
À
12/03/2003 03:32:17
Albert Beermann
Piepenbrock Service Gmbh & Cokg
Osnabrück, Allemagne
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00764227
Message ID:
00764915
Vues:
23
Albert,

Local variables are visible only in program/function the are declared in. Private variables are visible in any program/function down the calling chain.

>Hello Sergey!
>Sorry, but here i am again.
>Just for understanding ??
>
>This code at InteractiveChange event of a search field works as expected:
>
>local l_verbindungsnr,l_cursor,l_select
>l_sucher = "%" + alltrim(this.value) +"%"
>l_verbindungsnr = -1
>l_cursor = "adressauswahl"
>l_select = "select adressnr,name1,plz,ort from t_adressen adressnr where name1 like ?l_sucher"
>
>*öffnen der verbindung
>do p_oeffnen in p_funktionen with l_verbindungsnr
>
>*wenn verbindung ok !!
>if l_verbindungsnr >= 0
> do p_lesen in p_funktionen with l_verbindungsnr,l_select,l_cursor
>ENDIF
>
>select (l_cursor)
>browse
>
>
>but the same code with defining
>local l_sucher,l_verbindungsnr,l_cursor,l_select
>........
>there is always a popup window "Please enter a value for l_sucher"
>
>Just for understanding, whats wrong with "local l_sucher"
>
>Best regards
>
--sb--
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform