|
-
November 22nd, 2008, 05:03 PM
#1
how to define kind of global constants?
Hi!
What is the VB-Version from the c-statement:
in a.h:
#define home 0
#define guest 1
in b.h:
#include a.h
I try to use an enum, but the problem I'm facing is, that I do not have the definend enum-type available in another form or dialog.
In other words:
How can I define project-wide (global) constants?
Thanks in advance!
Marc
-
November 22nd, 2008, 08:05 PM
#2
Re: how to define kind of global constants?
Put the PUBLIC variables into a MODULE and they will be global to your program.
Code:
Public Home as Integer = 0
You can use CONST (not sure about globally)
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|