Announcements
Attention for Customers without Multi-Factor Authentication or Single Sign-On - OTP Verification rolls out April 2025. Read all about it here.


@mhoE3YPJ wrote:

I got an error, from the line, where it pulls on the directoryInfo,

but insted I tweaked it a little and now it works.

 

 

If System.IO.Directory.Exists(oPath) = False Then
	System.IO.Directory.CreateDirectory(oPath)
ElseIf System.IO.Directory.Exists(oPath) = True Then
End If

 

Thanks for the help! 


You can save yourself some lines with this instead:

 

If System.IO.Directory.Exists(oPath) = False Then System.IO.Directory.CreateDirectory(oPath)

 

Also, where are to defining what aOrdreNr is? 

Don't you need to have something like this before you define oPath?

 

aOrdreNr = iProperties.value("Project","Stock Number")