#206341 - 2012-12-02 01:21 AM
Re: KiXnet first public release, 4th build
[Re: Lonkero]
|
ShaneEP
MM club member
   
Registered: 2002-11-29
Posts: 2127
Loc: Tulsa, OK
|
This is the entire script...setoption("wrapateol","on")
get $ And it says this... "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:1 char position:27 Hit Enter to quit'
|
Top
|
|
|
|
#206349 - 2012-12-02 08:11 PM
Re: KiXnet public alpha release, 5th build
[Re: Lonkero]
|
ShaneEP
MM club member
   
Registered: 2002-11-29
Posts: 2127
Loc: Tulsa, OK
|
Perhaps it's more of a problem with the '?'.
This code simply pops open a console, and then closes...never displays anything This code opens a console and displays the drives (in a different format than kix however) and then waits for a key to be hit as expected.
|
Top
|
|
|
|
#206360 - 2012-12-03 05:49 PM
Re: KiXnet public alpha release, 6th build
[Re: Lonkero]
|
ShaneEP
MM club member
   
Registered: 2002-11-29
Posts: 2127
Loc: Tulsa, OK
|
Here a couple more bugs for you.
Trying to display a variable outside of where it was declared causes the following error.
Also...the CD command cuts off half the current dir much like the @ScriptDir did before you fixed it.
cd "c:\nonexistingdir"
if 1<>2
dim $b
$b = 3
? "b: "+$b
endif
? "b: "+$b
get $ "CURRENT DIR:C:\Documents and Settings\Shane
b: 3 Exception has been thrown by the target of an invocation. Object reference not set to an instance of an object. on script line:9 char position:8 Hit Enter to quit"
The wrapateol seems to be working. However it is adding 2 line feeds as shown below.
"rather long text output coming your way just to see that the text wrapping works
as expected or what not if that was the case of it."
The GoSub is also failing. It simply displays the sub name to the console and continues on without actuall running the sub-routine.
gosub "testsub"
? "after sub"
get $
:testsub
? "in sub"
return Produces this on the console... "testsub after sub"
|
Top
|
|
|
|
Moderator: Arend_, Allen, Jochen, Radimus, Glenn Barnas, ShaneEP, Ruud van Velsen, Mart
|
0 registered
and 581 anonymous users online.
|
|
|