[VNET] 2 question about fields
George A. Graham Jr.
gagraham at comcast.net
Fri Feb 13 14:46:00 CST 2004
SoftI1,
I thought I would put my two cents in. If the VNET version is anything like
th V4RB version you use the GetField method of a BasObject. Then you would
set the Name property of the VField object returned by GetField to whatever
you wanted.
dim fld as VField, bo as VBaseObject
...
fld = bo.GetField("oldname")
fld.Name = "newname"
This should work.
Regards,
George
-----Original Message-----
From: valentina-bounces at lists.macserve.net
[mailto:valentina-bounces at lists.macserve.net]On Behalf Of SoftIl
Sent: Friday, February 13, 2004 2:33 PM
To: Valentina Developers
Subject: Re: [VNET] 2 question about fields
Hi Ruslan,
> In theory, class Field must have property Name.
> Just assign it new value.
No, it doesn't has such property, but in the field class there is an methode
"SetName()".
I think with this I can rename the field.
But how can I get an access to an existing field?
> Hmm, but does exists methods to set e.g. Flags of Fields?
>
> Must be GetField().
> Please check again.
There isn't such methode, or I can't find it.
Only methods CreateField() and DeleteField().
Best regards
Carsten
----- Original Message -----
From: "Ruslan Zasukhin" <sunshine at public.kherson.ua>
To: <valentina at lists.macserve.net>
Sent: Friday, February 13, 2004 8:06 PM
Subject: Re: [VNET] 2 question about fields
> on 2/13/04 8:56 PM, SoftIl at softil at onlinehome.de wrote:
>
> Hi Carsten,
>
> > Hi,
> > my first question:
> > Is it possible to rename an existing field in an baseobject and in case
of
> > true, how can I do that?
>
> In theory, class Field must have property Name.
> Just assign it new value.
>
>
> > second question:
> > How can I read (and change) the properties of an existing field from an
> > baseobject?
>
> > I haven't found an methode like
> > VField _field = myBaseObject.GetField(myFildName)
> >
> > I have only found methodes to create and delete fields.
>
> Hmm, but does exists methods to set e.g. Flags of Fields?
>
> Must be GetField().
> Please check again.
>
> --
> 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
> -------------------------------------------------------------
>
> _______________________________________________
> Valentina mailing list
> Valentina at lists.macserve.net
> http://lists.macserve.net/mailman/listinfo/valentina
>
_______________________________________________
Valentina mailing list
Valentina at lists.macserve.net
http://lists.macserve.net/mailman/listinfo/valentina
More information about the Valentina
mailing list