look for an methode to dwitch an boolean field

Ruslan Zasukhin sunshine at public.kherson.ua
Thu Oct 16 23:05:23 CDT 2003


on 10/16/03 22:39, SoftIl at softil at onlinehome.de wrote:

Hi Carsten,

> Hi,
> is there an methode, which can switch an field of type kBoolean?
> 
> Example:
> Boolean field: _bField
> methode field : methode "switch(_bField)"  ?? I think "switch" wouldn't be
> correct.
> 
> I hope you can understand me.

I think you mean CHANGE TYPE, yes?

Yes, you can use VBaseObject.ChangeFieldType() method.
IMPORTANT it return new object, old field after this call is destroyed!!!


Hmm, or you mean CHANGE VALUE of boolean field?
Now you need do that self

    value = boolFld.value
    boolFld.value = !value

-- 
Best regards,
Ruslan Zasukhin      [ I feel the need...the need for speed ]
-------------------------------------------------------------
e-mail: ruslan at paradigmasoft.com
web: http://www.paradigmasoft.com

To subscribe to the Valentina mail list go to:
http://lists.macserve.net/mailman/listinfo/valentina
-------------------------------------------------------------



More information about the Valentina mailing list