Use the "nextValidId" event to get a valid Id to use each time.
--- In twsapi@y..., "Bruce Hawkins" <hawkinsk001@h...> wrote:
How do I get Tws.ocx on to a new form?
I tried the following on the Demo and it worked except I have to
keep increasing the order ID to place more orders.
Call Tws1.placeOrder(3030, "BUY", 1, "ES", "FUT", "200209", _
0, "", "GLOBEX", "", "LMT", 1000.00, 0)
How do you work around this?
Any input appreciated,
Bruce
P.S. The form I am using now (which was a simple Demo I got from
Jaba) I beleive has an earlier ver. of Tws.ocx