Page 1 of 1 1
Topic Options
#134624 - 2005-02-25 08:59 PM KiXtart 2010 Beta 1a - code not as forgiving
NTDOC Administrator Offline
Administrator
*****

Registered: 2000-07-28
Posts: 11623
Loc: CA
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.



Top
#134625 - 2005-02-26 12:13 AM Re: KiXtart 2010 Beta 1a - code not as forgiving
Sealeopard Offline
KiX Master
*****

Registered: 2001-04-25
Posts: 11164
Loc: Boston, MA, USA
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?
_________________________
There are two types of vessels, submarines and targets.

Top
#134626 - 2005-02-26 01:52 AM Re: KiXtart 2010 Beta 1a - code not as forgiving
NTDOC Administrator Offline
Administrator
*****

Registered: 2000-07-28
Posts: 11623
Loc: CA
$frm is an object

$frm = createobject("Kixtart.Form")

Top
#134627 - 2005-02-26 02:43 PM Re: KiXtart 2010 Beta 1a - code not as forgiving
Sealeopard Offline
KiX Master
*****

Registered: 2001-04-25
Posts: 11164
Loc: Boston, MA, USA
Then Code:
IF vartype($frm)=9

or Code:
IF not @EEROR

should be used anyway, anyway.
_________________________
There are two types of vessels, submarines and targets.

Top
#134628 - 2005-02-26 02:49 PM Re: KiXtart 2010 Beta 1a - code not as forgiving
Les Offline
KiX Master
*****

Registered: 2001-06-11
Posts: 12734
Loc: fortfrances.on.ca
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.
_________________________
Give a man a fish and he will be back for more. Slap him with a fish and he will go away forever.

Top
Page 1 of 1 1


Moderator:  ShaneEP, Arend_, Jochen, Radimus, Glenn Barnas, Allen, Ruud van Velsen, Mart 
Hop to:
Shout Box

Who's Online
2 registered (morganw, mole) and 414 anonymous users online.
Newest Members
gespanntleuchten, DaveatAdvanced, Paulo_Alves, UsTaaa, xxJJxx
17864 Registered Users

Generated in 0.051 seconds in which 0.022 seconds were spent on a total of 12 queries. Zlib compression enabled.