Android Question B4A - compile and run error

Robert Valentino

Well-Known Member
Licensed User
Longtime User
I keep getting this error when I do a compile and run (in either release or debug mode).

Just doing a compile everything is fine.

The code in question seems to be:

B4X:
'Code module
'Subs in this code module will be accessible from all modules.
Sub Process_Globals
    Type  TTeeNameColors(TeeID As Int, TeeName As String, FGColor As Int, BGColor As Int)

    Dim mTeeNameColors() As TTeeNameColors  = Array As TTeeNameColors(MakeTeeNameColors(0, "Select Tee" ,  Colors.RGB(0, 0, 0),  Colors.RGB(255, 255, 255)), _
                                                                      MakeTeeNameColors(1, "Black"     ,  Colors.RGB(255, 255, 255),  Colors.RGB(0, 0, 0)))																	  
End Sub


Sub MakeTeeNameColors(TeeID As Int, TeeName As String, FGColor As Int, BGColor As Int) As TTeeNameColors
    Dim TNC As TTeeNameColors

    TNC.Initialize
    TNC.TeeID     = TeeID
    TNC.TeeName   = TeeName
    TNC.FGColor   = FGColor
    TNC.BGColor   = BGColor
 
    Return TNC
End Sub

[ATTACH]25246[/ATTACH]
[ATTACH]25245[/ATTACH] 


Thanks BobVal
View attachment 25245
 

Attachments

  • B4A-Debug.png
    B4A-Debug.png
    30.3 KB · Views: 149
  • B4A-Release.png
    B4A-Release.png
    18.8 KB · Views: 138
Last edited:
Top