you have to convert the int to char.

Check the StrIToA function.
Don't forget to allocate your string or use a char array.



Akhil Bhandari wrote:
> hi,
>     get value from slider control returns me a integer
> value.
>    i want to display the set contol value as a label
> below it please help
> 
>     int val;
>     const char * strval;
> 
>      val =
> CtlGetValue(GetObjectPtr(VolumeControlVolumeFeedbackSli
> derControl));
>      strval = (char *)val;
> 
> CtlSetLabel(GetObjectPtr(VolumeControlLabLabel),strval)
> ;
> 
>   tried this but it does'nt work,please suggest any
> alternative.
> 
> regards
> akhil.
> 
> 
> 


-- 
For information on using the Palm Developer Forums, or to unsubscribe, please see 
http://www.palmos.com/dev/support/forums/

Reply via email to