how to create dropdown box / text field and get the value inside the box ?

 
 
honest_knave:

OBJ_EDIT

ObjectGetString

 

thanks...

coding now

 
honest_knave:

OBJ_EDIT

ObjectGetString

 

success create the text box for key in the value,

but how to get the value inside it ?

im using CHARTEVENT_OBJECT_CLICK for the button

 

   if(id==CHARTEVENT_OBJECT_CLICK)

   {

   if(sparam=="LotSizeToUse") 

   {

   // what should i put in here ?

   // StringToDouble ?? or StrToDouble ??

 

 

 

 

 

You should be able to retrieve it using

ObjectGetString(chart_ID,name_of_objedit,OBJPROP_TEXT)

 You can then typecast the text as a double, or use StringToDouble()

 
honest_knave:

You should be able to retrieve it using

 You can then typecast the text as a double, or use StringToDouble()

 

thanks for the help

 

trying now 

 


 
Glad to help
 
honest_knave:

You should be able to retrieve it using

 You can then typecast the text as a double, or use StringToDouble()

 

hi... i need some help here.
Reason: