My compiled app complains:
On device: InvalidCastException
On PC:
It is running when not compiled.
the Code:
B4X:
Sub put_to_file
For i = 1 To 4
If Control("F3TB" & i& "G").visible = True Then
FileWrite(c1,Control("F3TL" & i).text&"; "&Control("F3TB" & i & "M").text)
End If
Next
End Sub
Which version of Basic4ppc are you using?
Are you compiling with the optimized compiler?
Does it also happen on the desktop (when compiled for the desktop)?
Please download the attached file, unzip it and copy CEnhancedLabel.cs to the Tzor folder which is usually located under:
C:\Program Files\Anywhere Software\Basic4ppc Desktop\Tzor