PDA

View Full Version : whats in Variable name ??? PB3.04



longpole001
- 27th June 2012, 07:00
Hi guys came across something when defining variable names and wondered why

when defining variable
L_0 var byte
L_1 var byte
L_2 var byte

on L_0 - compiler complains about syntax , but is fine with variable names L_1 and L_2 etc

is the "0" a reserved value for variable a name ??

Cheers

Sheldon

longpole001
- 27th June 2012, 07:16
disregard , found the error of my code ways

Ioannis
- 27th June 2012, 08:32
It could be that compiler uses internal variable with this name.

Ioannis