[Gambas-user] IF Not (any boolean) then
adamnt42 at ...626...
adamnt42 at ...626...
Thu Jan 1 23:27:14 CET 2015
On Thu, 01 Jan 2015 16:07:10 -0600
Lewis Balentine <lewis at ...3412...> wrote:
> If I use "NOT" in an "IF" statement with any boolean (function or value)
> then I get an error. example:
>
> If NOT (BooleanFuntion) then Do this
> unknown identifier: NOT
>
> Am I mistaken in thinking that one should be able to use the NOT
> operator in this manner ?
>
> I can get around this by changing the syntax to. example:
> If BooleanFuntion = False then Do this
>
> Regards,
>
> Lewis
>
Hmm, I just tried the following bit of silliness in a form_Open method and it seems to work "ok"?
If Not (Not (Me.Close(1))) Then
Error " This cannot be true "
Else
Error " or what???"
Endif
--
B Bruen <adamnt42 at ...3379... (sort of)>
More information about the User
mailing list