questions about VNET

Ruslan Zasukhin sunshine at public.kherson.ua
Tue Oct 14 13:47:27 CDT 2003


on 10/14/03 13:37, SoftIl at softil at onlinehome.de wrote:

> 2.)
> How can I check, if an VNET-object validly or not?
> Example:
> 
> I create an field:
> _myField = _table.CreateField("key",VNET.FieldType.kUShort);and I get an
> object from type VNET.VField return.
> 
> But in case the operation wasn't successfully, then I get an empty object
> return (the internal property _field = null).

> Only if the operation successfully, then I get an valid object return and the
> internal property _field has an value <> null.

> How can I check the object? If I do this "_myField == null" I get always
> false.

Whjat is _myField = 0 ?

> That's the same with all other objects (databaseobject,...).

Not success operation throw exception, yes?

So I cannot understand your problem.
If you catch exception then you cannot think about _myField as a good
object!

Or I do not see something ?

-- 
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