Thread: PBasic Probelm
View Single Post
  #7   Spotlight this post!  
Unread 08-04-2004, 13:21
Astronouth7303's Avatar
Astronouth7303 Astronouth7303 is offline
Why did I come back?
AKA: Jamie Bliss
FRC #4967 (That ONE Team)
Team Role: Mentor
 
Join Date: Jan 2004
Rookie Year: 2004
Location: Grand Rapids, MI
Posts: 2,071
Astronouth7303 has much to be proud ofAstronouth7303 has much to be proud ofAstronouth7303 has much to be proud ofAstronouth7303 has much to be proud ofAstronouth7303 has much to be proud ofAstronouth7303 has much to be proud ofAstronouth7303 has much to be proud ofAstronouth7303 has much to be proud ofAstronouth7303 has much to be proud ofAstronouth7303 has much to be proud of
Question Re: PBasic Probelm

Quote:
Originally Posted by PBoss
Also, I forgot, in PBasic, is this how you used to do sub routines?

IF condition THEN
gosub FIRST
ENDIF

FIRST:
'code
I don't know PBASIC specifically, but I'll try.

FIRST is a label. Wouldn't you use goto, not gosub?
I know that in Visual Basic (similar so far), you define a sub as:
Code:
Public Sub foo ()
 'Some Code Here
 'Call subroutine
 foo2
End Sub
Is it any diferent in PBASIC?