Problem with SecondProgram example

mrjaw

Active Member
Licensed User
Longtime User
Hi!
I am trying to do a example SecondProgram, but when I try to do it doesnt work.
<code>
Sub Process_Globals
'These global variables will be declared once when the application starts.
'These variables can be accessed from all modules.

End Sub

Sub Globals
Dim lbl1 As Label
End Sub

Sub Activity_Create(FirstTime As Boolean)
Activity.LoadLayout("main")
End Sub

Sub Activity_Resume
End Sub

Sub Activity_Pause (UserClosed As Boolean)
End Sub

Sub btnClick_Click
Dim Send As Button

Send = Sender

lbl1.Text= lbl1.Text & Send.Tag
Msgbox(Send.Tag,"Aviso2")
End Sub
</code>

I have 3 buttons like example SecondProgram, and i try to take the number has the button like tag.

The problem is that can not get the number because Send.Tag doesnt return anything.

I have 3 buttons and trying to get the numbers to a label like the example.

Any cluees ?
 

mrjaw

Active Member
Licensed User
Longtime User
Hey... Thks!!!! That was my error..!! This error was me crazy:BangHead:
I am newbie with this and this is so different of B4Windows.

Thks for this great support..!!
 
Upvote 0
Top