Checked on build 14407, 10-05-2026.
Question. A STRING drop list is LIST,USE(Var),DROP(10),FROM('ALL|#ALL|None|#NA|...'). Where does the U go for a USTRING one, in front of each entry?
Answer. One U, in front of the whole string. The FROM literal is one string with | separators, and U'...' makes that one string wide, entries and # alternate values included:
Glo:BatchSource USTRING(20)
W WINDOW('USTRING drop list'),AT(,,300,110),SYSTEM,GRAY,FONT('Segoe UI',9)
LIST,AT(70,8,120,11),USE(Glo:BatchSource),LEFT(2),DROP(10), |
FROM(U'ALL|#ALL|None|#NA|Disbursements|#AP|Payroll|#PR|Receipts|#AR|Transfers|#AT|Other|#Oth|Ελληνικά|#EL|中文|#ZH'), |
MSG('Batch Source selection option'),TIP('Select a Source option from this droplist.')
END
Three things to know.
- A FROM continued over several lines with
&needsUon every piece. A plain'...'piece is converted through the ANSI codepage before the pieces are joined, and its non-ANSI characters are lost there:FROM(U'ALL|#ALL|None|#NA|Disbursements|#AP|Payroll|#PR|' & | U'Receipts|#AR|Transfers|#AT|Other|#Oth|Ελληνικά|#EL|中文|#ZH') - At run time:
?Glo:BatchSource{PROP:From} = ListTextwith a USTRING variable, or aU'...'literal on the right. A variable is never a declared FROM source, in any type (FROM takes a QUEUE, a QUEUE field or a constant string); the run-time form is the way to feed a list from a variable. - The non-ANSI characters are typed as they are when the source file is saved as UTF-8 (the IDE offers it at save; a UTF-8 file with a BOM is picked up automatically), or spelled as code points inside the literal:
U'<3A9h>'is Ω.
The USE variable receives what it always did: the alternate value when one is given (EL for the Greek entry), otherwise the entry text. The same applies to COMBO and SPIN.
Help (the topic titles and index words that find it in the Help file): FROM (set listbox data source), Unicode paragraph; Which screen controls carry Unicode? Index: “drop list > Unicode”, “FROM(U’…')”.