please be clear, Allocate ur string???????????????
i just used StrIToA function

-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]]On
Behalf Of Ludovic
Ferrandis
Sent: Tuesday, September 03, 2002 6:54 PM
To: Palm Developer Forum
Subject: Re: slider value control ---pls help urgent


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/


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

Reply via email to