[VNET] 2 question about fields
SoftIl
softil at onlinehome.de
Sat Feb 14 09:14:04 CST 2004
Hi George,
> fld = bo.GetField("oldname")
> fld.Name = "newname"
>
> This should work.
That's right, but in the current VNET version there is no baseobject methode
"GetField()".
Thanks for your answer,
Carsten
----- Original Message -----
From: "George A. Graham Jr." <gagraham at comcast.net>
To: "Valentina Developers" <valentina at lists.macserve.net>
Sent: Friday, February 13, 2004 10:46 PM
Subject: RE: [VNET] 2 question about fields
> 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
>
>
> _______________________________________________
> Valentina mailing list
> Valentina at lists.macserve.net
> http://lists.macserve.net/mailman/listinfo/valentina
More information about the Valentina
mailing list