I'm having a problem with this code :
And it's throwing an error at compilation:
Compiling code. Error
Error compiling program.
Error description: Cannot cast type: {Type=String,Rank=0} to: {Type=String,Rank=1}
Occurred on line: 649
Table1.AddRow(NOB,TBTP,PNTP)
Word: nob
I'm using the following code, kindly supplied by Jost aus Soest, to force the integer and the two 1 dimensional arrays to strings, so the table can take them:
What am I missing?
Many thanks
B4X:
Public Sub Display_upDate()
Dim NOB As String
Dim TBTP As String
Dim PNTP As String
NOB = CStr(NumOfBlows)
TBTP = CStr(TotBlows(TestPoint))
PNTP = CStr(Pen(TestPoint))
Table1.AddRow(NOB,TBTP,PNTP)
End Sub
And it's throwing an error at compilation:
Compiling code. Error
Error compiling program.
Error description: Cannot cast type: {Type=String,Rank=0} to: {Type=String,Rank=1}
Occurred on line: 649
Table1.AddRow(NOB,TBTP,PNTP)
Word: nob
I'm using the following code, kindly supplied by Jost aus Soest, to force the integer and the two 1 dimensional arrays to strings, so the table can take them:
B4X:
Sub CStr(i As Int) As String
Return "" & i
End Sub
What am I missing?
Many thanks