Passing argument into dll

Hi,

I am trying to pass an argument into a NXOPen dll program. But when I try to access args, it is of length 2 but with no value inside. Here's my menuscript file and the vb code. Is there something I am missing here?


BUTTON TAG_GROUP
LABEL tag Face From Group
ACTIONS tagFromGroup("TAG_GROUP")


Function Startup(ByVal args As String()) As Integer

Dim theSession As Session = Session.GetSession()
Dim theUI As UI = UI.GetUI()
Dim theUfSession As UFSession = UFSession.GetUFSession()

Select Case args(0)
Case "TAG_GROUP"

End Select

Return 0
End Function

after further investigation, when I get rid of the ("TAG_GROUP"). the args variable shrinks to length 1 but the content is still empty. That means NX is passing an argument but for some reason the string ends up being null. Any body else had this issue before?

You must create a TBR menu file to use arguments and the dll file must reside on any startup folder

Gelson Nicoletto