Made a small mod. to your code.  See if helps..

textC   =   "OrdC: "+ S  + ", type = "+ StrFormat("%0.3f", p); 




________________________________
From: Barry Scarborough <[email protected]>
To: [email protected]
Sent: Tuesday, 7 April, 2009 15:04:36
Subject: [amibroker] strFormat - how to insert strings


I am trying to build a string using the following formula. StrFormat will not 
allow me to insert a string into the string. My C manual says us a %s but Ami 
does not allow that. I tried upper and lower case S. Neither work. What should 
I use? 

s = "MKT"; 
p = 1.235; 
textC = StrFormat("OrdC: ,type= %s ,price1= %1.4f", s, p);
printf(textC) ;

Thanks,
Barry


   


      

Reply via email to