This is a discussion on "public variable" within the Databases section. This forum, and the thread "public variable are both part of the Program Your Website category.
|
|
|
|
|
![]() |
||
public variable
|
||
| Notices |
![]() |
|
|
LinkBack | Thread Tools |
|
|||
|
public variable
Hi,
If I set public variable in Modulus, can I access the variable in forms environment? In modulus environment: dim run as integer is it public variable? Please let me know, thanks. |
|
|
|
|||
|
Public Variables
You need to declare the variable as Global if you want to access the it in a forms module code.
Global Run as Integer Do this just after the Option Explicit in the module, and outside of any procedure block of code. I also prefix my global variables so I don't get confused. Global Glob_Run As Integer |
![]() |
| Tags |
| public, variable |
| Thread Tools | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Safari 3 Public Beta | dcpweb | Webforumz Cafe | 11 | Aug 9th, 2007 19:45 |
| Public vs. Private Pages | Sulman | Website Planning | 4 | May 25th, 2007 05:32 |
| How to use Public Variable in access forms | faizee36 | Databases | 0 | Jan 17th, 2006 08:23 |