Text Box L Directive




You can turn a standard text box control into a Xbasic Code Editor using the %L% formatting code. You should define column and row dimensions for the text box that are large enough to display a reasonable size code editor.

Code = ""
Result = ui_dlg_box("Script",<<%dlg%
Type in some Xbasic code, then click OK to execute the code.;
<*15&OK> <15&Cancel>;
if result = "&OK" then
end if  

This script produces this dialog:


See Also