LOOKDOWN with BRANCH irregularity
Archiver
Posts: 46,084
hi people:
i've written some code that uses lookdown and branch in the way
specified in the STAMP manual.
i take a value, look for it's index in LOOKDOWN, and then BRANCH to
an address based on it's position.
it works... but somehow skips forward.
let me explain...
i have 39 values in this lookdown and branch combination. it works
just fine for 19 places, then jumps forward by 10 for the 20th place,
making the 30th value in the lookdown the 20th.
anyone got any ideas? i've checked for all the obvious (misspellings,
syntax, etc) i can post the code too, if someone thinks that might
help.
thanks,
katherine
i've written some code that uses lookdown and branch in the way
specified in the STAMP manual.
i take a value, look for it's index in LOOKDOWN, and then BRANCH to
an address based on it's position.
it works... but somehow skips forward.
let me explain...
i have 39 values in this lookdown and branch combination. it works
just fine for 19 places, then jumps forward by 10 for the 20th place,
making the 30th value in the lookdown the 20th.
anyone got any ideas? i've checked for all the obvious (misspellings,
syntax, etc) i can post the code too, if someone thinks that might
help.
thanks,
katherine
Comments
[noparse][[/noparse]Non-text portions of this message have been removed]
> Post your code so we can have a look
okay, so here is the part that is giving me trouble. it's a sorta
long program, and i don't want to post more than necessary to save
ppl time, so this is the part that is not working. let me know if
someone thinks posting the whole thing will make a difference. i've
debugged the SERIN values (which show i am getting correct numbers
for city and currentcity) and they look fine. in fact i've watched
the values in the debug window JUMP right in front of my eyes... it's
really bizarre... meaning CURRENTCITY is equal to 220 and WRITEVAL
returns 30.
any pointers would be appreciated! thanks,
katherine
- - - - - - - - - - - - - - - - - - - - - - - - -
TESTCHANGE:
' if incoming ID = MYID then test to see if any values have changed
IF CITY = CURRENTCITY THEN FLICKER
'if no values have changed, then go back to flicker
'if city != current city then the values have changed
'and we need to retrieve the new city
CURRENTPULSE = PULSE
'set the current pulse value to the new pulse value
CURRENTCITY = CITY
'and set the current city value to the new city value
LOOKDOWN CURRENTCITY,
[noparse][[/noparse]200,201,202,203,204,205,206,207,208,209,210,211,212,213,214,215,216,2
17,218,219,210,211,212,213,214,215,216,217,218,219,220,221,222,223,224
,225,226,227,228,229,230,231,232,233,234,235,236,237,238,239],
WRITEVAL
debug DEC WRITEVAL," ",DEC CITY," ", CURRENTCITY, CR
' here i am watching the incoming vals from the serial port.
'i will send numeric value '220' and writeval will return '30'
BRANCH WRITEVAL,
[noparse][[/noparse]_LONDONLGW,_PARISCDG,_BIRMINGHAM,_MANCHESTER,_BRUSSELS,_COPENHAGEN,_S
TOCKHOLM,_ROME,_LEEDS,_BRISTOL,_GLASGOWPIK,_MALAGA,_NEWCASTLE,_LIVERPO
OL,_VIENNA,_CHICAGO,_SOUTHAMPTON,_MUNICH,_NEWYORK,_LOSANGELES,_BARCELO
NA,_CORK,_TENERIFE,_ABERDEEN,_AMSTERDAM,_NICE,_MILAN,_LONDONLHR,_PARIS
BVA,_EDINBURGH,_BORDEAUX,_ZURICH,_CARDIFF,_LONDONSTN,_MADRID,_FRANKFUR
T,_PRAGUE,_DUSSELDORF,_BERLIN]
'the lookdown finds the city code in the list, and branch
'matches the code to a city label.
'this changes the value of the LCD and hops back to flicker
GOTO FLICKER
'if this operation fails then the program goes to FLICKER
_LONDONLGW:
SEROUT LCDPIN, 84+$4000, [noparse][[/noparse]254, 1] ' clears the screen of current data
pause 10 ' required 10ms delay for screen
SEROUT LCDPIN, 84+$4000, [noparse][[/noparse]"LONDON-GTW"] '
GOTO FLICKER
_PARISCDG:
SEROUT LCDPIN, 84+$4000, [noparse][[/noparse]254, 1] ' clears the screen of current data
pause 10' required 10ms delay for screen
SEROUT LCDPIN, 84+$4000, [noparse][[/noparse]"PARIS-CDG"] '
GOTO FLICKER
_BIRMINGHAM:
SEROUT LCDPIN, 84+$4000, [noparse][[/noparse]254, 1] ' clears the screen of current data
pause 10 ' required 10ms delay for screen
SEROUT LCDPIN, 84+$4000, [noparse][[/noparse]"BIRMINGHAM"] '
GOTO FLICKER
_MANCHESTER:
SEROUT LCDPIN, 84+$4000, [noparse][[/noparse]254, 1] ' clears the screen of current data
pause 10 ' required 10ms delay for screen
SEROUT LCDPIN, 84+$4000, [noparse][[/noparse]"MANCHESTER"] '
GOTO FLICKER
_BRUSSELS:
SEROUT LCDPIN, 84+$4000, [noparse][[/noparse]254, 1] ' clears the screen of current data
pause 10' required 10ms delay for screen
SEROUT LCDPIN, 84+$4000, [noparse][[/noparse]"BRUSSELS"] '
GOTO FLICKER
_COPENHAGEN:
SEROUT LCDPIN, 84+$4000, [noparse][[/noparse]254, 1] ' clears the screen of current data
pause 10 ' required 10ms delay for screen
SEROUT LCDPIN, 84+$4000, [noparse][[/noparse]"COPENHAGEN"] '
GOTO FLICKER
_STOCKHOLM:
SEROUT LCDPIN, 84+$4000, [noparse][[/noparse]254, 1] ' clears the screen of current data
pause 10 ' required 10ms delay for screen
SEROUT LCDPIN, 84+$4000, [noparse][[/noparse]"STOCKHOLM"] '
GOTO FLICKER
_ROME:
SEROUT LCDPIN, 84+$4000, [noparse][[/noparse]254, 1] ' clears the screen of current data
pause 10 ' required 10ms delay for screen
SEROUT LCDPIN, 84+$4000, [noparse][[/noparse]"ROME"] '
GOTO FLICKER
_LEEDS:
SEROUT LCDPIN, 84+$4000, [noparse][[/noparse]254, 1] ' clears the screen of current data
pause 10 ' required 10ms delay for screen
SEROUT LCDPIN, 84+$4000, [noparse][[/noparse]"LEEDS"] '
GOTO FLICKER
_BRISTOL:
SEROUT LCDPIN, 84+$4000, [noparse][[/noparse]254, 1] ' clears the screen of current data
pause 10 ' required 10ms delay for screen
SEROUT LCDPIN, 84+$4000, [noparse][[/noparse]"BRISTOL"] '
GOTO FLICKER
_GLASGOWPIK:
SEROUT LCDPIN, 84+$4000, [noparse][[/noparse]254, 1] ' clears the screen of current data
pause 10 ' required 10ms delay for screen
SEROUT LCDPIN, 84+$4000, [noparse][[/noparse]"GLASGOW-PIK"] '
GOTO FLICKER
_MALAGA:
SEROUT LCDPIN, 84+$4000, [noparse][[/noparse]254, 1] ' clears the screen of current data
pause 10' required 10ms delay for screen
SEROUT LCDPIN, 84+$4000, [noparse][[/noparse]"MALAGA"] '
GOTO FLICKER
_NEWCASTLE:
SEROUT LCDPIN, 84+$4000, [noparse][[/noparse]254, 1] ' clears the screen of current data
pause 10 ' required 10ms delay for screen
SEROUT LCDPIN, 84+$4000, [noparse][[/noparse]"NEWCASTLE"] '
GOTO FLICKER
_LIVERPOOL:
SEROUT LCDPIN, 84+$4000, [noparse][[/noparse]254, 1] ' clears the screen of current data
pause 10 ' required 10ms delay for screen
SEROUT LCDPIN, 84+$4000, [noparse][[/noparse]"LIVERPOOL"] '
GOTO FLICKER
_VIENNA:
SEROUT LCDPIN, 84+$4000, [noparse][[/noparse]254, 1] ' clears the screen of current data
pause 10' required 10ms delay for screen
SEROUT LCDPIN, 84+$4000, [noparse][[/noparse]"VIENNA"] '
GOTO FLICKER
_CHICAGO:
SEROUT LCDPIN, 84+$4000, [noparse][[/noparse]254, 1] ' clears the screen of current data
pause 10' required 10ms delay for screen
SEROUT LCDPIN, 84+$4000, [noparse][[/noparse]"CHICAGO"] '
GOTO FLICKER
_SOUTHAMPTON:
SEROUT LCDPIN, 84+$4000, [noparse][[/noparse]254, 1] ' clears the screen of current data
pause 10' required 10ms delay for screen
SEROUT LCDPIN, 84+$4000, [noparse][[/noparse]"SOUTHAMPTON"] '
GOTO FLICKER
_MUNICH:
SEROUT LCDPIN, 84+$4000, [noparse][[/noparse]254, 1] ' clears the screen of current data
pause 10' required 10ms delay for screen
SEROUT LCDPIN, 84+$4000, [noparse][[/noparse]"MUNICH"] '
GOTO FLICKER
_NEWYORK:
SEROUT LCDPIN, 84+$4000, [noparse][[/noparse]254, 1] ' clears the screen of current data
pause 10' required 10ms delay for screen
SEROUT LCDPIN, 84+$4000, [noparse][[/noparse]"NEW YORK"] '
GOTO FLICKER
_LOSANGELES:
SEROUT LCDPIN, 84+$4000, [noparse][[/noparse]254, 1] ' clears the screen of current data
pause 10' required 10ms delay for screen
SEROUT LCDPIN, 84+$4000, [noparse][[/noparse]"LOS ANGELES"] '
GOTO FLICKER
_BARCELONA:
SEROUT LCDPIN, 84+$4000, [noparse][[/noparse]254, 1] ' clears the screen of current data
pause 10' required 10ms delay for screen
SEROUT LCDPIN, 84+$4000, [noparse][[/noparse]"BARCELONA"] '
GOTO FLICKER
_CORK:
SEROUT LCDPIN, 84+$4000, [noparse][[/noparse]254, 1] ' clears the screen of current data
pause 10' required 10ms delay for screen
SEROUT LCDPIN, 84+$4000, [noparse][[/noparse]"CORK"] '
GOTO FLICKER
_TENERIFE:
SEROUT LCDPIN, 84+$4000, [noparse][[/noparse]254, 1] ' clears the screen of current data
pause 10' required 10ms delay for screen
SEROUT LCDPIN, 84+$4000, [noparse][[/noparse]"TENERIFE"] '
GOTO FLICKER
_ABERDEEN:
SEROUT LCDPIN, 84+$4000, [noparse][[/noparse]254, 1] ' clears the screen of current data
pause 10' required 10ms delay for screen
SEROUT LCDPIN, 84+$4000, [noparse][[/noparse]"ABERDEEN"] '
GOTO FLICKER
_AMSTERDAM:
SEROUT LCDPIN, 84+$4000, [noparse][[/noparse]254, 1] ' clears the screen of current data
pause 10' required 10ms delay for screen
SEROUT LCDPIN, 84+$4000, [noparse][[/noparse]"AMSTERDAM"] '
GOTO FLICKER
_NICE:
SEROUT LCDPIN, 84+$4000, [noparse][[/noparse]254, 1] ' clears the screen of current data
pause 10 ' required 10ms delay for screen
SEROUT LCDPIN, 84+$4000, [noparse][[/noparse]"NICE"] '
GOTO FLICKER
_MILAN:
SEROUT LCDPIN, 84+$4000, [noparse][[/noparse]254, 1] ' clears the screen of current data
pause 10' required 10ms delay for screen
SEROUT LCDPIN, 84+$4000, [noparse][[/noparse]"MILAN"] '
GOTO FLICKER
_LONDONLHR:
SEROUT LCDPIN, 84+$4000, [noparse][[/noparse]254, 1] ' clears the screen of current data
pause 10' required 10ms delay for screen
SEROUT LCDPIN, 84+$4000, [noparse][[/noparse]"LONDON-LHR"] '
GOTO FLICKER
_PARISBVA:
SEROUT LCDPIN, 84+$4000, [noparse][[/noparse]254, 1] ' clears the screen of current data
pause 10' required 10ms delay for screen
SEROUT LCDPIN, 84+$4000, [noparse][[/noparse]"PARIS-BVA"] '
GOTO FLICKER
_EDINBURGH:
SEROUT LCDPIN, 84+$4000, [noparse][[/noparse]254, 1] ' clears the screen of current data
pause 10' required 10ms delay for screen
SEROUT LCDPIN, 84+$4000, [noparse][[/noparse]"EDINBURGH"] '
GOTO FLICKER
_BORDEAUX:
SEROUT LCDPIN, 84+$4000, [noparse][[/noparse]254, 1] ' clears the screen of current data
pause 10' required 10ms delay for screen
SEROUT LCDPIN, 84+$4000, [noparse][[/noparse]"BORDEAUX"] '
GOTO FLICKER
_ZURICH:
SEROUT LCDPIN, 84+$4000, [noparse][[/noparse]254, 1] ' clears the screen of current data
pause 10' required 10ms delay for screen
SEROUT LCDPIN, 84+$4000, [noparse][[/noparse]"ZURICH"] '
GOTO FLICKER
_CARDIFF:
SEROUT LCDPIN, 84+$4000, [noparse][[/noparse]254, 1] ' clears the screen of current data
pause 10' required 10ms delay for screen
SEROUT LCDPIN, 84+$4000, [noparse][[/noparse]"CARDIFF"] '
GOTO FLICKER
_LONDONSTN:
SEROUT LCDPIN, 84+$4000, [noparse][[/noparse]254, 1] ' clears the screen of current data
pause 10' required 10ms delay for screen
SEROUT LCDPIN, 84+$4000, [noparse][[/noparse]"LONDON-STN"] '
GOTO FLICKER
_MADRID:
SEROUT LCDPIN, 84+$4000, [noparse][[/noparse]254, 1] ' clears the screen of current data
pause 10' required 10ms delay for screen
SEROUT LCDPIN, 84+$4000, [noparse][[/noparse]"MADRID"] '
GOTO FLICKER
_FRANKFURT:
SEROUT LCDPIN, 84+$4000, [noparse][[/noparse]254, 1] ' clears the screen of current data
pause 10' required 10ms delay for screen
SEROUT LCDPIN, 84+$4000, [noparse][[/noparse]"FRANKFURT"] '
GOTO FLICKER
PRAGUE:
SEROUT LCDPIN, 84+$4000, [noparse][[/noparse]254, 1] ' clears the screen of current data
pause 10' required 10ms delay for screen
SEROUT LCDPIN, 84+$4000, [noparse][[/noparse]"PRAGUE"] '
GOTO FLICKER
_DUSSELDORF:
SEROUT LCDPIN, 84+$4000, [noparse][[/noparse]254, 1] ' clears the screen of current data
pause 10' required 10ms delay for screen
SEROUT LCDPIN, 84+$4000, [noparse][[/noparse]"DUSSELDORF"] '
GOTO FLICKER
_BERLIN:
SEROUT LCDPIN, 84+$4000, [noparse][[/noparse]254, 1] ' clears the screen of current data
pause 10' required 10ms delay for screen
SEROUT LCDPIN, 84+$4000, [noparse][[/noparse]"BERLIN"] '
GOTO FLICKER
WRITEVAL=CURRENTCITY-200
Or, if paranoid:
IF CURRENTCITY<200 OR CURRENTCITY>239 THEN SOMEERROROCCURED
WRITEVAL=CURRENTCITY-200
Then:
BRANCH WRITEVAL,[noparse][[/noparse]....]
I wonder if there is som way that your variables are getting overlaid by
some other part of your code or you are violating the gosub nesting
limit -- something unobvious like that?
Al Williams
AWC
* Easy RS-232 Prototyping
http://www.al-williams.com/awce/rs1.htm
>
Original Message
> From: kakirine <kaki@k...> [noparse]/noparse]mailto:[url=http://forums.parallaxinc.com/group/basicstamps/post?postID=KGEY1ybadF7yhGjon9rFOPg7Cf9ogZQ4DPR-8Exu843RG8BM-qIz8jL04UKAbPLCMX3-aGUMutp7ml85]kaki@k...[/url
> Sent: Sunday, December 08, 2002 2:06 PM
> To: basicstamps@yahoogroups.com
> Subject: [noparse][[/noparse]basicstamps] Re: LOOKDOWN with BRANCH irregularity
>
>
> --- In basicstamps@yahoogroups.com, smartdim@a... wrote:
> > Post your code so we can have a look
>
>
> okay, so here is the part that is giving me trouble. it's a sorta
> long program, and i don't want to post more than necessary to save
> ppl time, so this is the part that is not working. let me know if
> someone thinks posting the whole thing will make a difference. i've
> debugged the SERIN values (which show i am getting correct numbers
> for city and currentcity) and they look fine. in fact i've watched
> the values in the debug window JUMP right in front of my eyes... it's
> really bizarre... meaning CURRENTCITY is equal to 220 and WRITEVAL
> returns 30.
>
> any pointers would be appreciated! thanks,
> katherine
>
> - - - - - - - - - - - - - - - - - - - - - - - - -
>
> TESTCHANGE:
> ' if incoming ID = MYID then test to see if any values have changed
>
> IF CITY = CURRENTCITY THEN FLICKER
> 'if no values have changed, then go back to flicker
> 'if city != current city then the values have changed
> 'and we need to retrieve the new city
>
> CURRENTPULSE = PULSE
> 'set the current pulse value to the new pulse value
>
> CURRENTCITY = CITY
> 'and set the current city value to the new city value
>
> LOOKDOWN CURRENTCITY,
> [noparse][[/noparse]200,201,202,203,204,205,206,207,208,209,210,211,212,213,214,215,216,2
> 17,218,219,210,211,212,213,214,215,216,217,218,219,220,221,222,223,224
> ,225,226,227,228,229,230,231,232,233,234,235,236,237,238,239],
> WRITEVAL
>
> debug DEC WRITEVAL," ",DEC CITY," ", CURRENTCITY, CR
> ' here i am watching the incoming vals from the serial port.
> 'i will send numeric value '220' and writeval will return '30'
>
> BRANCH WRITEVAL,
> [noparse][[/noparse]_LONDONLGW,_PARISCDG,_BIRMINGHAM,_MANCHESTER,_BRUSSELS,_COPENHAGEN,_S
> TOCKHOLM,_ROME,_LEEDS,_BRISTOL,_GLASGOWPIK,_MALAGA,_NEWCASTLE,_LIVERPO
> OL,_VIENNA,_CHICAGO,_SOUTHAMPTON,_MUNICH,_NEWYORK,_LOSANGELES,_BARCELO
> NA,_CORK,_TENERIFE,_ABERDEEN,_AMSTERDAM,_NICE,_MILAN,_LONDONLHR,_PARIS
> BVA,_EDINBURGH,_BORDEAUX,_ZURICH,_CARDIFF,_LONDONSTN,_MADRID,_FRANKFUR
> T,_PRAGUE,_DUSSELDORF,_BERLIN]
>
>
> 'the lookdown finds the city code in the list, and branch
> 'matches the code to a city label.
> 'this changes the value of the LCD and hops back to flicker
> GOTO FLICKER
> 'if this operation fails then the program goes to FLICKER
>
> _LONDONLGW:
>
> SEROUT LCDPIN, 84+$4000, [noparse][[/noparse]254, 1] ' clears the screen of
> current data pause 10 ' required 10ms delay for screen
> SEROUT LCDPIN, 84+$4000, [noparse][[/noparse]"LONDON-GTW"] '
> GOTO FLICKER
>
> _PARISCDG:
> SEROUT LCDPIN, 84+$4000, [noparse][[/noparse]254, 1] ' clears the screen of
> current data pause 10' required 10ms delay for screen
> SEROUT LCDPIN, 84+$4000, [noparse][[/noparse]"PARIS-CDG"] '
> GOTO FLICKER
>
> _BIRMINGHAM:
> SEROUT LCDPIN, 84+$4000, [noparse][[/noparse]254, 1] ' clears the screen of
> current data pause 10 ' required 10ms delay for screen
> SEROUT LCDPIN, 84+$4000, [noparse][[/noparse]"BIRMINGHAM"] '
> GOTO FLICKER
>
> _MANCHESTER:
> SEROUT LCDPIN, 84+$4000, [noparse][[/noparse]254, 1] ' clears the screen of
> current data pause 10 ' required 10ms delay for screen
> SEROUT LCDPIN, 84+$4000, [noparse][[/noparse]"MANCHESTER"] '
> GOTO FLICKER
>
> _BRUSSELS:
> SEROUT LCDPIN, 84+$4000, [noparse][[/noparse]254, 1] ' clears the screen of
> current data pause 10' required 10ms delay for screen
> SEROUT LCDPIN, 84+$4000, [noparse][[/noparse]"BRUSSELS"] '
> GOTO FLICKER
>
> _COPENHAGEN:
> SEROUT LCDPIN, 84+$4000, [noparse][[/noparse]254, 1] ' clears the screen of
> current data pause 10 ' required 10ms delay for screen
> SEROUT LCDPIN, 84+$4000, [noparse][[/noparse]"COPENHAGEN"] '
> GOTO FLICKER
>
> _STOCKHOLM:
> SEROUT LCDPIN, 84+$4000, [noparse][[/noparse]254, 1] ' clears the screen of
> current data pause 10 ' required 10ms delay for screen
> SEROUT LCDPIN, 84+$4000, [noparse][[/noparse]"STOCKHOLM"] '
> GOTO FLICKER
>
> _ROME:
> SEROUT LCDPIN, 84+$4000, [noparse][[/noparse]254, 1] ' clears the screen of
> current data pause 10 ' required 10ms delay for screen
> SEROUT LCDPIN, 84+$4000, [noparse][[/noparse]"ROME"] '
> GOTO FLICKER
>
> _LEEDS:
> SEROUT LCDPIN, 84+$4000, [noparse][[/noparse]254, 1] ' clears the screen of
> current data pause 10 ' required 10ms delay for screen
> SEROUT LCDPIN, 84+$4000, [noparse][[/noparse]"LEEDS"] '
> GOTO FLICKER
>
> _BRISTOL:
> SEROUT LCDPIN, 84+$4000, [noparse][[/noparse]254, 1] ' clears the screen of
> current data pause 10 ' required 10ms delay for screen
> SEROUT LCDPIN, 84+$4000, [noparse][[/noparse]"BRISTOL"] '
> GOTO FLICKER
>
> _GLASGOWPIK:
> SEROUT LCDPIN, 84+$4000, [noparse][[/noparse]254, 1] ' clears the screen of
> current data pause 10 ' required 10ms delay for screen
> SEROUT LCDPIN, 84+$4000, [noparse][[/noparse]"GLASGOW-PIK"] '
> GOTO FLICKER
>
> _MALAGA:
> SEROUT LCDPIN, 84+$4000, [noparse][[/noparse]254, 1] ' clears the screen of
> current data pause 10' required 10ms delay for screen
> SEROUT LCDPIN, 84+$4000, [noparse][[/noparse]"MALAGA"] '
> GOTO FLICKER
>
> _NEWCASTLE:
> SEROUT LCDPIN, 84+$4000, [noparse][[/noparse]254, 1] ' clears the screen of
> current data pause 10 ' required 10ms delay for screen
> SEROUT LCDPIN, 84+$4000, [noparse][[/noparse]"NEWCASTLE"] '
> GOTO FLICKER
>
> _LIVERPOOL:
> SEROUT LCDPIN, 84+$4000, [noparse][[/noparse]254, 1] ' clears the screen of
> current data pause 10 ' required 10ms delay for screen
> SEROUT LCDPIN, 84+$4000, [noparse][[/noparse]"LIVERPOOL"] '
> GOTO FLICKER
>
> _VIENNA:
> SEROUT LCDPIN, 84+$4000, [noparse][[/noparse]254, 1] ' clears the screen of
> current data pause 10' required 10ms delay for screen
> SEROUT LCDPIN, 84+$4000, [noparse][[/noparse]"VIENNA"] '
> GOTO FLICKER
>
> _CHICAGO:
> SEROUT LCDPIN, 84+$4000, [noparse][[/noparse]254, 1] ' clears the screen of
> current data pause 10' required 10ms delay for screen
> SEROUT LCDPIN, 84+$4000, [noparse][[/noparse]"CHICAGO"] '
> GOTO FLICKER
>
> _SOUTHAMPTON:
> SEROUT LCDPIN, 84+$4000, [noparse][[/noparse]254, 1] ' clears the screen of
> current data pause 10' required 10ms delay for screen
> SEROUT LCDPIN, 84+$4000, [noparse][[/noparse]"SOUTHAMPTON"] '
> GOTO FLICKER
>
> _MUNICH:
> SEROUT LCDPIN, 84+$4000, [noparse][[/noparse]254, 1] ' clears the screen of
> current data pause 10' required 10ms delay for screen
> SEROUT LCDPIN, 84+$4000, [noparse][[/noparse]"MUNICH"] '
> GOTO FLICKER
>
> _NEWYORK:
> SEROUT LCDPIN, 84+$4000, [noparse][[/noparse]254, 1] ' clears the screen of
> current data pause 10' required 10ms delay for screen
> SEROUT LCDPIN, 84+$4000, [noparse][[/noparse]"NEW YORK"] '
> GOTO FLICKER
>
> _LOSANGELES:
> SEROUT LCDPIN, 84+$4000, [noparse][[/noparse]254, 1] ' clears the screen of
> current data pause 10' required 10ms delay for screen
> SEROUT LCDPIN, 84+$4000, [noparse][[/noparse]"LOS ANGELES"] '
> GOTO FLICKER
>
> _BARCELONA:
> SEROUT LCDPIN, 84+$4000, [noparse][[/noparse]254, 1] ' clears the screen of
> current data pause 10' required 10ms delay for screen
> SEROUT LCDPIN, 84+$4000, [noparse][[/noparse]"BARCELONA"] '
> GOTO FLICKER
>
> _CORK:
> SEROUT LCDPIN, 84+$4000, [noparse][[/noparse]254, 1] ' clears the screen of
> current data pause 10' required 10ms delay for screen
> SEROUT LCDPIN, 84+$4000, [noparse][[/noparse]"CORK"] '
> GOTO FLICKER
>
> _TENERIFE:
> SEROUT LCDPIN, 84+$4000, [noparse][[/noparse]254, 1] ' clears the screen of
> current data pause 10' required 10ms delay for screen
> SEROUT LCDPIN, 84+$4000, [noparse][[/noparse]"TENERIFE"] '
> GOTO FLICKER
>
> _ABERDEEN:
> SEROUT LCDPIN, 84+$4000, [noparse][[/noparse]254, 1] ' clears the screen of
> current data pause 10' required 10ms delay for screen
> SEROUT LCDPIN, 84+$4000, [noparse][[/noparse]"ABERDEEN"] '
> GOTO FLICKER
>
> _AMSTERDAM:
> SEROUT LCDPIN, 84+$4000, [noparse][[/noparse]254, 1] ' clears the screen of
> current data pause 10' required 10ms delay for screen
> SEROUT LCDPIN, 84+$4000, [noparse][[/noparse]"AMSTERDAM"] '
> GOTO FLICKER
>
> _NICE:
> SEROUT LCDPIN, 84+$4000, [noparse][[/noparse]254, 1] ' clears the screen of current data
> pause 10 ' required 10ms delay for screen
> SEROUT LCDPIN, 84+$4000, [noparse][[/noparse]"NICE"] '
> GOTO FLICKER
>
> _MILAN:
> SEROUT LCDPIN, 84+$4000, [noparse][[/noparse]254, 1] ' clears the screen of
> current data pause 10' required 10ms delay for screen
> SEROUT LCDPIN, 84+$4000, [noparse][[/noparse]"MILAN"] '
> GOTO FLICKER
>
> _LONDONLHR:
> SEROUT LCDPIN, 84+$4000, [noparse][[/noparse]254, 1] ' clears the screen of
> current data pause 10' required 10ms delay for screen
> SEROUT LCDPIN, 84+$4000, [noparse][[/noparse]"LONDON-LHR"] '
> GOTO FLICKER
>
> _PARISBVA:
> SEROUT LCDPIN, 84+$4000, [noparse][[/noparse]254, 1] ' clears the screen of
> current data pause 10' required 10ms delay for screen
> SEROUT LCDPIN, 84+$4000, [noparse][[/noparse]"PARIS-BVA"] '
> GOTO FLICKER
>
> _EDINBURGH:
> SEROUT LCDPIN, 84+$4000, [noparse][[/noparse]254, 1] ' clears the screen of
> current data pause 10' required 10ms delay for screen
> SEROUT LCDPIN, 84+$4000, [noparse][[/noparse]"EDINBURGH"] '
> GOTO FLICKER
>
> _BORDEAUX:
> SEROUT LCDPIN, 84+$4000, [noparse][[/noparse]254, 1] ' clears the screen of
> current data pause 10' required 10ms delay for screen
> SEROUT LCDPIN, 84+$4000, [noparse][[/noparse]"BORDEAUX"] '
> GOTO FLICKER
>
> _ZURICH:
> SEROUT LCDPIN, 84+$4000, [noparse][[/noparse]254, 1] ' clears the screen of
> current data pause 10' required 10ms delay for screen
> SEROUT LCDPIN, 84+$4000, [noparse][[/noparse]"ZURICH"] '
> GOTO FLICKER
>
> _CARDIFF:
> SEROUT LCDPIN, 84+$4000, [noparse][[/noparse]254, 1] ' clears the screen of
> current data pause 10' required 10ms delay for screen
> SEROUT LCDPIN, 84+$4000, [noparse][[/noparse]"CARDIFF"] '
> GOTO FLICKER
>
> _LONDONSTN:
> SEROUT LCDPIN, 84+$4000, [noparse][[/noparse]254, 1] ' clears the screen of
> current data pause 10' required 10ms delay for screen
> SEROUT LCDPIN, 84+$4000, [noparse][[/noparse]"LONDON-STN"] '
> GOTO FLICKER
>
>
> _MADRID:
> SEROUT LCDPIN, 84+$4000, [noparse][[/noparse]254, 1] ' clears the screen of
> current data pause 10' required 10ms delay for screen
> SEROUT LCDPIN, 84+$4000, [noparse][[/noparse]"MADRID"] '
> GOTO FLICKER
>
> _FRANKFURT:
> SEROUT LCDPIN, 84+$4000, [noparse][[/noparse]254, 1] ' clears the screen of
> current data pause 10' required 10ms delay for screen
> SEROUT LCDPIN, 84+$4000, [noparse][[/noparse]"FRANKFURT"] '
> GOTO FLICKER
>
> PRAGUE:
> SEROUT LCDPIN, 84+$4000, [noparse][[/noparse]254, 1] ' clears the screen of
> current data pause 10' required 10ms delay for screen
> SEROUT LCDPIN, 84+$4000, [noparse][[/noparse]"PRAGUE"] '
> GOTO FLICKER
>
> _DUSSELDORF:
> SEROUT LCDPIN, 84+$4000, [noparse][[/noparse]254, 1] ' clears the screen of
> current data pause 10' required 10ms delay for screen
> SEROUT LCDPIN, 84+$4000, [noparse][[/noparse]"DUSSELDORF"] '
> GOTO FLICKER
>
> _BERLIN:
> SEROUT LCDPIN, 84+$4000, [noparse][[/noparse]254, 1] ' clears the screen of current data
> pause 10' required 10ms delay for screen
> SEROUT LCDPIN, 84+$4000, [noparse][[/noparse]"BERLIN"] '
> GOTO FLICKER
>
>
>
> To UNSUBSCRIBE, just send mail to:
> basicstamps-unsubscribe@yahoogroups.com
> from the same email address that you subscribed. Text in the
> Subject and Body of the message will be ignored.
>
>
> Your use of Yahoo! Groups is subject to
http://docs.yahoo.com/info/terms/
thanks for the tips. i'll try some of the stuff you've suggested...
but with regard to gosub limitations... i'm not using gosub, so i
think what i'm doing there is okay, and in the manual it says you can
have N branches...
but i will check all of these things out. otherwise, the code looks
like it *should* work, right? i am not doing anything that is
obviously wrong?
thanks!
-katherine
--- In basicstamps@yahoogroups.com, "Al Williams" <alw@a...> wrote:
> Just an observation. You could write:
>
> WRITEVAL=CURRENTCITY-200
>
> Or, if paranoid:
>
> IF CURRENTCITY<200 OR CURRENTCITY>239 THEN SOMEERROROCCURED
> WRITEVAL=CURRENTCITY-200
>
> Then:
> BRANCH WRITEVAL,[noparse][[/noparse]....]
>
> I wonder if there is som way that your variables are getting
overlaid by
> some other part of your code or you are violating the gosub nesting
> limit -- something unobvious like that?
>
> Al Williams
> AWC
> * Easy RS-232 Prototyping
> http://www.al-williams.com/awce/rs1.htm
>
>
>
> >
Original Message
> > From: kakirine <kaki@k...> [noparse][[/noparse]mailto:kaki@k...]
> > Sent: Sunday, December 08, 2002 2:06 PM
> > To: basicstamps@yahoogroups.com
> > Subject: [noparse][[/noparse]basicstamps] Re: LOOKDOWN with BRANCH irregularity
> >
> >
> > --- In basicstamps@yahoogroups.com, smartdim@a... wrote:
> > > Post your code so we can have a look
> >
> >
> > okay, so here is the part that is giving me trouble. it's a sorta
> > long program, and i don't want to post more than necessary to
save
> > ppl time, so this is the part that is not working. let me know if
> > someone thinks posting the whole thing will make a difference.
i've
> > debugged the SERIN values (which show i am getting correct
numbers
> > for city and currentcity) and they look fine. in fact i've
watched
> > the values in the debug window JUMP right in front of my eyes...
it's
> > really bizarre... meaning CURRENTCITY is equal to 220 and
WRITEVAL
> > returns 30.
> >
> > any pointers would be appreciated! thanks,
> > katherine
> >
> > - - - - - - - - - - - - - - - - - - - - - - - - -
> >
> > TESTCHANGE:
> > ' if incoming ID = MYID then test to see if any values have
changed
> >
> > IF CITY = CURRENTCITY THEN FLICKER
> > 'if no values have changed, then go back to flicker
> > 'if city != current city then the values have changed
> > 'and we need to retrieve the new city
> >
> > CURRENTPULSE = PULSE
> > 'set the current pulse value to the new pulse value
> >
> > CURRENTCITY = CITY
> > 'and set the current city value to the new city value
> >
> > LOOKDOWN CURRENTCITY,
> >
[noparse][[/noparse]200,201,202,203,204,205,206,207,208,209,210,211,212,213,214,215,216,2
> >
17,218,219,210,211,212,213,214,215,216,217,218,219,220,221,222,223,224
> > ,225,226,227,228,229,230,231,232,233,234,235,236,237,238,239],
> > WRITEVAL
> >
> > debug DEC WRITEVAL," ",DEC CITY," ", CURRENTCITY, CR
> > ' here i am watching the incoming vals from the serial port.
> > 'i will send numeric value '220' and writeval will return '30'
> >
> > BRANCH WRITEVAL,
> >
[noparse][[/noparse]_LONDONLGW,_PARISCDG,_BIRMINGHAM,_MANCHESTER,_BRUSSELS,_COPENHAGEN,_S
> >
TOCKHOLM,_ROME,_LEEDS,_BRISTOL,_GLASGOWPIK,_MALAGA,_NEWCASTLE,_LIVERPO
> >
OL,_VIENNA,_CHICAGO,_SOUTHAMPTON,_MUNICH,_NEWYORK,_LOSANGELES,_BARCELO
> >
NA,_CORK,_TENERIFE,_ABERDEEN,_AMSTERDAM,_NICE,_MILAN,_LONDONLHR,_PARIS
> >
BVA,_EDINBURGH,_BORDEAUX,_ZURICH,_CARDIFF,_LONDONSTN,_MADRID,_FRANKFUR
> > T,_PRAGUE,_DUSSELDORF,_BERLIN]
> >
> >
> > 'the lookdown finds the city code in the list, and branch
> > 'matches the code to a city label.
> > 'this changes the value of the LCD and hops back to flicker
> > GOTO FLICKER
> > 'if this operation fails then the program goes to FLICKER
> >
> > _LONDONLGW:
> >
> > SEROUT LCDPIN, 84+$4000, [noparse][[/noparse]254, 1] ' clears the screen of
> > current data pause 10 ' required 10ms delay for screen
> > SEROUT LCDPIN, 84+$4000, [noparse][[/noparse]"LONDON-GTW"] '
> > GOTO FLICKER
> >
> > _PARISCDG:
> > SEROUT LCDPIN, 84+$4000, [noparse][[/noparse]254, 1] ' clears the screen of
> > current data pause 10' required 10ms delay for screen
> > SEROUT LCDPIN, 84+$4000, [noparse][[/noparse]"PARIS-CDG"] '
> > GOTO FLICKER
> >
> > _BIRMINGHAM:
> > SEROUT LCDPIN, 84+$4000, [noparse][[/noparse]254, 1] ' clears the screen of
> > current data pause 10 ' required 10ms delay for screen
> > SEROUT LCDPIN, 84+$4000, [noparse][[/noparse]"BIRMINGHAM"] '
> > GOTO FLICKER
> >
> > _MANCHESTER:
> > SEROUT LCDPIN, 84+$4000, [noparse][[/noparse]254, 1] ' clears the screen of
> > current data pause 10 ' required 10ms delay for screen
> > SEROUT LCDPIN, 84+$4000, [noparse][[/noparse]"MANCHESTER"] '
> > GOTO FLICKER
> >
> > _BRUSSELS:
> > SEROUT LCDPIN, 84+$4000, [noparse][[/noparse]254, 1] ' clears the screen of
> > current data pause 10' required 10ms delay for screen
> > SEROUT LCDPIN, 84+$4000, [noparse][[/noparse]"BRUSSELS"] '
> > GOTO FLICKER
> >
> > _COPENHAGEN:
> > SEROUT LCDPIN, 84+$4000, [noparse][[/noparse]254, 1] ' clears the screen of
> > current data pause 10 ' required 10ms delay for screen
> > SEROUT LCDPIN, 84+$4000, [noparse][[/noparse]"COPENHAGEN"] '
> > GOTO FLICKER
> >
> > _STOCKHOLM:
> > SEROUT LCDPIN, 84+$4000, [noparse][[/noparse]254, 1] ' clears the screen of
> > current data pause 10 ' required 10ms delay for screen
> > SEROUT LCDPIN, 84+$4000, [noparse][[/noparse]"STOCKHOLM"] '
> > GOTO FLICKER
> >
> > _ROME:
> > SEROUT LCDPIN, 84+$4000, [noparse][[/noparse]254, 1] ' clears the screen of
> > current data pause 10 ' required 10ms delay for screen
> > SEROUT LCDPIN, 84+$4000, [noparse][[/noparse]"ROME"] '
> > GOTO FLICKER
> >
> > _LEEDS:
> > SEROUT LCDPIN, 84+$4000, [noparse][[/noparse]254, 1] ' clears the screen of
> > current data pause 10 ' required 10ms delay for screen
> > SEROUT LCDPIN, 84+$4000, [noparse][[/noparse]"LEEDS"] '
> > GOTO FLICKER
> >
> > _BRISTOL:
> > SEROUT LCDPIN, 84+$4000, [noparse][[/noparse]254, 1] ' clears the screen of
> > current data pause 10 ' required 10ms delay for screen
> > SEROUT LCDPIN, 84+$4000, [noparse][[/noparse]"BRISTOL"] '
> > GOTO FLICKER
> >
> > _GLASGOWPIK:
> > SEROUT LCDPIN, 84+$4000, [noparse][[/noparse]254, 1] ' clears the screen of
> > current data pause 10 ' required 10ms delay for screen
> > SEROUT LCDPIN, 84+$4000, [noparse][[/noparse]"GLASGOW-PIK"] '
> > GOTO FLICKER
> >
> > _MALAGA:
> > SEROUT LCDPIN, 84+$4000, [noparse][[/noparse]254, 1] ' clears the screen of
> > current data pause 10' required 10ms delay for screen
> > SEROUT LCDPIN, 84+$4000, [noparse][[/noparse]"MALAGA"] '
> > GOTO FLICKER
> >
> > _NEWCASTLE:
> > SEROUT LCDPIN, 84+$4000, [noparse][[/noparse]254, 1] ' clears the screen of
> > current data pause 10 ' required 10ms delay for screen
> > SEROUT LCDPIN, 84+$4000, [noparse][[/noparse]"NEWCASTLE"] '
> > GOTO FLICKER
> >
> > _LIVERPOOL:
> > SEROUT LCDPIN, 84+$4000, [noparse][[/noparse]254, 1] ' clears the screen of
> > current data pause 10 ' required 10ms delay for screen
> > SEROUT LCDPIN, 84+$4000, [noparse][[/noparse]"LIVERPOOL"] '
> > GOTO FLICKER
> >
> > _VIENNA:
> > SEROUT LCDPIN, 84+$4000, [noparse][[/noparse]254, 1] ' clears the screen of
> > current data pause 10' required 10ms delay for screen
> > SEROUT LCDPIN, 84+$4000, [noparse][[/noparse]"VIENNA"] '
> > GOTO FLICKER
> >
> > _CHICAGO:
> > SEROUT LCDPIN, 84+$4000, [noparse][[/noparse]254, 1] ' clears the screen of
> > current data pause 10' required 10ms delay for screen
> > SEROUT LCDPIN, 84+$4000, [noparse][[/noparse]"CHICAGO"] '
> > GOTO FLICKER
> >
> > _SOUTHAMPTON:
> > SEROUT LCDPIN, 84+$4000, [noparse][[/noparse]254, 1] ' clears the screen of
> > current data pause 10' required 10ms delay for screen
> > SEROUT LCDPIN, 84+$4000, [noparse][[/noparse]"SOUTHAMPTON"] '
> > GOTO FLICKER
> >
> > _MUNICH:
> > SEROUT LCDPIN, 84+$4000, [noparse][[/noparse]254, 1] ' clears the screen of
> > current data pause 10' required 10ms delay for screen
> > SEROUT LCDPIN, 84+$4000, [noparse][[/noparse]"MUNICH"] '
> > GOTO FLICKER
> >
> > _NEWYORK:
> > SEROUT LCDPIN, 84+$4000, [noparse][[/noparse]254, 1] ' clears the screen of
> > current data pause 10' required 10ms delay for screen
> > SEROUT LCDPIN, 84+$4000, [noparse][[/noparse]"NEW YORK"] '
> > GOTO FLICKER
> >
> > _LOSANGELES:
> > SEROUT LCDPIN, 84+$4000, [noparse][[/noparse]254, 1] ' clears the screen of
> > current data pause 10' required 10ms delay for screen
> > SEROUT LCDPIN, 84+$4000, [noparse][[/noparse]"LOS ANGELES"] '
> > GOTO FLICKER
> >
> > _BARCELONA:
> > SEROUT LCDPIN, 84+$4000, [noparse][[/noparse]254, 1] ' clears the screen of
> > current data pause 10' required 10ms delay for screen
> > SEROUT LCDPIN, 84+$4000, [noparse][[/noparse]"BARCELONA"] '
> > GOTO FLICKER
> >
> > _CORK:
> > SEROUT LCDPIN, 84+$4000, [noparse][[/noparse]254, 1] ' clears the screen of
> > current data pause 10' required 10ms delay for screen
> > SEROUT LCDPIN, 84+$4000, [noparse][[/noparse]"CORK"] '
> > GOTO FLICKER
> >
> > _TENERIFE:
> > SEROUT LCDPIN, 84+$4000, [noparse][[/noparse]254, 1] ' clears the screen of
> > current data pause 10' required 10ms delay for screen
> > SEROUT LCDPIN, 84+$4000, [noparse][[/noparse]"TENERIFE"] '
> > GOTO FLICKER
> >
> > _ABERDEEN:
> > SEROUT LCDPIN, 84+$4000, [noparse][[/noparse]254, 1] ' clears the screen of
> > current data pause 10' required 10ms delay for screen
> > SEROUT LCDPIN, 84+$4000, [noparse][[/noparse]"ABERDEEN"] '
> > GOTO FLICKER
> >
> > _AMSTERDAM:
> > SEROUT LCDPIN, 84+$4000, [noparse][[/noparse]254, 1] ' clears the screen of
> > current data pause 10' required 10ms delay for screen
> > SEROUT LCDPIN, 84+$4000, [noparse][[/noparse]"AMSTERDAM"] '
> > GOTO FLICKER
> >
> > _NICE:
> > SEROUT LCDPIN, 84+$4000, [noparse][[/noparse]254, 1] ' clears the screen of current
data
> > pause 10 ' required 10ms delay for screen
> > SEROUT LCDPIN, 84+$4000, [noparse][[/noparse]"NICE"] '
> > GOTO FLICKER
> >
> > _MILAN:
> > SEROUT LCDPIN, 84+$4000, [noparse][[/noparse]254, 1] ' clears the screen of
> > current data pause 10' required 10ms delay for screen
> > SEROUT LCDPIN, 84+$4000, [noparse][[/noparse]"MILAN"] '
> > GOTO FLICKER
> >
> > _LONDONLHR:
> > SEROUT LCDPIN, 84+$4000, [noparse][[/noparse]254, 1] ' clears the screen of
> > current data pause 10' required 10ms delay for screen
> > SEROUT LCDPIN, 84+$4000, [noparse][[/noparse]"LONDON-LHR"] '
> > GOTO FLICKER
> >
> > _PARISBVA:
> > SEROUT LCDPIN, 84+$4000, [noparse][[/noparse]254, 1] ' clears the screen of
> > current data pause 10' required 10ms delay for screen
> > SEROUT LCDPIN, 84+$4000, [noparse][[/noparse]"PARIS-BVA"] '
> > GOTO FLICKER
> >
> > _EDINBURGH:
> > SEROUT LCDPIN, 84+$4000, [noparse][[/noparse]254, 1] ' clears the screen of
> > current data pause 10' required 10ms delay for screen
> > SEROUT LCDPIN, 84+$4000, [noparse][[/noparse]"EDINBURGH"] '
> > GOTO FLICKER
> >
> > _BORDEAUX:
> > SEROUT LCDPIN, 84+$4000, [noparse][[/noparse]254, 1] ' clears the screen of
> > current data pause 10' required 10ms delay for screen
> > SEROUT LCDPIN, 84+$4000, [noparse][[/noparse]"BORDEAUX"] '
> > GOTO FLICKER
> >
> > _ZURICH:
> > SEROUT LCDPIN, 84+$4000, [noparse][[/noparse]254, 1] ' clears the screen of
> > current data pause 10' required 10ms delay for screen
> > SEROUT LCDPIN, 84+$4000, [noparse][[/noparse]"ZURICH"] '
> > GOTO FLICKER
> >
> > _CARDIFF:
> > SEROUT LCDPIN, 84+$4000, [noparse][[/noparse]254, 1] ' clears the screen of
> > current data pause 10' required 10ms delay for screen
> > SEROUT LCDPIN, 84+$4000, [noparse][[/noparse]"CARDIFF"] '
> > GOTO FLICKER
> >
> > _LONDONSTN:
> > SEROUT LCDPIN, 84+$4000, [noparse][[/noparse]254, 1] ' clears the screen of
> > current data pause 10' required 10ms delay for screen
> > SEROUT LCDPIN, 84+$4000, [noparse][[/noparse]"LONDON-STN"] '
> > GOTO FLICKER
> >
> >
> > _MADRID:
> > SEROUT LCDPIN, 84+$4000, [noparse][[/noparse]254, 1] ' clears the screen of
> > current data pause 10' required 10ms delay for screen
> > SEROUT LCDPIN, 84+$4000, [noparse][[/noparse]"MADRID"] '
> > GOTO FLICKER
> >
> > _FRANKFURT:
> > SEROUT LCDPIN, 84+$4000, [noparse][[/noparse]254, 1] ' clears the screen of
> > current data pause 10' required 10ms delay for screen
> > SEROUT LCDPIN, 84+$4000, [noparse][[/noparse]"FRANKFURT"] '
> > GOTO FLICKER
> >
> > PRAGUE:
> > SEROUT LCDPIN, 84+$4000, [noparse][[/noparse]254, 1] ' clears the screen of
> > current data pause 10' required 10ms delay for screen
> > SEROUT LCDPIN, 84+$4000, [noparse][[/noparse]"PRAGUE"] '
> > GOTO FLICKER
> >
> > _DUSSELDORF:
> > SEROUT LCDPIN, 84+$4000, [noparse][[/noparse]254, 1] ' clears the screen of
> > current data pause 10' required 10ms delay for screen
> > SEROUT LCDPIN, 84+$4000, [noparse][[/noparse]"DUSSELDORF"] '
> > GOTO FLICKER
> >
> > _BERLIN:
> > SEROUT LCDPIN, 84+$4000, [noparse][[/noparse]254, 1] ' clears the screen of current
data
> > pause 10' required 10ms delay for screen
> > SEROUT LCDPIN, 84+$4000, [noparse][[/noparse]"BERLIN"] '
> > GOTO FLICKER
>i have 39 values in this lookdown and branch combination. it works
>just fine for 19 places, then jumps forward by 10 for the 20th place,
>making the 30th value in the lookdown the 20th.
>LOOKDOWN CURRENTCITY,
>[noparse][[/noparse]200,201,202,203,204,205,206,207,208,209,210,211,212,213,214,215,216,2
>17,218,219,210,211,212,213,214,215,216,217,218,219,220,221,222,223,224
>,225,226,227,228,229,230,231,232,233,234,235,236,237,238,239],
>WRITEVAL
The sequence from 210 to 219 appears twice in the list!
Be that as it may, Al's suggestion to use (WRITEVAL=CURRENTCITY-200)
makes sense, unless your city to writeval mapping must be totally
flexible.
-- Tracy
at least it's an easily explainable problem.) two pairs of eyes are
sometimes better than one.
thanks again for all the help.
-katherine
--- In basicstamps@yahoogroups.com, Tracy Allen <tracy@e...> wrote:
> At 7:30 PM +0000 12/8/02, kakirine <kaki@k...> wrote:
> >i have 39 values in this lookdown and branch combination. it works
> >just fine for 19 places, then jumps forward by 10 for the 20th
place,
> >making the 30th value in the lookdown the 20th.
>
>
> >LOOKDOWN CURRENTCITY,
> >
[noparse][[/noparse]200,201,202,203,204,205,206,207,208,209,210,211,212,213,214,215,216,2
>
>17,218,219,210,211,212,213,214,215,216,217,218,219,220,221,222,223,22
4
> >,225,226,227,228,229,230,231,232,233,234,235,236,237,238,239],
> >WRITEVAL
>
> The sequence from 210 to 219 appears twice in the list!
>
> Be that as it may, Al's suggestion to use (WRITEVAL=CURRENTCITY-
200)
> makes sense, unless your city to writeval mapping must be totally
> flexible.
>
> -- Tracy