I created a custom Textfield with a Text-Array “mErrors”. After validating, i wanna show a Messagebox with all Errors. Because of the main Text Property of Textfield the following Code is not working. How to fix ist?
[code]Dim mErrors() As Text = Array(“First Error”, “Second Error”)
Dim mOutput As Text = Text.Join(mErrors, EndOfLine.Operator_Convert.ToText)
I already encountered last week an issue with EndOfLIne, which appears not to be a string, but to be a class. So ToText does not work.
I think it is necessary to go through an intermediate string, such as :
Dim endof as string = EndOfLine
dim EOL as Text = endof.ToText
Dim mErrors() As Text = Array("First Error", "Second Error")
Dim mOutput As Text = Text.Join(mErrors, EOL)
You are right, the compiler does think Text is the string property.
I would try creating the class on a ContainerControl so the confusion could not happen, since TextArea would be just a control, and the code would be attached to the ContainerControl.