Page 1 of 1
get("MenuCaption", 1410, 1) return -#1215
Posted: 19 Apr 2015 16:30
by binocular222
From UDC #1410 onward, the return is always "-#1215"
Re: get("MenuCaption", 1410, 1) return -#1215
Posted: 19 Apr 2015 17:58
by admin
Thanks. Fix coming.
Re: get("MenuCaption", 1410, 1) return -#1215
Posted: 20 Apr 2015 03:27
by binocular222
Can non-existent return a specific value?
I'm working on a script to list down all assigned KB shortcut:
Code: Select all
$List = "";
$count = 100;
while($count <= 1419) {
$Command = '$ID'.$count;
$ThisItem = get("MenuCaption", $count, 1);
if(gettoken($ThisItem, 2, "<tab>")) {$List = "$List<crlf>|$ThisItem"};
$count++;
}
$List = trim($List,"<crlf>");
$List = replace($List,"<tab>","|");
text $List
Re: get("MenuCaption", 1410, 1) return -#1215
Posted: 20 Apr 2015 08:15
by admin
If you use the new flag 4 non-existent returns "".
Re: get("MenuCaption", 1410, 1) return -#1215
Posted: 20 Apr 2015 08:24
by binocular222
Code: Select all
if(get("MenuCaption", 1500, 4) == "") {echo abc}
Untitled20150420132334.png
Re: get("MenuCaption", 1410, 1) return -#1215
Posted: 20 Apr 2015 09:31
by admin
Oh, sorry, I got it the wrong way round. it should have been:
If you DON'T use the new flag 4 non-existent returns "".