I have a text file like this.
# This file was automatically generated by MicroStation v8
DATA_FORMAT 2.1
GENERATOR MicroStation_v8
DINLASTUPDATED 2004-02-13 15:51:50
START GENERAL
BASENAME S11-00
DOCDIR G:\81120\STR\
DOCTYPE MicroStation
AUTHOR cbs
DOCFILEREF S11-00
DOCSTATUS PRELIMINARY - NOT FOR CONSTRUCTION
DOCTITLE COLUMN SCHEDULE | AND DETAILS
JOBNUMBER 81120
JOBTITLE Canberra Theatre Link | Redevelopment
REVISION A
TBSCALE 1:100
NOTES Model file
END GENERAL
I have the code written as
Open stPath + stfilename For Input As #1
While Not EOF(1)
Line Input #1, temp$
RecordId = Left(temp$, 9)
Select Case RecordId
Case "DOCTITLE"
Me.DrawingTitle1 = (Mid(temp$, 12, 50))
Case "DOCSTATUS"
Me.Status = (Mid(temp$, 12, 28))
Case "TBSCALE"
Me.DScale = (Mid(temp$, 12, 28))
Case "REVISION"
Me.Revision = (Mid(temp$, 12, 28))
Case "DOCFILEREF"
Me.DrawingNumber = (Mid(temp$, 12, 28))
Case Else
End Select
Now this worked on a previous text file that I had but with this one it only returns the "DOCSTATUS"
I believe it is something connected to
RecordId = Left(temp$, 9) with 9 being the factor but i cannot figure it out!!
Any clues to put this right.
Thanks in advance
# This file was automatically generated by MicroStation v8
DATA_FORMAT 2.1
GENERATOR MicroStation_v8
DINLASTUPDATED 2004-02-13 15:51:50
START GENERAL
BASENAME S11-00
DOCDIR G:\81120\STR\
DOCTYPE MicroStation
AUTHOR cbs
DOCFILEREF S11-00
DOCSTATUS PRELIMINARY - NOT FOR CONSTRUCTION
DOCTITLE COLUMN SCHEDULE | AND DETAILS
JOBNUMBER 81120
JOBTITLE Canberra Theatre Link | Redevelopment
REVISION A
TBSCALE 1:100
NOTES Model file
END GENERAL
I have the code written as
Open stPath + stfilename For Input As #1
While Not EOF(1)
Line Input #1, temp$
RecordId = Left(temp$, 9)
Select Case RecordId
Case "DOCTITLE"
Me.DrawingTitle1 = (Mid(temp$, 12, 50))
Case "DOCSTATUS"
Me.Status = (Mid(temp$, 12, 28))
Case "TBSCALE"
Me.DScale = (Mid(temp$, 12, 28))
Case "REVISION"
Me.Revision = (Mid(temp$, 12, 28))
Case "DOCFILEREF"
Me.DrawingNumber = (Mid(temp$, 12, 28))
Case Else
End Select
Now this worked on a previous text file that I had but with this one it only returns the "DOCSTATUS"
I believe it is something connected to
RecordId = Left(temp$, 9) with 9 being the factor but i cannot figure it out!!
Any clues to put this right.
Thanks in advance