How do I use the setMethod function in V4RB

Ruslan Zasukhin sunshine at public.kherson.ua
Fri Sep 24 07:21:17 CDT 2004


On 9/24/04 1:31 AM, "Kevin Windham" <kevo at gatorgraphics.com> wrote:

Hi Kevin,

> Here is what I've tried. There is no error returned in the error number
> for the BO. vF is a VField, bo is the baseObject. The type is Long, and
> the method text is "6/3"
> 
> vf = 
> bo.CreateField(fFieldName.text,pFieldType.RowTag(pFieldType.ListIndex))
> if cbIsMethod.value then vf.SetMethod(fMethodText.Text)
> i = bo.DataBase.ErrNumber
> 
> I'm clueless as to why it's not working, and why there is no error
> returned if the method is invalid.

Please look on page 26 of V4RBReference.pdf

When you create field you need send text of method as ONE MORE parameter.

Must be 

    CreateField( fFieldName.text,pFieldType.RowTag(pFieldType.ListIndex),
                0, 0, fMethodText.Text )


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