#206319 - 2012-11-30 02:06 AM
Re: KiXnet first public release, 3rd build
[Re: Lonkero]
|
It_took_my_meds
Hey THIS is FUN
Registered: 2003-05-07
Posts: 273
Loc: Sydney, Australia
|
Sorry it doesn't work for me.
? "createobject kixforms: "
$kixforms = CreateObject("Kixtart.Form")
? "show form:"
$kixforms.visible = 1
@error " " @result " " @serror ? gives
createobject kixforms:
show form:Object of type 'System.String' cannot be converted to type 'System.Object[]'.
unrecoverable internal error occured while Executing the script.
Object reference not set to an instance of an object.
? "createobject kixforms: "
$kixforms = CreateObject("Kixtart.Form")
? "show form:"
$kixforms.show()
@error " " @result " " @serror ? gives
createobject kixforms:
show form:unrecoverable internal error occured while Executing the script.
Unable to cast object of type 'System.Object[]' to type 'System.Int32[]'.
? "createobject kixforms: "
$kixforms = CreateObject("Kixtart.System")
@error " " @result " " @serror ?
? "create form:"
$form = $kixforms.Form
@error " " @result " " @serror ?
? "show form:"
$forms.show()
@error " " @result " " @serror ? gives
createobject kixforms: 0 The operation completed successfully
create form:unrecoverable internal error occured while Executing the script.
Exception has been thrown by the target of an invocation.
|
Top
|
|
|
|
#206324 - 2012-11-30 04:31 AM
Re: KiXnet first public release, 3rd build
[Re: Lonkero]
|
It_took_my_meds
Hey THIS is FUN
Registered: 2003-05-07
Posts: 273
Loc: Sydney, Australia
|
Unfortunately, I still get the same error with the code you suggested.
A translation engine gave me this as the equivalent of CreateObject in C#
object adoConn = Interaction.CreateObject("ADODB.Connection")
|
Top
|
|
|
|
#206334 - 2012-12-01 08:46 PM
Re: KiXnet first public release, 3rd build
[Re: It_took_my_meds]
|
ShaneEP
MM club member
Registered: 2002-11-29
Posts: 2125
Loc: Tulsa, OK
|
Ran thru the test.kix script again. Most works now. There are still some bugs though.
The line...call @ScriptDir+"\test_call.kix" Produces message "Exception has been thrown by the target of an invocation. call to unexisting script file on script line:1 char position:1 Hit Enter to quit" even thought the @scriptdir is populating correctly, and the test_call.kix file exists.
These lines...$files = getfiles("c:\windows",0)
? "ubound: "+ubound($files) Produces message "Exception has been thrown by the target of an invocation. Array does not have that many dimensions. on script line:2 char position:27 Hit Enter to quit"
And of course the kixforms section fails. It gets past the createobject line, but bombs out on the .Show() line.
|
Top
|
|
|
|
#206335 - 2012-12-01 08:50 PM
Re: KiXnet first public release, 3rd build
[Re: ShaneEP]
|
ShaneEP
MM club member
Registered: 2002-11-29
Posts: 2125
Loc: Tulsa, OK
|
Also, are the SetOption properties supposed to work?
SetOption("WrapAtEOL","On") Produces "Exception has been thrown by the target of an invocation. Index and length must refer to a location within the string. Parameter name: length on script line:3 char position:1 Hit Enter to quit"
And the @ScriptDir might have a problem after all. It is cutting off after about half the path.
|
Top
|
|
|
|
#206338 - 2012-12-02 01:08 AM
Re: KiXnet first public release, 4th build
[Re: Lonkero]
|
ShaneEP
MM club member
Registered: 2002-11-29
Posts: 2125
Loc: Tulsa, OK
|
Who wrote those macros anyways...
|
Top
|
|
|
|
Moderator: Arend_, Allen, Jochen, Radimus, Glenn Barnas, ShaneEP, Ruud van Velsen, Mart
|
0 registered
and 507 anonymous users online.
|
|
|