English
Forum

s.o.s Wanted QBasic - Script rewrite but is net ?!?

 

Inzip
means How already The Headline says - what have I wrong made ?!?!
CompileMarkSeparation
Declare men$
CLS
PRINT "Wohin wollen Sie springen? "
PRINT
PRINT " (1) Sprungmarke 1"
PRINT " (2) Sprungmarke 2"
PRINT " (3) Beenden"
INPUT men$

IF men$ = 1 THEN GOTO 10

    IF men$ = 2 THEN GOTO Textmarke

        IF men$ = 3 THEN END ELSE BEEP: END

            10 :
            CLS
            PRINT "Sprungmarke in Form einer Zahl."
            WAITKEY
            END
            Textmarke:
            CLS
            PRINT "Sprungmarke mit dem Namen »Testmarke«
            WAITKEY
            END
 
Zip :@)
01/14/06  
 




Michael
Wodrich
for Sprungmarken come You simply To late. The are long ago antiquated.

nowadys becomes everything with Unterprogrammen resolved:
CompileMarkSeparation
Proc unter1

    Cls
    Print
    Print "--- hier ist die Nummer Eins"
    WaitKey

EndProc

Proc und_die_zweite

    Cls
    Print
    Print "--- hier ist die Nummer Zwei"
    Print "--- (nur mal so als kleines Beispiel)"
    Print "--- "
    WaitInput

EndProc

Declare Men$, Ende%
Ende% = 0

WhileNot Ende%

    Cls
    Print "Was wollen Sie ausführen? "
    Print
    Print " (1) Unter-Programm 1"
    Print " (2) Unter-Programm 2"
    Print " (3) Beenden"
    Input Men$
    Case Men$ = "1" : unter1
    Case Men$ = "2" : und_die_zweite
    Case Men$ = "3" : Ende% = 1

EndWhile

End
 
Programmieren, das spannendste Detektivspiel der Welt.
01/14/06  
 




Inzip
thanks
 
Zip :@)
01/15/06  
 



Answer


Topictitle, max. 100 characters.
 

Systemprofile:

no Systemprofil laid out. [anlegen]

XProfan:

 Posting  Font  Smilies  ▼ 

Please register circa a Posting To verfassen.
 

Topic-Options

2.154 Views

Untitledvor 0 min.
H.Brill10/16/24
Peter Max Müller06/09/15
Heiko Dix12/19/10

Themeninformationen

this Topic has 2 subscriber:

Inzip (2x)
Michael Wodrich (1x)


Admins  |  AGB  |  Applications  |  Authors  |  Chat  |  Privacy Policy  |  Download  |  Entrance  |  Help  |  Merchantportal  |  Imprint  |  Mart  |  Interfaces  |  SDK  |  Services  |  Games  |  Search  |  Support

One proposition all XProfan, The there's!


My XProfan
Private Messages
Own Storage Forum
Topics-Remember-List
Own Posts
Own Topics
Clipboard
Log off
 Deutsch English Français Español Italia
Translations

Privacy Policy


we use Cookies only as Session-Cookies because of the technical necessity and with us there no Cookies of Drittanbietern.

If you here on our Website click or navigate, stimmst You ours registration of Information in our Cookies on XProfan.Net To.

further Information To our Cookies and moreover, How You The control above keep, find You in ours nachfolgenden Datenschutzerklärung.


all rightDatenschutzerklärung
i want none Cookie