Thank you for clarifying.  After spending almost an hour studying the
comments under CtlGetLabel, I have a better understanding of setting and
getting label text from the Selector control.  Since CtlSetLabel() uses
pointer to a string, this pointer should persists during the life of the
Form object.  Hence, use STATIC variable for the pointer.

-Elizabeth


                                                                                       
                          
                    Igor Mozolevsky                                                    
                          
                    <[EMAIL PROTECTED]>                 To:     Palm Developer 
Forum                         
                    Sent by:                                
<[EMAIL PROTECTED]>                     
                    bounce-palm-dev-forum-8072@news.        cc:                        
                          
                    palmos.com                              Subject:     RE: Question 
on CtlGetLabel()           
                                                                                       
                          
                                                                                       
                          
                    08/08/01 10:05 AM                                                  
                          
                    Please respond to Palm Developer                                   
                          
                    Forum                                                              
                          
                                                                                       
                          
                                                                                       
                          






--On 08 August 2001 09:25 -0700 [EMAIL PROTECTED] wrote:

>
> Why using STATIC variable for the label text?  If CtlGetLabel() returns a
> pointer to the label text, I should be able to get the text whenever I
> want.  Right?

Ok, fair enough, you don't need to use static for CtlGetLabel, but you do
need it for CtlSetLabel...

IM :-)

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





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

Reply via email to