Changing a Field's Type?

Ruslan Zasukhin sunshine at public.kherson.ua
Tue May 4 19:22:40 CDT 2004


On 5/4/04 7:05 PM, "Ken Ray" <kray at sonsothunder.com> wrote:

> I'd like to know if there's a way to change a VarChar field to a UShort in
> code without having to go to VAPP to do it. I know I can delete the VarChar
> field and recreate a new field that's UShort, but I'll lose all the data
> currently in that field of the table when I do it, right?
> 
> Any suggestions would be appreciated,

BaseObject "class" have function changeType

In VXCMD something as

    BaseObject_changeType()
    

I am not sure if you loose data on string to numeric conversion.
May be no.

You can check this in VAPP on test db

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