DBWGetIdFromFullFileName

<< Click to Display Table of Contents >>

Navigation:  Programming Mechworks PDM > DBWCommandShell > Library Reference > Document >

DBWGetIdFromFullFileName

Description

Retrieves DocID and DocUid from full file name

Syntax

Function DBWGetIdFromFullFileName(DirName, FileName, ByRef DocUid)

Parameters

DirName

directory name (the path)

FileName

name of the file

Return Values

The function assumes the value of the document ID

DocUid

document unique id

See also

Function DBWGetIdFromFullFileName1

Example

dirname = "c:\dirone\dirtwo\dirthree\"
filename = "test.sldasm"
docId = DBWGetIdFromFullFileName(dirname, filename, docUid)
msgbox docId & " with unique id = " & cstr(docUid)