Thank's to Erel's EXCELLENT video on dynamic control's I got a number of Togglebuttons in a pane and I can catch each button state and read values from typed data . When creating the buttons a value is saved in the MS_no variable for identifying each button (1,2,3..to number of buttons).
What I need to do is to set values for some other params saved in the Tag property to a SPECIFIC button after it's been created but how do I get the index from the button I wan't to set a value for ?
Eg. 'find MLS_no where value = ?' (and then set values for other variables)
I've tried a number of approaches but I don't really understand how to extract a specific value from a specific field from my
Type buttondata(MLS_varname as String,MLS_location As String,code As String,MLS_no As Int)
Any Help appreciated