[Search for users] [Overall Top Noters] [List of all Conferences] [Download this site]

Conference 7.286::atarist

Title:Atari ST, TT, & Falcon
Notice:Please read note 1.0 and its replies before posting!
Moderator:FUNYET::ANDERSON
Created:Mon Apr 04 1988
Last Modified:Tue May 06 1997
Last Successful Update:Fri Jun 06 1997
Number of topics:1433
Total number of notes:10312

242.0. "STBasic??" by KERNEL::FLOWERS (Hero of the Green Screen...) Thu Sep 22 1988 09:12

Hello all,
	
 	Has anybody out there bothered to try ST Basic?? Being the cheapskate
I am I decided to have a quick play with it before I go and and buy a 
decent language.....and to be quite honest I wish I hadn't bothered.
I have not bought the ST Basic Users Guide, well its not worth it I am
going to buy another language, so I am plowing through the give away guide
you get when you buy the ST.	
	I thought I would write a very (VERY) short program to to check out
a few things and it does not behave as expected. Below are two listings
one from VAX basic that does what I expect it to and the ST Basic version
which I cannot get to behave in the same way.

Vax Basic Version.

10 linput "Enter user type: "; user_type$
20 if user_type$ = "temp" or user_type$ = "tech" then goto 50
30 print "Valid user types are tech or temp."	
40 goto 10
50 end

If I run this I get...

Enter user type: ? garbage <---- Input garbage
Valid user types are tech or temp.
Enter user type: ?

This is what I would expect.

St Basic Version

10 line input "Enter user type: "; user_type$
20 if user_type$ = "temp" or user_type$ = "tech" then goto 50
30 print "Valid user types are tech or temp."
40 goto 10
50 end

When I run this I get...

Enter user type: garbageValid user types are tech or temp.
                   ^
             input garbage
Enter user type: 


How can I get the line "Valid user types are tech or temp" to appear on the
NEXT line???


I am just being stupid???

Jason.     
    
T.RTitleUserPersonal
Name
DateLines
242.1BENTLY::MESSENGERDreamer FithpThu Sep 22 1988 17:219
    Re: .-1

    Change this:    
    30 print "Valid user types are tech or temp."

    To:
    30 print:print "Valid user types are tech or temp."
    				- HBM

242.2Multiple Versions of ST Basic?RGB::ROSTAshley Hutchings wannabeMon Jan 13 1992 20:298
    For lack of a better place to ask this:
    
    Are there multiple versions of ST Basic?  Someone sent me a program
    which won't load properly.  One line uses a statement ASK which my ST
    Basic manual doesn't even show!  The other offending lines use ERA. 
    I'm confused to say the least!
    
    							Brian
242.3I don't know the differencesYNGSTR::WALLACETue Jan 14 1992 11:053
Yes.

	Ray
242.43 X FasterVFOVAX::PATTERSONThe world is flat, it's the universe thats roundTue Jan 14 1992 15:124
    I have not looked into the differences, but when I bought my STE, the
    docs said the BASIC was 3 times faster, and had some new keywords.

    Jim