by
503 15
0
5
2,322
1
Top 1% !
Popular
Famous
Specified
OpenSource
Popularity: 8195th place

Published on:

No tags for this snippet yet.
Languagebasic+
LicenseMIT_X11

OpenInsight POPUP Function Example With Literal Data

The Popup function (see https://wiki.srpcs.com/display/Commands/Popup+Function) is very flexible but with flexibility comes complexity. This is a code example showing a multi-column Popup with literal data.
Copy Embed Code
<iframe id="embedFrame" style="width:600px; height:300px;"
src="https://www.snip2code.com/Embed/1009058/OpenInsight-POPUP-Function-Example-With-?startLine=0"></iframe>
Click on the embed code to copy it into your clipboard Width Height
Leave empty to retrieve all the content Start End
$Insert POPUP_EQUATES Declare Function Popup PopDisp = '' PopDisp<PCOL$> = -1 PopDisp<PROW$> = -1 PopDisp<PWIDTH$> = -1 PopDisp<PHEIGHT$> = -1 PopDisp<PFILE$> = '' PopDisp<PMODE$> = 'L' PopDisp<PTITLE$> = 'Please choose a line' PopDisp<PTYPE$> = 'E' //Show multi-column list PopDisp<PDISPLAY$> = "One":@SVM:"A is for Apple":@VM:"Two" :@SVM: "B is for Banna":@VM:"Three":@SVM:"C is for Code" PopDisp<9> = 1:@SVM:10:@SVM:'L':@SVM:'L':@SVM:'':@SVM:'Num Col':@VM:2:@SVM:25:@SVM:'L':@SVM:'L':@SVM:'':@SVM:'Phrase' //For simple single column list /* PopDisp<PDISPLAY$> = "One":@VM:"Two":@VM:"Three" PopDisp<PFORMAT$> = 1:@SVM:10:@SVM:'L':@SVM:'L':@SVM:'':@SVM:'Num Col' */ Resp = Popup(@WINDOW, PopDisp)
If you want to be updated about similar snippets, Sign in and follow our Channels

blog comments powered by Disqus