NTDOCAdministrator
(KiX Master)
2005-02-25 08:59 PM
KiXtart 2010 Beta 1a - code not as forgiving

While attempting to do a preview from PostPrep the new KiXtart 2010b1a returned the following error and quit:

Quote:

---------------------------
>>> KiXtart 2001 <<<
---------------------------

ERROR : unknown command []!
Script: C:\PostPrep\PostPrepkix
Line : 480

---------------------------
OK
---------------------------




Using KiXtart versions 4.22 or 4.23 did not produce this error. Examining the code I found a typo in the code.

if $frm.
There was a period on the end of the variable
By removing the period so that is was now
if $frm

KiXtart 2010b1a now executes the preview properly.

So, not a bug, but just to show that the new version of KiXtart is not as forgiving as we may have become used to.




Sealeopard
(KiX Master)
2005-02-26 12:13 AM
Re: KiXtart 2010 Beta 1a - code not as forgiving

Is $frm by any chance an object? Or could "$frm." be interpreted by KiXtart to be an object referencing a default property as no specific property has been defined?

NTDOCAdministrator
(KiX Master)
2005-02-26 01:52 AM
Re: KiXtart 2010 Beta 1a - code not as forgiving

$frm is an object

$frm = createobject("Kixtart.Form")


Sealeopard
(KiX Master)
2005-02-26 02:43 PM
Re: KiXtart 2010 Beta 1a - code not as forgiving

Then Code:
IF vartype($frm)=9

or Code:
IF not @EEROR

should be used anyway, anyway.


Les
(KiX Master)
2005-02-26 02:49 PM
Re: KiXtart 2010 Beta 1a - code not as forgiving

The beta forum is not the right venue for discussing coding styles. DOC simply reported a change in behavior of the latest beta. Unless this change is the result of the addition of features or the fixing of bugs, let's just leave it at that.