I am using MENU>LOAD_RUN|? in a vb.net program to open the dialog box to load the datasets.
Below is the sample Vb.net code I used
Code: Select all
Dim result As Object
result = vensim_command("MENU>LOAD_RUN|?")
Thanks
Code: Select all
Dim result As Object
result = vensim_command("MENU>LOAD_RUN|?")
Code: Select all
Dim testresult As Object
Dim testbuf As String = ""
testresult = vensim_get_info(10, testbuf, 500)
Code: Select all
Public Declare Function vensim_get_info Lib "vendll32.dll" (ByVal infowanted As Short, ByVal buf$, ByVal maxbuflen As Short) As Short
Code: Select all
Dim nMaxStringLen As Long
nMaxStringLen = 500
Dim sBuffer As String
sBuffer = New String(" ", nMaxStringLen)
nResult = vensim_get_info(10, sBuffer, nMaxStringLen)