Teen Programmers Unite  
 

 

Return to forum top

Qbasic "TYPE...END TYPE" Problem

Posted by Hyif16 [send private reply] at July 02, 2002, 07:16:42 PM

Hey,
I made that encryption program... ahh ummm, anyways who cares. Now, i'm trying to make a random file -acess program. A database program acually. :-P. Well every time i try to use the type, end type command. it doesn't work. I"ll show you the code.

Type student
nm as string * 20
classes as integer
End Type
Type Teacher
nm as string * 20
End Type

I have a Qbasic complier for DOS by POWERBASIC.
Help me. Shit
hyid16

Posted by taubz [send private reply] at July 02, 2002, 09:11:48 PM

Looks good to me. It always helps to give the exact error message though. Otherwise it's a shot in the dark for us.

- taubz

Posted by Psion [send private reply] at July 03, 2002, 07:59:02 AM

It also helps to not use QBasic.

Posted by Hyif16 [send private reply] at July 03, 2002, 08:02:22 AM

Well, yeah qbasic isn't a very good language but, ANYWAys, the error message is "=" expected. It thinks i'm trying to assign TYPE to a string variable. What the hell!?. Oh yeah and psion, what a better language to learn? I"m learning C++ currently but i don't know how to make a database program out of it. ???. Any other languages you suggest?

hyif16

Posted by unknown_lamer [send private reply] at July 03, 2002, 09:13:42 AM

Use Scheme or Psion's favorite language ML.

You must be logged in to post messages and see which you have already read.

Log on
Username:
Password:
Save for later automatic logon

Register as a new user
 
Copyright TPU 2002. See the Credits and About TPU for more information.