Quote:
Originally Posted by Cableguy
I can use this line like this?
Code:
LIstView_CtrlRef=Obj1.FromLibrary("Main.ListViewObjectName", "_LV", B4pObject(2))
|
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.
Code:
Obj1.Value = Obj1.FromLibrary("Main.ListViewObjectName", "_LV", B4pObject(2))
"BaseDados.Load_Tecnicos(ListView.controlRef)" You can't do this either for the same reason. You can only pass a control reference inside Basic4ppc where the name of a Form or control is explicitly expected so Basic4ppc knows what to do with it. Usually this is to pass it to a library as a parameter like passing FormEx.ControlRef to FormLib.ChangeParent.
"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?