|
|
|||||||||
|
|||||||||
|
|||||||||
| |
||
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
#1
|
|||
|
|||
|
What value type is Global in Visual Basic?
What value type is Global in Visual Basic?
If I have something defined like this: Code:
Global ErrorStatus& And I have know what data type this is. I have heard that the compiler sets the data type based on how it is used. Well, suppose I have this problem where I have to know what the default type it is because I am sending it to a C++ DLL. What type should I expect? |
|
#2
|
||||
|
||||
|
Global is not a variable type, its to say that the identifier can
be used in the whole page, and is not confined to the function/sub where you have declared it, it will be of type variant, so that you can assign any type of values to it. hope this helps
__________________
Look! Its a ShemZilla ![]() ![]()
|
|
#3
|
||||
|
||||
|
yep the default in VB is Variant - kind of "joker" type.
what exactly are you trying to do? give more details and maybe we can help... ![]() |
|
#4
|
|||
|
|||
|
VB has a VarType() function you can use to identify the datatype of a variable.
__________________
====== Doug G ====== I didn't attend the funeral, but I sent a nice letter saying I approved of it. --Mark Twain |
|
#5
|
|||
|
|||
|
Quote:
I understand that Global is not a data type. I understand that it only means that it can be used outside the area where it is declared. The probelm is that this variable is passed from a Visual Basic GUI to a c++ dll and I need to know how to declare variable in the argument list. If it is a variant type, I think I will look into seeing how I can do that. |
![]() |
| Viewing: ASP Free Forums > Programming > Visual Basic Programming > What value type is Global in Visual Basic? |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|