Posted: Mon Nov 12, 2007 4:59 pm Post subject: goto error
hello,
with this small program,"goto lampe" give error ;
if i replace with "goto begin " no error ......why?
because "Lampe Alias Portb.1" ??
we can't use the same name for label and variable ?
Marche AliasPortb.0' <<<<<<<< Marche is already used here as alias
Lampe AliasPortb.1' <<<<<<<< Lampe is already used here as alias
Transfo AliasPortb.2
Marchin AliasPinb.3
Begin:
Lampe:'<<<<<<<< rename the label Lampe in Lampe2 Waitms200
Transfo =0 Waitms200
Marche =0 Waitms200
Lampe =1 Waitms200
Transfo =1 Waitms200
Bitwait Marchin , Reset
Marche:'<<<<<<<< rename the label Marche in Marche2 Waitms200
Transfo =0 Waitms200
Lampe =0 Waitms200
Marche =1 Waitms200
Transfo =1 Waitms200
Bitwait Marchin , Set
Goto Lampe '<<<<<<<< rename the label Lampe in Lampe2
hi,
thanks Luciano,
i know your code will work,
my question was:
can't we use the same name for variable and label? _________________ G Daelen Namur Belgium
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 You cannot attach files in this forum You cannot download files in this forum