Home > Available Help Files > PC-DMIS BASIC Language > Language Reference A – Z > CurDir Function > Example:
Current Help System: PC-DMIS BASIC (View Core Help)
Example:
'Declare Function CurDir Lib "NewFuns.dll" () As String
Sub Form_Click ()
Dim Msg, NL ' Declare variables.
NL = Chr(10) ' Define newline.
Msg = "The current directory is: "
Msg = Msg & NL & CurDir()
MsgBox Msg ' Display message.
End Sub