[V4RB] getting more info from a Field Type

Ruslan Zasukhin sunshine at public.kherson.ua
Thu Jan 23 22:56:44 CST 2003


on 1/23/03 8:51 PM, Wonder Fef at wonderfef at noos.fr wrote:

> Hello All,
> 
> When you're examining a Valentina database that you did not created yourself
> and from which you know nothing, it's easy to loop in the tables and in the
> BaseObjects to get their type.
> 
> But if a BaseObject type is, say, a 'varchar', how can I know its length ?
> Same question for type 'text' and getting its segment, etc.

Hi wonder,

Very easy.

You need type cast into Vvarcahr field and now you have access to all
properties of this class.

Yes code looks like big switch.

    dim fld as Vfield
    dim fldVarChar as VVarchar

    switch( type )


        case kV_TypeVarChar:
            fldVarchar = (VVarChar) fld

-- 
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://listserv.macserve.net/mailman/listinfo/valentina
-------------------------------------------------------------



More information about the Valentina mailing list