Question to Methods

Ruslan Zasukhin sunshine at public.kherson.ua
Mon Feb 23 22:26:31 CST 2004


on 2/23/04 10:23 PM, Claudius Sailer at Claudius at sailer-online.de wrote:

Hi Claudius,

> I didn't used Methods until now, but now I have an idea and need some
> help wether I can realize that or not.
> 
> this are the table-fields
> 
>  LastPrice=new VLong("LastPrice",kV_Nullable)
>  QuotationUnit=new VULong("QuotationUnit")
>  QuotationMode=new VBoolean("QuotationMode")
> 
> and I have the rule:
> 
> When QuotationMode = true
> then Result = Lastprice/QuotationUnit
> else Result = 1/(LastPrice/QuotationUnit)
> 
> is this possible to rebuild with a method?

Formula should be something as

    if(QuotationMode=1, Lastprice/QuotationUnit, 1/(LastPrice/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