Question to Methods

Claudius Sailer Claudius at sailer-online.de
Tue Feb 24 19:33:26 CST 2004


Hi Ruslan,


Am 24. Feb 2004 um 09:27 Uhr schrieb Ruslan Zasukhin:

> In the V4RB Examples folder present example "Methods".

Sorry this can't help

   StringUprFld = new VString( "stringUpr_fld", 30 )
   StringUprFld.SetMethod( "Upper(string_fld)" )

but I am using

Classes for every Table

Sub DBCurrencies(inDatabase as Datenbank)
   name="Currencies"
   CUR=new VVarChar("CUR",504,ValLang,kV_Unique +kV_Indexed)
   CURName=new VVarChar("CURName",504, ValLang,kV_Unique +kV_Indexed)
   Ric=new VVarChar("Ric",504,ValLang,kV_Indexed+kV_Nullable)
   Online=new VObjectPtr("Online",inDataBase.TOnline,kV_Nullable +  
kV_Restrict)
   LastValue=new VLong("LastValue",kV_Nullable)
   QuotationUnit=new VULong("QuotationUnit")
   QuotationMode=new VBoolean("QuotationMode")
   NValue=new VFloat("NValue","if(QuotationMode=1,  
LastValue/QuotationUnit, 1/(LastValue/QuotationUnit)"))
   Sortierung=new VULong("Sortierung")
end sub

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

bye


Claudius

-- 
G4/733 QS / MacOS X 10.3.2de / RB 4.5.3de or 5.2.4/ Valentina 1.10.0
Homepage    http://www.sailer-online.de/pub/RealBasic/
Download    finale Versionen, Betaversionen auf der Homepage



More information about the Valentina mailing list