Hello,
I am getting an error when I compile code. The same code is working in the FileDialog example I uploaded a few days ago. From what I can tell it seems to think Activity is a string. I have tried moving things, retyping, and many other things. It always comes back to this error. Any ideas?
This is the code that generates the error. Line 168 is:
p = FDlg.Initialize(Activity, 45dip)
Thanks,
Barry.
I am getting an error when I compile code. The same code is working in the FileDialog example I uploaded a few days ago. From what I can tell it seems to think Activity is a string. I have tried moving things, retyping, and many other things. It always comes back to this error. Any ideas?
B4X:
Compiling code. 0.04
Compiling layouts code. 0.00
Generating R file. 0.01
Compiling generated Java code. Error
B4A line: 168
p = FDlg.Initialize(Activity, 45dip)
javac 1.6.0_25
src\canalrun\apps\pwf\main.java:782: inconvertible types
found : java.lang.String
required: android.view.ViewGroup
_p.setObject((android.view.ViewGroup)(mostCurrent._fdlg._initialize(mostCurrent.activityBA,mostCurrent._activity,anywheresoftware.b4a.keywords.Common.DipToCurrent((int)(45)))));
^
This is the code that generates the error. Line 168 is:
p = FDlg.Initialize(Activity, 45dip)
B4X:
Sub tmrInit_Tick
Dim i As Int
Dim p As Panel
tmrInit.Enabled = False
p = FDlg.Initialize(Activity, 45dip)
p = PMnu.Initialize(Activity)
' FDlg.Show("", "FD_click")
End Sub
Thanks,
Barry.