Sender - tag does not exist

Shay

Well-Known Member
Licensed User
Longtime User
Hi

I have the following code:

Sub View_Click
Dim Send As View
Dim Row As Int

Send=Sender
Row=Floor(Send.Tag/10)

but sometimes tag does not exist
(if I check Sender. parameters there is not tag inside)
how do I check if ".tag" exist before running the Send.Tag/10

Thanks
 

jkurant

Member
Licensed User
Longtime User
Yes, I do have a Panel with the PanelReminder EventName. I even tried p.GetView(0).Tag instead of p.Tag in the click event. Apparently, I don't "get" something and I think you know what it is! Please advise :)
 
Upvote 0

klaus

Expert
Licensed User
Longtime User
In the layout file you should only have the views you want to add to the panel.
No panel in the layout file ! Then it should work.
As you already have a Panel with the same event name you have one instance too much.
In general it would be much easier for us to help you if you posted your project as a zip file. So we could see what you have done and how. And also test changes.

Best regards.
 
Last edited:
Upvote 0
Top