G
Guest
Heloe
I would like to be able to pass a condition of an IF statement as parameter as follow
aStr=†(A=1) and (B=2)â€
if aFunc(“aStrâ€) then
….
End if
and then the fuction process this and return true and false. This is not how i am going to use this just an example of how to send the condition and process it at the called function.
Private sub aFunc (ByVal aCond as string) as Boolean
‘ not suggesting it has to be String
If (aCond) then
Return true
Else
Return false
End if
End sub
How would I do that?
Thanks
Lisa
I would like to be able to pass a condition of an IF statement as parameter as follow
aStr=†(A=1) and (B=2)â€
if aFunc(“aStrâ€) then
….
End if
and then the fuction process this and return true and false. This is not how i am going to use this just an example of how to send the condition and process it at the called function.
Private sub aFunc (ByVal aCond as string) as Boolean
‘ not suggesting it has to be String
If (aCond) then
Return true
Else
Return false
End if
End sub
How would I do that?
Thanks
Lisa