Accessing user defined types values

francoisg

Active Member
Licensed User
Longtime User
Hi All,

Please bare with me as I am noob.

I am trying to get the data assigned to my own custom type.
I have defined th data type as follows
B4X:
Type testName(Name As String, doc_ID As String)

'''''In my main class this is how I populate the info into the DT.

Dim data As testName
   data.Name = "test data here"
   data.DOC_ID = someNum
         
   myButton.Tag = data

'''''''''''''''''''''''''''''''''''''''''''

I want to get the value inside from myButton.DOC_ID
Any ideas?

Francois
 
Top