InvalidCastException

Dataverde

Member
Licensed User
Longtime User
Hey guys,

My compiled app complains:
On device: InvalidCastException

On PC:
attachment.php


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

Can anyone help, please?

Greetings,
Lennart
 

Dataverde

Member
Licensed User
Longtime User
damn missed the file open in the error example application.

it works fine on my system when not compiled but that code compiled gives me an error like the one in the first post
 

Dataverde

Member
Licensed User
Longtime User
V.6.80
it happens when compiled for Windows and when comiled for Device.
booth device and desktop versions dont work
i use optimized compiling
 
Top