As for Dale, it's not quite clear to me what you want to do (and neither with which compiler... sometimes it does make a difference :). But it sounds as if looking at preprocessor directives like #define might help you further. ge At 22:18 12/03/2001 +0000, Konstantinos Bibis wrote: >Hello, >i'm using a 16F877 PIC. >I've written a small program in C. >It is divided in 8 states, and each has it's own delay. I'm using delay_ms() >to specify the delay. >I wanted to define lets say a=100, b=359, c=7890, so in the program i can >write delay_ms(a), delay_ms(b),delay_ms(c) etc, instead of writing tha >actual number in seconds. I tried defining: long int a = 100(didint work), >and later saw in the manual that delay_ms() is expecting a number in >milliseconds. > >Is there a simple way to get aroound it ? -- http://www.piclist.com hint: The list server can filter out subtopics (like ads or off topics) for you. See http://www.piclist.com/#topics