Question to Methods
Ruslan Zasukhin
sunshine at public.kherson.ua
Tue Feb 24 10:27:12 CST 2004
on 2/24/04 7:42 AM, Claudius Sailer at Claudius at sailer-online.de wrote:
> Hi,
>
> Am 23. Feb 2004 um 21:26 Uhr schrieb Ruslan Zasukhin:
>
>>> is this possible to rebuild with a method?
>>
>> Formula should be something as
>>
>> if(QuotationMode=1, Lastprice/QuotationUnit,
>> 1/(LastPrice/QuotationUnit)
>
> I can't find in docu an example for Class definition, so I tried this
>
> NValue=new VFloat("NValue",kV_IsMethod("if(QuotationMode=1,
> LastValue/QuotationUnit, 1/(LastValue/QuotationUnit)"))
>
> but got an error (Syntax Error) where can I find an example or whats
> the right coding?
In the V4RB Examples folder present example "Methods".
Constructor of Vfloat have last parameter AS STRING.
So syntax must be
NValue=new VFloat("NValue",
"if(QuotationMode=1,LastValue/QuotationUnit,1/(LastValue/QuotationUnit)"))
--
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