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.

Newcomers DBPro Corner / Read data statements

Author
Message
Hoose
18
Years of Service
User Offline
Joined: 15th Feb 2006
Location: Lost in the corners of my Mind!
Posted: 22nd Oct 2007 05:59 Edited at: 22nd Oct 2007 08:36
I just started back in DBP and I'm kind of stuck. What's the best way to read in data that looks like this:

BODYWIRES, 0CS02670, 24, 44.374, 43.555, SB
06101916, EXP0090909, 700, 44.003, 76.747, SD
55157680AB, CT241507, 34, 66.435, 65.755, NU

I have to read in one line, assign it to some variables, run it though some calculations and then move onto the next line. Thanks for any help!

Hoose

Edit: It looks like User Defined Data Types may be the way to go, but still trying to figuire out how to get from here to there. Say that I have all the data in a text file and I read it in, I seem to be missing the connection.

"Do you mind not farting while I'm saving the world?"
The Doctor
pcRaider
17
Years of Service
User Offline
Joined: 30th May 2007
Location:
Posted: 22nd Oct 2007 12:44
You will need the following data format.

DATA "BODYWIRES"," 0CS02670"," 24"," 44.374"," 43.555"," SB"

Login to post a reply

Server time is: 2024-11-25 12:16:58
Your offset time is: 2024-11-25 12:16:58