Android Question Error while compiling BA.senderHolder.set(sender)

Munir Mehta

Member
Licensed User
Longtime User
I dont know how to solve this. While trying to make class name item and trying to save this information. i got this compiler error. Any suggestion is appreciated. Thank you in advance

-------------------
Error
-------------------
src\b4a\example\item.java:87: error: cannot find symbol
BA.senderHolder.set(sender);
^
symbol: variable senderHolder
location: class BA
1 error

---------------------------------------------
Class Code
---------------------------------------------


'Class module
Sub Class_Globals
Private name,ingredient,instruction,filename As String

End Sub

'Initializes the object. You can add parameters to this method if needed.
Sub Initialize(local_name As String,local_ingredient As String,local_instruction As String,local_file As String)
name=local_name
ingredient=local_ingredient
instruction=local_instruction
filename=local_file
End Sub

Public Sub getName As String
Return name
End Sub

Public Sub getIngredient As String
Return ingredient
End Sub

Public Sub getInstruction As String
Return instruction
End Sub

Public Sub getfilename As String
Return filename
End Sub


-----------------------------------------------------

'Class module
Sub Class_Globals
Dim name,ingredient,instruction,filename As String

End Sub

'Initializes the object. You can add parameters to this method if needed.
Sub Initialize(local_name As String,local_ingredient As String,local_instruction As String,local_file As String)
name=local_name
ingredient=local_ingredient
instruction=local_instruction
filename=local_file
End Sub
'Class module
Sub Class_Globals
Dim name,ingredient,instruction,filename As String

End Sub

'Initializes the object. You can add parameters to this method if needed.
Sub Initialize(local_name As String,local_ingredient As String,local_instruction As String,local_file As String)
name=local_name
ingredient=local_ingredient
instruction=local_instruction
filename=local_file
End Sub
 

DonManfred

Expert
Licensed User
Longtime User
Please use Code tags when you post code... Or better export your project as zip and upload it
 
Upvote 0
Top