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--