How to write the "|" char in a script

David C. davidocoker at gmail.com
Sat Dec 11 12:27:19 EST 2010


On Sat, Dec 11, 2010 at 11:04 AM, André Bisseret
<andre.bisseret at wanadoo.fr> wrote:
> Bonjour,
>
> In a Pulldown Menu (among others), one can have sub-Items for an item (doing tab in the text of the menu)
> but when ask for it in the message box, it is coded  as something like "Choice 1| sub 1".
>
> I need to write such an item in the script
> ------------
>  switch theItem
> case "Choice 1| sub 1"
> -----------
> While I know how to get / or \ ;-)), I can't find out how to write the vertical bar separator in the script!
> I mean, what is the keyboard touches combination (if there is one!) to get the vertical character?
>
> Thanks for any reply

Hello André,
On my US/Windows based keyboard, the "|" character is a shifted
backslash "\", located just under the backspace key. The Decimal/Ascii
value is 124.

numToChar(124) = |

Hope that helps.


Best regards,
David C.




More information about the use-livecode mailing list