hi,
say on VS2005,VB,
- i have defined a datatable on sub 1
- when i try to use datatable from sub 2,
i have the following error : "Name 'dt' is not declared."
i tried to change from private to public (or shared) sub , but it gives no results.
how can i make it visible for both subs without redefining it, thus erasing populated data ?
also
i already found i have to use "private" sometimes instead of "dim"
however can you tell what is the use of "private sub" and "public sub" ?
thank you
Aybe
say on VS2005,VB,
- i have defined a datatable on sub 1
- when i try to use datatable from sub 2,
i have the following error : "Name 'dt' is not declared."
i tried to change from private to public (or shared) sub , but it gives no results.
how can i make it visible for both subs without redefining it, thus erasing populated data ?
also
i already found i have to use "private" sometimes instead of "dim"
however can you tell what is the use of "private sub" and "public sub" ?
thank you
Aybe