Project

General

Profile

Didtok » History » Version 2

Per Amundsen, 02/09/2014 06:48 PM

1 1 Per Amundsen
*/didtok <name> <id> <c> <text>*
2
3
Tokenizes a string by character c, then adds the result to a dialog list/combo/edit box.
4
5
*Parameters*
6
7
<name> - Name of the dialog.
8
<id> - Id of the dialog control.
9
<c> - Ascii character to tokenize by.
10
<text> - Text to tokenize.
11
12
*Example*
13
14
<pre>
15 2 Per Amundsen
;Dialog table layout.
16 1 Per Amundsen
dialog colors {
17
  size -1 -1 100 200
18
  list 1, 10 10 80 180
19
}
20 2 Per Amundsen
21
;Run the dialog.
22
/dialog -m colors colors
23
24
;Tokenize the string "red blue orange yellow" by whitespace and insert result into the list control.
25
/didtok colors 1 32 red blue orange yellow
26 1 Per Amundsen
</pre>