No, you cannot bring a reference to a control into Basic4ppc as anything brought in ends up as a String. You have to keep the reference external in a library.I can use this line like this?
B4X:LIstView_CtrlRef=Obj1.FromLibrary("Main.ListViewObjectName", "_LV", B4pObject(2))
B4X:
Obj1.Value = Obj1.FromLibrary("Main.ListViewObjectName", "_LV", B4pObject(2))
"cmd.ExecuteTable(ListView.ControlRef,0)" ExecuteTable expects a reference to a DataGrid control or one derived from it like a Basic4ppc Table. As ListView is not derived from a DataGrid this wouldn't work.
I'm not sure what you are trying to achieve - can you explain a bit more?