Hi to all
This is the Sub
java.lang.RuntimeException: Object should first be initialized (Font).
Thanks
This is the Sub
B4X:
Sub LoadFonts(n As Node)
Dim cbox As ComboBox = n
Dim l As List
l.Initialize
l = File.ListFiles(File.DirApp & "\Fonts\")
If l.Size = 0 Then Return
For i = 0 To l.Size -1
Dim lb As Label
lb.Initialize("")
lb.Font = fx.LoadFont(File.DirApp & "\Fonts", l.Get(i), 14) '<--- Error
Dim s As String = l.Get(i)
lb.Text = s.SubString2(0, s.LastIndexOf("."))
cbox.Items.Add(lb)
Next
End Sub
java.lang.RuntimeException: Object should first be initialized (Font).
Thanks