|
-
Apr 23rd, 2000, 05:06 PM
#1
Thread Starter
transcendental analytic
Isnull, Isempty, isnumeric, isdate, ismissing.. is there any function that i can get if a reference val is set? I have tried if object=nothing then but get's "invalid use of object".
Use  
writing software in C++ is like driving rivets into steel beam with a toothpick.
writing haskell makes your life easier:
reverse (p (6*9)) where p x|x==0=""|True=chr (48+z): p y where (y,z)=divMod x 13
To throw away OOP for low level languages is myopia, to keep OOP is hyperopia. To throw away OOP for a high level language is insight.
-
Apr 23rd, 2000, 11:52 PM
#2
Frenzied Member
What do you mean by a reference Val Being set?
-
Apr 24th, 2000, 12:02 AM
#3
Thread Starter
transcendental analytic
Dim a as blablaclass
Dim b as new blablaclass
If isnotset(a) then msgbox "a Is not set"
set a=b
If not isnotset(a) then msgbox "a Is set"
Use  
writing software in C++ is like driving rivets into steel beam with a toothpick.
writing haskell makes your life easier:
reverse (p (6*9)) where p x|x==0=""|True=chr (48+z): p y where (y,z)=divMod x 13
To throw away OOP for low level languages is myopia, to keep OOP is hyperopia. To throw away OOP for a high level language is insight.
-
Apr 24th, 2000, 12:20 AM
#4
Frenzied Member
I still don't get what you mean by is set, do you mean if the variable contains a class or not
Ie
Code:
Dim a as clsMyClass
IsSet (a)
returns false
and
Code:
Dim a as New clsMyClass
IsSet (a)
returns true
-
Apr 24th, 2000, 12:38 AM
#5
Thread Starter
transcendental analytic
I have a Temporar solution but I don't like it:
Code:
Function Isnotset(test) As Boolean
On Error Resume Next
temp = test
If Err = 91 Then Isnotset = True
End Function
I don't know if it should work with all classes (what about those that have no default value)
Use  
writing software in C++ is like driving rivets into steel beam with a toothpick.
writing haskell makes your life easier:
reverse (p (6*9)) where p x|x==0=""|True=chr (48+z): p y where (y,z)=divMod x 13
To throw away OOP for low level languages is myopia, to keep OOP is hyperopia. To throw away OOP for a high level language is insight.
-
Apr 24th, 2000, 02:03 AM
#6
Hyperactive Member
Isnt there an "isObject" function that might help?
"People who think they know everything are a great annoyance to those of us who do."
-
Apr 24th, 2000, 03:24 AM
#7
Thread Starter
transcendental analytic
No, i've tried all Isblabla allready
Use  
writing software in C++ is like driving rivets into steel beam with a toothpick.
writing haskell makes your life easier:
reverse (p (6*9)) where p x|x==0=""|True=chr (48+z): p y where (y,z)=divMod x 13
To throw away OOP for low level languages is myopia, to keep OOP is hyperopia. To throw away OOP for a high level language is insight.
-
Apr 24th, 2000, 05:38 AM
#8
Addicted Member
Kedaman, you were on the right track in the first place, your problem is just the syntax (use the Is keyword instead of '='):
you use: you need:
Code:
If objYourObject Is Nothing
that's all
-
Apr 24th, 2000, 08:23 AM
#9
Frenzied Member
Or
[code]
If CBool(ObjPtr(objMyObject))
Returns true iff object is set
-
Apr 24th, 2000, 03:13 PM
#10
Thread Starter
transcendental analytic
Use  
writing software in C++ is like driving rivets into steel beam with a toothpick.
writing haskell makes your life easier:
reverse (p (6*9)) where p x|x==0=""|True=chr (48+z): p y where (y,z)=divMod x 13
To throw away OOP for low level languages is myopia, to keep OOP is hyperopia. To throw away OOP for a high level language is insight.
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
|