Page 1 of 1

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

Posted: Sun Jun 29, 2014 10:04 am
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.

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

Posted: Sun Jun 29, 2014 12:07 pm
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?

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

Posted: Sun Jun 29, 2014 9:02 pm
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

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

Posted: Mon Jun 30, 2014 8:26 am
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.