Gianricus
21st July 2004, 18:04
hi,
i'm a new user

i had write this code from start a BaaN session :

******
Dim BaanObj As Object
Dim B_function As String

ErrorPositionCode = 2

Set BaanObj = CreateObject("Baan4.Application.local")

BaanObj.Timeout = 10

B_function = "zoom.to.menu(" & Chr(34) & "fxsls0140mg00" & Chr(34) & _
",2," & Chr(34) & Chr(34) & "," & Chr(34) & Chr(34) & ",0,0)"

'lancio la session con controllo memoria per attendere
'che finisca
BaanObj.ParseExecFunction "ottstpstandard", B_function
Set BaanObj = Nothing
******
The session that i start i a long work.
i want control the execution of my code, but usually that i start an external application i control the IstanceHandle;
when i start the session i don't create Istance.

i want stop the code when exec ParseExecFunction and wait that the session terminate.

It's possible???
Bye
Tks

Gian