Page 2 of 2 <12
Topic Options
#166909 - 2006-09-06 04:36 PM Re: KiX 4.53 RC1, MessageBox: Error Code = Return Value
Witto Offline
MM club member
*****

Registered: 2004-09-29
Posts: 1828
Loc: Belgium
Jooel,
Get works as described in the manual.
Richard just referred to the fact that Get handles p.e. function keys with error codes. That is why I just suggested that these *return* values could be put in the Return Value. I did not say it is a must.

I do not get the suggestion about the @RESULT macro
Code:

Dim $SO
Get $SO
? "Key: " + $SO
? "Error " + @ERROR + ": " + @SERROR
? "Result: " + @RESULT
? "KiX: " + @KIX


When pressing F1 I get
Code:

Key:
Error 59: Er is een onverwachte netwerkfout opgetreden.
Result:
KiX: 4.53 Release Candidate 1


Top
#166910 - 2006-09-06 04:39 PM Re: KiX 4.53 RC1, MessageBox: Error Code = Return Value
Lonkero Administrator Offline
KiX Master Guru
*****

Registered: 2001-06-05
Posts: 22346
Loc: OK
the suggestion was that instead of using incorrectly the error macro, result macro should be used for the function keys.

that is, ruud should change the manual and kixtart to use it.
for backwards compatibility setting the error could be left there.


Edited by Jooel (2006-09-06 04:58 PM)

Top
#166911 - 2006-09-06 05:01 PM Re: KiX 4.53 RC1, MessageBox: Error Code = Return Value
Witto Offline
MM club member
*****

Registered: 2004-09-29
Posts: 1828
Loc: Belgium
Jooel,
I have been reading through the manual and have been searching this board. I am sorry to tell I do not get your suggestion about @RESULT.
Could you give a little script that shows how @RESULT resolves F1?
How can I catch and evaluate the Return Value the F1 key will give me with @RESULT?
Thanks,

Top
#166912 - 2006-09-06 05:02 PM Re: KiX 4.53 RC1, MessageBox: Error Code = Return Value
Witto Offline
MM club member
*****

Registered: 2004-09-29
Posts: 1828
Loc: Belgium
Oh, you edited your reply. Do I have to understand you made a suggestion about how it could be?

Edited by Witto (2006-09-06 05:05 PM)

Top
#166913 - 2006-09-06 05:07 PM Re: KiX 4.53 RC1, MessageBox: Error Code = Return Value
Witto Offline
MM club member
*****

Registered: 2004-09-29
Posts: 1828
Loc: Belgium
What about the suggestion returning an array in advanced mode?
Code:

Get $SO /A


A keystroke can return
- Key
- KeyCode
- Ascii value
all in different dimension

Top
#166914 - 2006-09-06 05:14 PM Re: KiX 4.53 RC1, MessageBox: Error Code = Return Value
Lonkero Administrator Offline
KiX Master Guru
*****

Registered: 2001-06-05
Posts: 22346
Loc: OK
returning array would break all current scripts using get.
can't even consider that.

and yes, my post about result macro was a suggestion...
and I did edit it before you posted your reply


Edited by Jooel (2006-09-06 05:18 PM)

Top
#166915 - 2006-09-06 05:19 PM Re: KiX 4.53 RC1, MessageBox: Error Code = Return Value
Witto Offline
MM club member
*****

Registered: 2004-09-29
Posts: 1828
Loc: Belgium
An array would only be returned if using /A as optional switch.
Top
#166916 - 2006-09-06 05:25 PM Re: KiX 4.53 RC1, MessageBox: Error Code = Return Value
Lonkero Administrator Offline
KiX Master Guru
*****

Registered: 2001-06-05
Posts: 22346
Loc: OK
k...
so, what's different with ascii value and keycode?

Top
#166917 - 2006-09-06 05:35 PM Re: KiX 4.53 RC1, MessageBox: Error Code = Return Value
Witto Offline
MM club member
*****

Registered: 2004-09-29
Posts: 1828
Loc: Belgium
I was just thinking about what someone would want to verify
  • Key, just as now, press "a" and catch "a", Press {TAB} and catch Chr(9)
  • KeyCode, My A is next to the TAB-key, where most probably your Q is. Press it evt. with Shift, Ctrl or Alt and we should get the same value
  • Ascii, maybe redundant, Key maybe does the trick, p.e. the enter key would return "13"

Top
#166918 - 2006-09-06 05:56 PM Re: KiX 4.53 RC1, MessageBox: Error Code = Return Value
Les Offline
KiX Master
*****

Registered: 2001-06-11
Posts: 12734
Loc: fortfrances.on.ca
OOps... NM.. wrong forum.

Edited by Les (2006-09-06 05:59 PM)

Top
Page 2 of 2 <12


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

Who's Online
1 registered (mole) and 405 anonymous users online.
Newest Members
Timothy, Jojo67, MaikSimon, kvn317, kixtarts2025
17874 Registered Users

Generated in 0.065 seconds in which 0.025 seconds were spent on a total of 13 queries. Zlib compression enabled.

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