Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

QUESTION ON DDE

Status
Not open for further replies.

IncredibleVolk

Technical User
Apr 2, 2004
67
US
I'm borrowing from the OMPR227 script to import columns from a text file to Excel. The problem I'm having is that some instances of my columns are null and other columns contain spaces. Is there a way to strtok on the position of the column in the file as opposed to a space? Would fseek work?


strtok sTok1 sLine " " 1 ;* AGENT
strtok sTok2 sLine " " 1 ;* CLIENT
strtok sTok3 sLine " " 1 ;* DESK
strtok sTok4 sLine " " 1 ;* NAME
 
Check out substr in the documention, this may be a possible solution for you.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top