I am trying to implement KMatle's code in which several EditTexts on a scrollview panel can return their values as controlled by a JSON string.
This returns the following error message:
B4A Version: 9.50
Java Version: 8
Parsing code. (0.26s)
Building folders structure. (0.08s)
Compiling code. Error
Error compiling program.
Error description: Unknown member: panel
Error occurred on line: 99
For i=0 To sv.Panel.NumberOfViews-1 Step 2
Word: panel
I have attached a zipped file of the entire project (so far). Any help is greatly appreciated.
B4X:
Sub Button1_Click
JSONMap.Initialize
For i=0 To sv.Panel.NumberOfViews-1 Step 2
If sv.Panel.GetView(i) Is Label Then
lbl=sv.Panel.GetView(i)
Log(lbl.Text)
End If
If sv.Panel.GetView(i+1) Is EditText Then
et=sv.Panel.GetView(i+1)
Log("ET:"&et.Text)
End If
JSONMap.Put(lbl.Text,et.Text)
Next
JSONGenerator.Initialize(JSONMap)
Jsonstring=JSONGenerator.ToString
raf.Initialize(MyPath, MyFileName&".fil", False)
raf.WriteEncryptedObject(Jsonstring, "Password", raf.CurrentPosition)
raf.Close
End Sub
This returns the following error message:
B4A Version: 9.50
Java Version: 8
Parsing code. (0.26s)
Building folders structure. (0.08s)
Compiling code. Error
Error compiling program.
Error description: Unknown member: panel
Error occurred on line: 99
For i=0 To sv.Panel.NumberOfViews-1 Step 2
Word: panel
I have attached a zipped file of the entire project (so far). Any help is greatly appreciated.