Posts: 1,273
Threads: 400
Joined: Mar 2003
how do i use format to get my currency value ek1 (12.75) ?
pf_db_test2
class PFDB
,int m1 m2 m3 m4 m5
,CURRENCY ek1
PFDB+ d
d.m1=10;d.m2=100
d.ek1=12.75
str values.format("'Callaway XX4',%i,%i,%d" d.m1 d.m2 d.ek1)
out values
thanks
Posts: 12,272
Threads: 144
Joined: Dec 2002
CURRENCY cannot be used with most QM functions. Assign to double and use format %.2f.
Posts: 1,273
Threads: 400
Joined: Mar 2003
another question, is there a shorter way to declare variables ?
class PFDB
,double'ek1 double'ek2 double'ek3
Posts: 12,272
Threads: 144
Joined: Dec 2002
double a b c
is not supported but can be used
^a ^b ^c
or
^a[3]