Contents Previous Next Subchapters

Surrounding Text in Quotes
Syntax dquote(text)
See Also autoexec , and call back

Description
Returns a copy of the character row vector text that is surrounded by the " character. The return value is a character row vector with two more elements that text.

Example
This function is useful for forming call back commands. If you enter
     cmd = dquote("My Caption")
     cmd
O-Matrix will respond
     "My Caption"
If you continue by entering
     cmd = ["delwin(", cmd, ")"]
     cmd
O-Matrix will respond
     delwin("My Caption")
If you continue by entering
     adddialog("My Caption", [100, 100, 200, 100], cmd)
O-Matrix will display an empty dialog window. If you then choose the "Close" option from the dialog's menu, the command specified by cmd will execute and the dialog will be deleted. In addition the text
     T
will echo in the command window because it is the return value of the delwin function when the window deletion is successful.