Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

DarkBASIC Discussion / is this possible??

Author
Message
Mr_Insane
21
Years of Service
User Offline
Joined: 14th Nov 2002
Location: United States
Posted: 24th Dec 2002 09:47
Handling multiple data fields into a file using DBV1?

in QB, I used:
Type This
Data1 as String * 12
Data2 as Integer
END TYPE
to hold a single set of records to a file.

p.s. its a big pain just to only store a single array to one file. You don't just only need score but name too.
MrTAToad
21
Years of Service
User Offline
Joined: 26th Aug 2002
Location: United Kingdom
Posted: 24th Dec 2002 16:12
How about reading in a line, and (treating it as a CSV), search for, say, commas.

Once a section has been found, copy it into the required variable.

Good news everyone! I really am THAT good...
Oh my, yes...
Mr_Insane
21
Years of Service
User Offline
Joined: 14th Nov 2002
Location: United States
Posted: 24th Dec 2002 19:41
I really need a source code on how to that.
MrTAToad
21
Years of Service
User Offline
Joined: 26th Aug 2002
Location: United Kingdom
Posted: 25th Dec 2002 00:04
I dont have one for that i'm afraid - however this pseudo-style code might help :

one$=read byte
while not end of line
a$=""
while one$<>","
a$=a$+one
endwhile
rem a$ will now contain everything up to the comma
endwhile

Good news everyone! I really am THAT good...
Oh my, yes...
eightfoot514
21
Years of Service
User Offline
Joined: 20th Dec 2002
Location: United States
Posted: 25th Dec 2002 03:54
wow...i didn't think people still actually knew what pseudo code was. its good to know that people still use it.

eric

MrTAToad
21
Years of Service
User Offline
Joined: 26th Aug 2002
Location: United Kingdom
Posted: 25th Dec 2002 10:15
Indeed.

Good news everyone! I really am THAT good...
Oh my, yes...

Login to post a reply

Server time is: 2024-03-01 05:36:47
Your offset time is: 2024-03-01 05:36:47