rbo not firing

oldeast

Active Member
Licensed User
Longtime User
Hi all, I have 4 panels each with 5 rbos.
For each rbo in a panel I have set the same event name.
The first panel works fine, the rest don't fire..any suggestions please.

i.e. Historic works, Aesthetic and the rest don't, must be something dumb I :sign0104: am not doing correctly, but I can't trap the error.
(Other than this ..its great, been trying the designer UI Cloud which is fast and a great tool.)

Sub Historic_CheckedChange(Checked As Boolean)
If Checked=True Then
rbo=Sender
edtHistoric.text=rbo.Tag
His=edtHistoric.Text
'update cultvalue total
lblCultValue.text=Utils.GetCval
End If
End Sub

Sub Aesthetic_CheckChanged(Checked As Boolean)
If Checked=True Then
rbo=Sender
edtAesthetic.text=rbo.Tag
Aes=edtAesthetic.text
lblCultValue.text=Utils.GetCval
End If
End Sub

Sub Scientific_CheckChanged(Checked As Boolean)
If Checked=True Then
rbo=Sender
edtScientific.text=rbo.Tag
Sci=edtAesthetic.text
lblCultValue.text=Utils.GetCval
End If
End Sub

etc TIA
 

klaus

Expert
Licensed User
Longtime User
It would be much easier if you posted your project as a zip file (IDE menu File / Export As Zip) so we could test it in the same condition as you do.
Following commaent after a first look at your code:
- In the CheckedChange routines you must Dim rbo As RadioButton in each routine.
- in the Sub Scientific_CheckChanged routine shouldn't Sci = edtAesthetic.Text be Sci = edtScientific.Text.
- in all routines this line blCultValue.text=Utils.GetCval is the same ?

But without the rest of the code it's difficult to help.

Best regards.
 
Upvote 0

oldeast

Active Member
Licensed User
Longtime User
problem loading layouts

Thanks Klaus,
have changed rbo from global to local variable and fixed code error.
The utils.cval is called after each change to update a total which is displayed to the user.
Unfortunately, after downloading the latest release the program has 'null pointer' when loading some layouts, whereas some are loaded OK. I tried reinstalling, and looked at a recent backup which exhibits the same error, so I don't know where to start looking to fix it.
I have attached a zip file..when I exported it was too big so I've deleted the files in the objects folder then I retested and it did compile, hope that's OK:D
regards
G
 

Attachments

  • SigGen.zip
    60.9 KB · Views: 260
Upvote 0

klaus

Expert
Licensed User
Longtime User
Here you are, attached a modified version.
I moved SQL1.Initialize out of FirstTime in the Activity_Create routine in Main module.
I don't know why the RadioButton events didn't fire the code looked OK.
I declared new event routines, copied the code from the old ones and removed the old Sub declarations and it works.

Best regards.
 

Attachments

  • SigGen_1.zip
    50.8 KB · Views: 202
Upvote 0

oldeast

Active Member
Licensed User
Longtime User
Thanks very much..

Hi Klaus,
well it still had the same problem, so I again reinstalled which has fixed it.
Thanks again for your assistance, I have a way to go, but with such great help and responsiveness it certainly makes development a pleasure.
:sign0142:
G.
 
Upvote 0
Top