Re: On goto
- Hi Dave,
Thanks for your suggestion. Someone else also suggested the case idea.
It would work as would if then. Problem is, I would need a series of 50 select case or if then. I am thinking that there is no easy way.
Thanks again, Bob
> On 7/10/2013 9:35 PM, Robert wrote:
> > I am converting an old Basic program to Liberty Basic.
> > I have a line that reads: On j goto 1012,1020,1030,1040(for about 50 branches) Any idea how to make this work in Liberty Basic?
- Am 11.07.2013 20:51, schrieb Robert:
>Depending on the information used to trigger the 50 "On Goto" cases,
> Hi Dave,
> Thanks for your suggestion. Someone else also suggested the case idea.
> It would work as would if then. Problem is, I would need a series of 50 select case or if then. I am thinking that there is no easy way.
> Thanks again, Bob
there might be other ways, that would be simpler now, but impossible to
implement at the time of the creation of the listing.
Can you show a run-able simple example duplicating the "On Goto" issue,
so we can better help you getting rid of it.
LB 4.04 Pro ... http://www.libertybasic.com/assist.html
LB 4.04 ....... http://www.libertybasic.com/lb404setup.exe
LB Community Wiki .............. http://basic.wikispaces.com/
LB Programmer's Encyclopedia ... http://lbpe.wikispaces.com/
LB Bug Tracker ................. http://libertybasicbugs.wikispaces.com/
Books at http://www.lulu.com/ and http://www.amazon.com/
Alyce Watson ... APIs for Liberty BASIC
Carl Gundel .... Beginning Programming with Liberty BASIC
Windows 7 Home Premium 64-bit SP1
AMD Turion X2 RM-70 2GHz, 4GB RAM