B4J Question TextCanged no works

Domingo

Member
Licensed User
Longtime User
Hello

When I make an text area using JavaFX Scene Builder the Sub name_textchanged(old as string, new as string) works fine.
But if I use mainform.Root.AddNode for built it this Sub not works


For i=1 To 24
txtCampo(i).Initialize ("txtCampo(i)")
txtCampo(i).Text="Hola " & i
MainForm.RootPane.AddNode(txtCampo(i),700,250+20*i+20,350,25)
Next


Sub txtCampo_textchanged(old as string, new as string)
msgbox.show("Hello world","hello")
End Sub

I tryed with sender, but I cannot do it.

Can you help me?

Thanks
 

stevel05

Expert
Licensed User
Longtime User
Try changing the initialize line from:

B4X:
txtCampo(i).Initialize ("txtCampo(i)")

to

B4X:
txtCampo(i).Initialize ("txtCampo")
 
Upvote 0

Theera

Well-Known Member
Licensed User
Longtime User
Where is the post#2(Steve05's solution)?
 
Upvote 0
Top