How to port code found in Windows .doc format to the qb64 ap

If you have questions about any aspect of QBasic programming, or would like to help fellow programmers solve their problems, check out this board!

Moderators: Pete, Mods

Post Reply
gremlin4
Newbie
Posts: 9
Joined: Sun Jun 29, 2014 9:16 am

How to port code found in Windows .doc format to the qb64 ap

Post by gremlin4 »

[color=#000000][/color]
That's it really. If I just "rename", say, Sudoku.doc got from the internet to Sudoku.bas, when I open it with qb64, I get a lemon.
User avatar
burger2227
Veteran
Posts: 2466
Joined: Mon Aug 21, 2006 12:40 am
Location: Pittsburgh, PA

Re: How to port code found in Windows .doc format to the qb6

Post by burger2227 »

You can't just change the DOC extension to BAS! Is it BASIC code or just text? Got a link to it?

Did you try copying the DOC code text into QB64 IDE directly?
Please acknowledge and thank members who answer your questions!
QB64 is a FREE QBasic compiler for WIN, MAC(OSX) and LINUX : https://www.qb64.org/forum/index.php
Get my Q-Basics demonstrator: https://www.dropbox.com/s/fdmgp91d6h8ps ... s.zip?dl=0
gremlin4
Newbie
Posts: 9
Joined: Sun Jun 29, 2014 9:16 am

Re: How to port code found in Windows .doc format to the qb6

Post by gremlin4 »

Hello burger 3337

I'm not sure how you mean 'copy the code directly into qb64 IDE' because the qb pagelet only recognises file names with a .bas extension.

If I've found a prog on the internet, e.g. http://www.petesqbsite.com/downloads/Sudoku.bas" target="_blank, the best i have done so far is to highlight it, copy it, paste it into a Windows Word page, save that as a .txt file (DOS version), open qbbasic then with the mouse pointer drag the txt's icon over the qb icon and when the ode appears, have qb save ir as a .bas file. Phew!

The file I mentioned will appear as the subject of my other post.....

thanks for listening
Ed
User avatar
burger2227
Veteran
Posts: 2466
Joined: Mon Aug 21, 2006 12:40 am
Location: Pittsburgh, PA

Re: How to port code found in Windows .doc format to the qb6

Post by burger2227 »

You can paste text directly into the QB64 IDE. Highlight and Copy the text from a file or web page and then Click Edit, Paste.

You cannot just change file name extensions and expect them to be converted to readable or loadable text.
Please acknowledge and thank members who answer your questions!
QB64 is a FREE QBasic compiler for WIN, MAC(OSX) and LINUX : https://www.qb64.org/forum/index.php
Get my Q-Basics demonstrator: https://www.dropbox.com/s/fdmgp91d6h8ps ... s.zip?dl=0
Post Reply