set a property stops winbatch and winbatch_if

Started by Didier, November 12, 2013, 11:53:48 AM

Previous topic - Next topic

Didier


any attempt to update a property dd.language prompt a window in 7. No error in winbatch but the program stops. no way to have an error.
winbatch ceased to work. the properties are not read only.  It is the same phenomenon with the other properties I am aware of.

oBAPICtrl = CreateObject("SAP.BAPI.1")
oLogonCtrl = CreateObject("SAP.Logoncontrol.1")
tt=oLogonCtrl.NewConnection()

; tt is a dispatch dixit the wil type viewer
; language is a bstr dixit wil type viewer

tt.language="FR" ;  creates an error
oBAPICtrl.Connection = tt
dd= oBAPICtrl.Connection
ss=ObjectType("BSTR","k3pe1.de.kaercher.com")
truc=dd.language
dd.language=truc    ; will create the error
ff=dd.whateverdoesnexist   ; will fail method not recognised

do you any clue what it should be?
this kind of code have worked during the last 10 years.


Didier

Deana

Please add DebugTrace(@on,"trace.txt") to the beginning of the script, run it until the error or completion, then post the trace file here ( removing any private info).

You mention that this has worked for 10 years. What has changed exactly? Did you move it to Windows 7 and now it errors? Has it ever successfully ran on Windows 7?
Deana F.
Technical Support
Wilson WindowWare Inc.

Didier

The change is imho a switch to windows  7 (32).
I use the uac settings that works for MS automation see extension _if and the appropriate developement exe.
I will retest from xp and set trace on in 5 hours and report. The issue is always when setting the property.
It never runs on 7.
Thanks for the hint.
Didier