Hi guys
I added FormLib, intialized it and then went of to change some props of text of some controls...no deal
This line example uses the Control(controlname) syntax, as I was hoping to add all needed objects in runtime
This sets inside a for next loop, and was intended to align the text of the created Labels, inside this same loop
I've tried the classical way of naming the object etc, but same result, so I don't think this is a coding error (?).
I always get a "parameter missing" error
EDIT:This works!
But would mean that I had to multiply it by 7 labels, instead of the 3 code lines
This is the complete loop, wee did I go wrong?
EDIT Solved, as usual, the simplest solution to any problem is just to keep it simple
I added FormLib, intialized it and then went of to change some props of text of some controls...no deal
B4X:
Formlib("FL").TextAlignment(Label("Day"&a),Formlib("FL").alCenter)
This sets inside a for next loop, and was intended to align the text of the created Labels, inside this same loop
I've tried the classical way of naming the object etc, but same result, so I don't think this is a coding error (?).
I always get a "parameter missing" error
B4X:
For a = 0 To 6
AddLabel("Main.Panel1","Day"&a,1+(25*a),1,24,13,ShortDayName(a))
Label("Day"&a).FontSize=7
FL.TextAlignment(Label("Day"&a),FL.alLeft)
'Formlib("FL").TextAlignment(Label("Day"&a),Formlib("FL").alCenter)
Next
B4X:
FL.TextAlignment("Day3",FL.alCenter)
This is the complete loop, wee did I go wrong?
EDIT Solved, as usual, the simplest solution to any problem is just to keep it simple
B4X:
FL.TextAlignment("Day"&a,FL.alCenter)
Last edited: