Android Question Char to Int

Hi,

Can you please let me know how to convert character to int?
CInt doesn't seem to be a valid function.

B4X:
Sub Activity_Create(FirstTime As Boolean)
For x = 0 To 3
  For y = 0 To 3
    Dim button As Button
    button.Initialize("button")
    button.Tag = x & y
  Next
Next

Sub Button_Click
   
    Dim x, y As Int
        Dim xc, yc As Char
        Dim button = Sender
        Dim xyVal = button.Tag
        xc = xyVal.charAt(0)
        xy = xyVal.charAt(1)

        'How to convert xc and xy into Int?
        x = Cint(xc) ' Doesnt work
       ' I basically need x and y int values of the button clicked

End Sub
 
Top