Message 1 of 3
Think there is a bug in VB 6,0

Not applicable
06-22-2004
01:41 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Private Sub Form_Load()
Dim oFileReq As ApprenticeServerComponent
Dim oDrawdoc As ApprenticeServerDrawingDocument
Set oFileReq = New ApprenticeServerComponent
Set oDrawdoc = oFileReq.Open("c:\part1.idw")
MsgBox
oDrawdoc.Sheets.Item(1).DrawingViews.Item(1).ReferencedFile.FullFileName &
Chr(13) _& oDrawdoc.ReferencedFiles.Item(1).FullFileName
End Sub
Place the idw and the ipt in c:\
Try to run this in VB 6.0, I get 2 different paths on the same view, one
saying that the referenced part is in c:\temp and one saying that it is in
c:\, if you the change the msgbox to :
MsgBox oDrawdoc.ReferencedFiles.Item(1).FullFileName & Chr(13) _&
oDrawdoc.Sheets.Item(1).DrawingViews.Item(1).ReferencedFile.FullFileName
The paths are the same ????? is this a bug??? There is no problem in VBA
Attachment not added (content type not allowed): "Part1.ipt"