As you have declared it here, this variable cannot be used outside of this module. I'm guessing that you actually have a couple of these running around from accidentally defining more than one of them....
That's my guess anyway.... You still haven't provided enough info, methinks... Kevin -----Original Message----- From: jason [mailto:[EMAIL PROTECTED]] Sent: Friday, December 20, 2002 12:31 AM To: Palm Developer Forum Subject: Re: trouble in global variant? i declare my global as below typedef struct { float rdata; float tdata; } MyChangeListType; static MyChangeListType MyChangeArray[10]; at the startapp, i get data from database to array . And there is only one procedure i modify the array and then save the modify to database , but mostly i did not run that procedure . more often ,i get the data from the RS232 , then change the RS232 data to another array using MyChangeArray . in my program i find that at the startapp ,data in MyChangeArray is correct ,but when i use them to change the RS232's data , they are not same as at be startapp procedure ,and at that time i have not modified MyChangeArray. jason > How exactly are you declaring this array? Are you seeing this change > within one program run, or from one execution of the program to the > next? You don't provide enough information to really figure out what is > going on. > > -- > Ben Combee <[EMAIL PROTECTED]> > CodeWarrior for Palm OS technical lead > Palm OS programming help @ www.palmoswerks.com > > > -- For information on using the Palm Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/support/forums/ ------------------------------------------ The information in this transmittal and any attachments is privileged and confidential and is intended only for the recipient(s) listed above. You are hereby notified that any unauthorized distribution or copying of this transmittal or its attachments is prohibited. If you have received this transmittal in error, please notify Invivodata immediately at (831) 438-9550. ------------------------------------------ -- For information on using the Palm Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/support/forums/
