how can i use goto in pascal program to go to a specific line
for ex.
we have 3 lined program. in line 3 i want to go to line 2
please give me detailed instruction
thnxs
how can i use goto in pascal program to go to a specific line
for ex.
we have 3 lined program. in line 3 i want to go to line 2
please give me detailed instruction
thnxs
From what little PASCAL I remember, I don't think this is possible. Is there a reason you can't use labels?
Twey | I understand English | 日本語が分かります | mi jimpe fi le jbobau | mi esperanton komprenas | je comprends français | entiendo español | tôi ít hiểu tiếng Việt | ich verstehe ein bisschen Deutsch | beware XHTML | common coding mistakes | tutorials | various stuff | argh PHP!
can you show me an example of label-goto usage. please.
Actually, from googling around, Turbo Pascal seems to support using line numbers in a GOTO statement (E.G. GOTO 3;). However, this isn't a universal extension.Code:(* Some code *) LABELONE: (* more code *) GOTO LABELONE;
Twey | I understand English | 日本語が分かります | mi jimpe fi le jbobau | mi esperanton komprenas | je comprends français | entiendo español | tôi ít hiểu tiếng Việt | ich verstehe ein bisschen Deutsch | beware XHTML | common coding mistakes | tutorials | various stuff | argh PHP!
Bookmarks