HI, All
If i have such custom type:
Saving the array into is OK, but how to read and assign correctly ?
If i have such custom type:
B4X:
Type FTPEntry2(Name As String, Timestamp As Long, Size As Long, FTP_path As String, LocalPath As String, status As String) 'writable file info structure (FTP FTPEntry structure is read-only)
Public FTPfiles() As FTPEntry2 'current FTP files info to compare
Private PrevFiles() As FTPEntry2
Private kvs As KeyValueStore 'v.2.30
Saving the array into is OK, but how to read and assign correctly ?
B4X:
Dim obj As Object = kvs.Get("ftp_entries") 'it's working OK, but ...
PrevFiles = obj 'but here the error:
java.lang.IllegalArgumentException: field b4a.example.aftclient.aftpclient._prevfiles has type b4a.example.aftclient.aftpclient$_ftpentry2[], got java.lang.Object[]
Last edited: