Link to home
Start Free TrialLog in
Avatar of DKar
DKar

asked on

Converting QBasic to Visual Basic 4.0

I have written a Qbasic screen saver and want to convert and compile it to VB4.0 32-bit for win95/98.  Obviously some of the commands are no longer recognized.  Is there a way to get the conversion done? a manual of sorts with approximate Qbasic/VB commands?
ASKER CERTIFIED SOLUTION
Avatar of cymbolic
cymbolic

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of mark2150
mark2150

About the only differences I've found between QB and VB are the lack of DATA/READ and the fact that "." is used as a separator in VB where it's a valid variable name char in QB. Most everything else goes right over. You can create a "DOS equivalent" in VB by not using any forms. Create a new project and attach you QB source to it as a .BAS module. Make the start of your code labelled:

Sub Main()

and finish off with

End Sub

Delete any forms associated with it and you should be able to compile.

M

Avatar of DKar

ASKER

thanks to you both
cymbolic, i have checked the knowledge base, but it doesnt help in knowing how to work around the conversion very much.  mark1250 was close to the crux of the problem with the DATA/READ
remarks as that is where the debug/run stops ... on a READ command saying sub or function not defined.  also i have 5 long data strings to this proggie (a digital colored clock and calendar that can be moved to two other locations on the screen with the spacebar) (esc to exit)  any workarounds to the thing would be helpful...loading th molule without forms was very good idea, just now  the READ.  thanks again in advance