what is the JOTO option?

  • Thread starter Parakrama Abeysinghe (Junior User)
  • Start date
P

Parakrama Abeysinghe (Junior User)

why is this option used can you explain it and send it to
(e-mail address removed)
 
G

Gordon Bentley-Mix

Never heard of it and searching the web returns nothing useful. Perhaps if
you provided some context around your questions - where you have seen this
option and how it was used - we could be of more assistance.
--
Cheers!

Gordon Bentley-Mix
Word MVP

Uninvited email contact will be marked as SPAM and ignored. Please post all
follow-ups to the newsgroup.
 
D

Doug Robbins - Word MVP

Did you mean GoTo? If so, here is the information from the Visual Basic
Help file:

GoTo Statement

Branches unconditionally to a specified line within a procedure.

Syntax

GoTo line

The required line argument can be any line label or line number.

Remarks

GoTo can branch only to lines within the procedure where it appears.


Note
Too many GoTo statements can make code difficult to read and debug.
Use structured control statements (Do...Loop, For...Next, If...Then...Else,
Select Case) whenever possible.


Example
This example uses the GoTo statement to branch to line labels within a
procedure.

Sub GotoStatementDemo()
Dim Number, MyString
Number = 1 ' Initialize variable.
' Evaluate Number and branch to appropriate label.
If Number = 1 Then GoTo Line1 Else GoTo Line2

Line1:
MyString = "Number equals 1"
GoTo LastLine ' Go to LastLine.
Line2:
' The following statement never gets executed.
MyString = "Number equals 2"
LastLine:
Debug.Print MyString ' Print "Number equals 1" in
' the Immediate window.
End Sub



--
Hope this helps.

Please reply to the newsgroup unless you wish to avail yourself of my
services on a paid consulting basis.

Doug Robbins - Word MVP

"Parakrama Abeysinghe (Junior User)" <Parakrama Abeysinghe (Junior
User)@discussions.microsoft.com> wrote in message
news:[email protected]...
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top