Coding with a Spreadsheet...

Blitz3D Forums/Blitz3D Programming/Coding with a Spreadsheet...

The forum is locked. These are the original blitzbasic.com forums, kept so they can still be read. No new topics, replies or edits can be made here. To join in, head over to the Blitz3D+ forums.

Would it not have been easier to export as CSV files then just read them into blitz? That way you've got nice soft coding going on too.

You'd end up with code something like

using my Entry function.

filein = readfile("weapons.csv")
repeat
l$ = readline filein ; read the line
l$ = replace(l$,chr(34),"") ;remove the quotes
w.weapon = new weapon
w\name = entry(1,l$,",")
w\cost= entry(2,l$,",")
w\weight = entry(3,l$,",")
w\magic = entry(4,l$,",")
until eof(filein)
closefile filein