Page 1 of 1 1
Topic Options
#114455 - 2004-02-20 06:34 AM KiXStrip - Feedback
Kdyer Offline
KiX Supporter
*****

Registered: 2001-01-03
Posts: 6241
Loc: Tigard, OR
MCA,

KiXStrip appears to have the following limitation. Take the following line (which I split to avoid long lines).

Code:

FOR EACH $card IN GetObject($wmi).execquery("SELECT * FROM WIN32_NETWORKADAPTERCONFIGURATION
WHERE IPENABLED='TRUE'")



Also, with function calls:
Code:

$rs.fields('PagefileSpace').value=val(WMIQuery('TotalPageFileSpace',
'Win32_LogicalMemoryConfiguration')[0])/1024


KiXtart happily runs the code with no problems.

Run the code through KiXStrip -
Code:

FOR EACH $card IN GetObject($wmi).execquery("SELECT * FROM WIN32_NETWORKADAPTERCONFIGURATION
; -------> Warning KIXSTRIP: 163 line incomplete "double quotation".
; -------> Warning KIXSTRIP: 163 line incomplete "left parenthesis".
; -------> Warning KIXSTRIP: 163 line incompleted.
WHERE IPENABLED='TRUE'")



Also, with function calls:
Code:

$rs.fields('PagefileSpace').value=val(WMIQuery('TotalPageFileSpace',
; -------> Warning KIXSTRIP: 75 line incomplete "left parenthesis".
; -------> Warning KIXSTRIP: 75 line incompleted.
'Win32_LogicalMemoryConfiguration')[0])/1024



Thanks,

Kent
_________________________
Utilize these resources:
UDFs (Full List)
KiXtart FAQ & How to's

Top
#114456 - 2004-02-20 08:20 AM Re: KiXStrip - Feedback
Lonkero Administrator Offline
KiX Master Guru
*****

Registered: 2001-06-05
Posts: 22346
Loc: OK
this was discussed before too.
I remember me complaining about this and MCA said it's by design.
you must also understand that if you want to get a really proper code, you must make the parser similar that's in postprep and don't think everyone is willing to take that step.

so, multiline text is big no-no in kixstrip.
you could although use compile and make it one line before testing
_________________________
!

download KiXnet

Top
#114457 - 2004-02-20 10:46 AM Re: KiXStrip - Feedback
Richard H. Administrator Offline
Administrator
*****

Registered: 2000-01-24
Posts: 4946
Loc: Leatherhead, Surrey, UK
I think it is probably OK as is.

You need to consider these as "warnings" rather than "errors". Because KiXtart is so loosely formatted, multi-line may mean that you have made an error, or it may be a deliberate formatting choice.

KiXtart itself has problems reporting the actual lines that errors have occurred in, simply because of the free format style.

This is not limited to KiXtart. All languages which allow free format coding have problems identifying where the problem actually is - open speech marks are the major cause of chaos.

In short, it is better to identify potential problems with warnings than it is to try and be clever and report misleading information.

Top
#114458 - 2004-02-20 12:05 PM Re: KiXStrip - Feedback
Lonkero Administrator Offline
KiX Master Guru
*****

Registered: 2001-06-05
Posts: 22346
Loc: OK
well, wouldn't the warning be then: "kixstrip warning - unable to decide"

now it gives same warning on syntax errors too.
_________________________
!

download KiXnet

Top
#114459 - 2004-02-20 02:18 PM Re: KiXStrip - Feedback
Kdyer Offline
KiX Supporter
*****

Registered: 2001-01-03
Posts: 6241
Loc: Tigard, OR
But, the odd thing is that if you split the DIM line into many lines, KiXStrip handles that OK.

Kent
_________________________
Utilize these resources:
UDFs (Full List)
KiXtart FAQ & How to's

Top
#114460 - 2004-02-20 02:43 PM Re: KiXStrip - Feedback
Lonkero Administrator Offline
KiX Master Guru
*****

Registered: 2001-06-05
Posts: 22346
Loc: OK
that's no odd.
it just ignores orphan varnames and periods.
_________________________
!

download KiXnet

Top
#114461 - 2004-02-20 03:02 PM Re: KiXStrip - Feedback
Kdyer Offline
KiX Supporter
*****

Registered: 2001-01-03
Posts: 6241
Loc: Tigard, OR
Damn.. That is inconsistent.

Kent
_________________________
Utilize these resources:
UDFs (Full List)
KiXtart FAQ & How to's

Top
#114462 - 2004-02-20 04:31 PM Re: KiXStrip - Feedback
Lonkero Administrator Offline
KiX Master Guru
*****

Registered: 2001-06-05
Posts: 22346
Loc: OK
is it really?
the way it does the scan and the way kixtart syntax CAN be written, there is no way kixstrip can be accurate.

there should be strict ruleset proggie that really does worky but indeed, writing such is little exchaustive even for me.
_________________________
!

download KiXnet

Top
#114463 - 2004-02-26 08:42 AM Re: KiXStrip - Feedback
Kdyer Offline
KiX Supporter
*****

Registered: 2001-01-03
Posts: 6241
Loc: Tigard, OR
I was really hoping for a response from MCA on this since he built the app..

Kent
_________________________
Utilize these resources:
UDFs (Full List)
KiXtart FAQ & How to's

Top
#114464 - 2004-10-19 01:54 AM Re: KiXStrip - Feedback
MCA Offline
KiX Supporter
*****

Registered: 2000-04-28
Posts: 5152
Loc: Netherlands, EU
Dear,

Something for our TO-DO list. Later we will return a n enlarge reaction.
greetings.

(our reaction 5100 to the board)
_________________________
email scripting@wanadoo.nl homepage scripting@wanadoo.nl | Links | Summary of Site Site KiXforms FAQ kixtart.org library collection mirror MCA | FAQ & UDF help file UDF kixtart.org library collection mirror MCA | mirror USA | mirror europe UDF scriptlogic library collection UDFs | mirror MCA

Top
#114465 - 2004-10-19 06:43 AM Re: KiXStrip - Feedback
Lonkero Administrator Offline
KiX Master Guru
*****

Registered: 2001-06-05
Posts: 22346
Loc: OK
cool.
not an easy task but nice to hear you ready to check on it.
_________________________
!

download KiXnet

Top
#114466 - 2004-10-19 09:39 PM Re: KiXStrip - Feedback
MCA Offline
KiX Supporter
*****

Registered: 2000-04-28
Posts: 5152
Loc: Netherlands, EU
Dear Jooel,

Indeed we are always trying to keep kixstrip accurate as possible. Some issues are always necessary when nobody is using those capabilities.
Above information shows that some of you are using those 'new' ones.
Possible, that you guys have some short scripts with those things which aren't handled in a correct way in the current releases and which we can use during development the new version. Short scripts can send to me by mail "scripting@wanadoo.nl".
greetings.
_________________________
email scripting@wanadoo.nl homepage scripting@wanadoo.nl | Links | Summary of Site Site KiXforms FAQ kixtart.org library collection mirror MCA | FAQ & UDF help file UDF kixtart.org library collection mirror MCA | mirror USA | mirror europe UDF scriptlogic library collection UDFs | mirror MCA

Top
Page 1 of 1 1


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

Who's Online
1 registered (Allen) and 363 anonymous users online.
Newest Members
Sir_Barrington, batdk82, StuTheCoder, M_Moore, BeeEm
17886 Registered Users

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

Search the board with:
superb Board Search
or try with google:
Google
Web kixtart.org