Question to Methods
Ruslan Zasukhin
sunshine at public.kherson.ua
Tue Feb 24 20:58:14 CST 2004
on 2/24/04 8:41 PM, Claudius Sailer at Claudius at sailer-online.de wrote:
>>> Constructor of Vfloat have last parameter AS STRING.
>>> So syntax must be
>>>
>>> NValue=new VFloat("NValue",
>>>
>>> "if(QuotationMode=1,LastValue/QuotationUnit,1/(LastValue/
>>> QuotationUnit)"))
>>
>> This brings SyntaxError. I tested several things with brackets, but I
>> got always Syntax Error.
>
> Okay, now I have it.
>
> I defined the NValue=new VFloat("NValue") inside of the table-class and
> in the database Class I defined after the tabledefinition
>
> TCurrencies=new DBCurrencies(self)
>
> TCurrencies.NValue.SetMethod("if(QuotationMode=1,LastValue/
> QuotationUnit,1/(LastValue/QuotationUnit))")
>
> Now I don't get an error message again.
Aha, ys.
V4RB 1.x do not have method in contractors.
In V4RB 2.0 we have improve this.
--
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