Thanks bear and hippy, I kinda sorted out the syntax issue myself in the end, I was using commas instead of colons as separators and should have reported so sooner but after a frustrating evening with only partial success I packed up watched a bit of the goggle box and hit the sack thinking nobody would reply that late on a Saturday night, so sorry for putting you both to so much trouble.
Hippy my partial success relates to the "servo and servopos" thread and really could do with some help or pointers to get the solution required, so I will repost I that thread.
Apologies for troubling you both but it was just frustration I have been using flow charts for years but have been coming up against some of the limitations of that method. So I am returning to BASIC but to say I am a bit rusty is an understatement more like completely corroded.
So thanks and apologies
Richard