Les
(KiX Master)
2005-04-06 09:45 PM
KiXtart 2010 Beta 2

Quote:

Dear KiXtart supporters,

<snip>
The zip contains both a console and a console-less build. The manual hasn't been updated yet so it's not included.

IMPORTANT NOTES:
1) Previous versions of KiXtart automatically appended the extensions".KIX" and ".SCR" to filenames specified without an extension. As of this build, KiXtart itself no longer uses the ".SCR" extension. Instead, KiXtart always tries for the ".KX" extension first, followed by the ".KIX" extension.
2) Files pre-tokenized with previous builds can not be processed by this latest build.

New functionality/enhancements:
Fixed INCLUDE.
Debug mode now uses the actual console size.
EnumIPInfo now has a 're-read' option.
To use this option, specify a 3rd parameter with a value of 1 (e.g.: EnumIPInfo(0,1,1) ).
FormatNumber was fixed to deal with numbers with multiple zeroes after the decimal point.
Added NoMacrosInStrings option. If this option is ON, macros inside strings are not resolved.
Added an operator for XOR operations: ^.
Added an operator for binary NOT operations: ~.
Added support for block comments. A block comment is a sequence of characters beginning with a forward slash/asterisk combination (/*) A comment can include any combination of characters, including newline characters, but excluding the "end comment" delimiter (*/). Comments can occupy more than one line but cannot be nested.
Enhanced Split() to support the case-sensitivity option.
This is still a BETA, so it's not meant to be used in production environments, but please feel free to share it either on your websites or via email.

Note that we are getting close to the final version so it is vital to test all your scripts and let me know about any unexpected results.

If you have any questions or suggestions: let me know!

Kind regards,

Ruud van Velsen
Principal Consultant





[edit]
quoted the text and added to cal. - lonk


Bryce
(KiX Supporter)
2005-04-06 09:49 PM
Re: KiXtart 2010 Beta 2

Wow Les

http://www.kixtart.org/ubbthreads/showflat.php?Cat=0&Number=136486&an=0&page=0#136486


ShawnAdministrator
(KiX Supporter)
2005-04-06 10:27 PM
Re: KiXtart 2010 Beta 2

/*

Way to go Ruud - Block comments !

*/


ShawnAdministrator
(KiX Supporter)
2005-04-06 10:36 PM
Re: KiXtart 2010 Beta 2

Ran one of my large COM scripts with the new Beta ... it squawked about a syntax error all of a sudden. Thought "oh oh" until I realized it was an error on my part, looks like maybe Beta2 does a bit more "checking" of things, in a good way.

LonkeroAdministrator
(KiX Master Guru)
2005-04-06 10:59 PM
Re: KiXtart 2010 Beta 2

if someone does want the linky in here...

www.kixtart.org/downloads


ShawnAdministrator
(KiX Supporter)
2005-04-06 11:03 PM
Re: KiXtart 2010 Beta 2

hmmm, looks like the new Beta "kicks-out" COM calls against properties that don't exist now. Again, this is a good thing (imho) but one can't be lazy anymore with COM objects ;0)

Howard Bullock
(KiX Supporter)
2005-04-06 11:10 PM
Re: KiXtart 2010 Beta 2

What do you mean "kicks-out"? Reports an error or destroys the COM object?

ShawnAdministrator
(KiX Supporter)
2005-04-06 11:13 PM
Re: KiXtart 2010 Beta 2

Getting a syntax error now:

ERROR : Error in expression.!
Script: xml.kix
Line : 737

-Shawn


ShawnAdministrator
(KiX Supporter)
2005-04-06 11:20 PM
Re: KiXtart 2010 Beta 2

But like I said, there is an error in my script (I was being lazy), all i had to do was correct the script.

ShawnAdministrator
(KiX Supporter)
2005-04-07 01:11 AM
Re: KiXtart 2010 Beta 2

Here's a small snippet of code that demonstrates the new behaviors:

Code:

break on

$xml = createobject("microsoft.xmldom")

$element = $xml.AppendChild($xml.CreateElement("kixtart"))

$attribute = $element.setattribute("languagetype", "scripting")

?"element=" $element.xml

if $element.attributes
?"the element has attributes"
endif

if $attribute.attributes
?"the attribute has attributes"
endif

exit 0



If you run this with Beta1, we get no syntax errors. Here is the output listing...

Code:

E:\xml>kix32 t

element=<kixtart languagetype="scripting"/>
the element has attributes



This code here is the "iffy" bit:

Code:

if $attribute.attributes
?"the attribute has attributes"
endif



Theoretically, an "attribute" doesn't have attributes. But the old Beta just kinda glosses over it. If you run this with the new Beta, you get the following syntax error ...

Code:

E:\xml>kix32b2 t

element=<kixtart languagetype="scripting"/>
the element has attributes
ERROR : Error in expression.!
Script: t
Line : 15



According to the XMLDOM object model (browsing the typelib), a DOMAttribute does "have" an attributes property (collection) (??!!!) - looking at this property through the old beta, it returns an empty reference. Maybe what is "broken" in the new Beta is the handling of Empty references. Need to drill down more deeply to really figure-out whats going on.

Ruud - can you add anything ?

-Shawn


Ruud van Velsen
(Hey THIS is FUN)
2005-04-07 11:54 AM
Re: KiXtart 2010 Beta 2

Hi Shawn: turns out this is yet another variant of 2010 b2 split changes

So: fixed in the next build.

Thanks for the detailed report.

Kind regards,

Ruud