File.ReadDelim string


Recommended Posts

I am working on a "Lookup" table for converting a numerical value, into a string value for displaying a interpreted machine state.  For some reason, I cannot read the string using the File.ReadDelim function, with the [string] variable set to "1" 


private statemodefile ="XXXXXXXXX_STATE_LIST.csv",1,0,0,1)
global lookup_statemode = File.ReadDelim(statemodefile,0,",",chr(10),-1,1)

Link to comment
Share on other sites

So, I updated the global to a "string" and I am still getting the NaN's

private statemodefile ="41000063_50_STATE_LIST.csv",1,0,0,1)
global string lookup_statemode = File.ReadDelim(statemodefile,-1,",",chr(10),0,1)

I am reading a standard .csv file

0,Not Ready - Stopped - NONE
1,Not Ready - Stopped - WRN - WRN
2,Not Ready - Stopped - AL2 - AL2
3,Not Ready - Stopped - AL2/WRN - AL2/WRN
4,Not Ready - Stopped - AL1
5,Not Ready - Stopped - AL1/WRN
6,Not Ready - Stopped - AL1/AL2
7,Not Ready - Stopped - AL1/AL2/WRN

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.