last 3 Recoding-Problems

Ruslan Zasukhin sunshine at public.kherson.ua
Sat Feb 12 09:55:54 CST 2005


On 2/12/05 9:37 AM, "Claudius Sailer" <Claudius at sailer-online.de> wrote:

> Also with methods. At the moment I generate Mothod in Database-Class
> 
>     
> TCurrencies.NValue.SetMethod("if(QuotationMode=1,(LastValue/10000)/
> QuotationUnit,1/((LastValue/10000)/QuotationUnit))")
> 
> Now I do same in Table-Class?
> 
>    NValue=new VFloat("NValue",
> METHOD('if(QuotationMode=1,(LastValue/10000)/QuotationUnit,1/
> ((LastValue/10000)/QuotationUnit))'))

If you talk about CREATION phase then yes.


--------
If you need change EXISTED method at runtime
You can use property Vfield.Method

Btw, via SQL also possible change field params using ALTER TABLE,
But IMHO SQL is much more complex way for 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-beta mailing list