CCS C Software and Maintenance Offers
FAQFAQ   FAQForum Help   FAQOfficial CCS Support   SearchSearch  RegisterRegister 

ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

CCS does not monitor this forum on a regular basis.

Please do not post bug reports on this forum. Send them to CCS Technical Support

#serialize woes

 
Post new topic   Reply to topic    CCS Forum Index -> General CCS C Discussion
View previous topic :: View next topic  
Author Message
jventerprises



Joined: 01 Apr 2004
Posts: 43
Location: Boston

View user's profile Send private message Visit poster's website

#serialize woes
PostPosted: Fri May 12, 2006 2:36 pm     Reply with quote

hi everyone.. why doesnt this work?

const int8 DEVADDRESS=1;
#serialize(id=DEVADDRESS,next="1",prompt="Enter Board Address")

this correctly prompts me for an integer when i program. later in the code i want to do something like this:

int8 temp;
temp=DEVADDRESS;

but DEVADDRESS is always 1 no matter what i type in the prompt! can i not do this? Why doesnt DEVADDRESS update?

thanks for any help Confused
_________________
Jon
carmarmu



Joined: 09 May 2006
Posts: 15
Location: Valencia (Spain)

View user's profile Send private message Send e-mail MSN Messenger

Re: #serialize woes
PostPosted: Sat May 13, 2006 12:49 pm     Reply with quote

Why you use "const" ? don�t be better " int8 DEVADDRESS=1 " or "static int8 DEVADDRESS=1"? Try it !
Regards.

jventerprises wrote:
hi everyone.. why doesnt this work?

const int8 DEVADDRESS=1;
#serialize(id=DEVADDRESS,next="1",prompt="Enter Board Address")

this correctly prompts me for an integer when i program. later in the code i want to do something like this:

int8 temp;
temp=DEVADDRESS;

but DEVADDRESS is always 1 no matter what i type in the prompt! can i not do this? Why doesnt DEVADDRESS update?

thanks for any help Confused

_________________
**CaRmArMu** Valencia (Spain)
Display posts from previous:   
Post new topic   Reply to topic    CCS Forum Index -> General CCS C Discussion All times are GMT - 6 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group