Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

Author
Message
FROGGIE!
21
Years of Service
User Offline
Joined: 4th Oct 2003
Location: in front of my computer
Posted: 12th Dec 2003 20:27
can anyone tell me how to use the gosub command like this :

GOSUB variable$
empty
22
Years of Service
User Offline
Joined: 26th Aug 2002
Location: 3 boats down from the candy
Posted: 12th Dec 2003 20:32
That's not possible.
Unfortunately DB doesn't know any kind of jump tables.
You'd have to hardcode your gosubs.

Me, I'll sit and write this love song as I all too seldom do
build a little fire this midnight. It's good to be back home with you.
BatVink
Moderator
22
Years of Service
User Offline
Joined: 4th Apr 2003
Location: Gods own County, UK
Posted: 13th Dec 2003 01:41
If variable$ = "Pants" then gosub PantSub
If variable$ = "Barstool" then gosub BarstoolSub

Let's face it, you can only have a finite number of subroutines.

BatVink (formerly StevieVee)
http://facepaint.me.uk/catalog/default.php

Login to post a reply

Server time is: 2025-05-22 03:57:27
Your offset time is: 2025-05-22 03:57:27