The question is, which chararcter is used, by Xojo, as end of line when defining a list of strings in a constant
Defined a constant as
Name:
Untitled_constant
Default values:
One
Two
Three
The values are entered as a list entering “return” after each name
The open event of a ListBox:
dim c() as string
dim i as Integer
// no one of this works
// c = Split (Untitled_constant, “EndOfLine.UNIX”)
// c = Split (Untitled_constant, “EndOfLine.OSX”)
c = Split (Untitled_constant, “EndOfLine”)
for i = 0 to c.Ubound
LB1.AddRow c(i)
next
The listbox only show the first value. If I define the constant values separates by a “,” (for example) then
c = Split (Untitled_constant, “,”)
All works.