- Jun 6, 2020
- 11,517
- 4,383
Hello,
Can someone explain to me what is wrong with the performance,
Look:
PrefDialog.PrefItems.Set(0, newItem) ?
...
PrefDialog.Initialize(Parent, "Dialog", 300dip, 400dip)
PrefDialog.LoadFromJson(File.ReadString(File.DirAssets, "template.json"))
...
Dim oldItem As String = PrefDialog.PrefItems.Get(0)
Dim newItem As Object = SFX.MidExtract(oldItem,"Title=","]","Duplicate Record")
PrefDialog.PrefItems.Set(0, newItem) ------------------ >>> ERROR
java.lang.ClassCastException:
java.lang.String cannot be cast to b4a.example.preferencesdialog
$_b4xprefitem
Used procedures:
B4X:
Can someone explain to me what is wrong with the performance,
Look:
PrefDialog.PrefItems.Set(0, newItem) ?
...
PrefDialog.Initialize(Parent, "Dialog", 300dip, 400dip)
PrefDialog.LoadFromJson(File.ReadString(File.DirAssets, "template.json"))
...
Dim oldItem As String = PrefDialog.PrefItems.Get(0)
Dim newItem As Object = SFX.MidExtract(oldItem,"Title=","]","Duplicate Record")
PrefDialog.PrefItems.Set(0, newItem) ------------------ >>> ERROR
java.lang.ClassCastException:
java.lang.String cannot be cast to b4a.example.preferencesdialog
$_b4xprefitem
Used procedures:
B4X:
کد:
محتوای بلوک کدها در دسترس شما نیست. برای مشاهده بلوک کدها، وارد انجمن شوید یاثبت نام کنید
برای دیدن لینک ها باید ثبت نام کنید
برای دیدن لینک ها باید ثبت نام کنید