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))
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.
"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.
2. Can ListView support a multi-line string? I have tried to cat two lines with "&" but both lines print out as a single string
Yes, no problem!1. Does ListView support PNG images? I get an error when trying to load them
Usually to force a new text line we should use CRLF, The ampersand "&" only concatenates the strings.
Here is a small example
PHP:Sub Globals Database=AppPath & "\Northwind.sl3" SortAscending=True End Sub Sub App_Start Form1.Show lv.New1("Form1",0,0,Form1.Width , Form1.Height) lv.FullRowSelect=True lv.SetRowColor(cBeige,cSilver) LoadSQL End Sub Sub LoadSQL lv.Clear ' ' lv.loadSQL(Database,"Categories", "", True) lv.loadSQL(Database,"Products", "", True) End Sub Sub lv_ColumnClick SortAscending=Not(SortAscending) lv.SortColumn(lv.SelectedColumn,SortAscending) End Sub
Select * FROM Northwind WHERE Description LIKE "%bread%"
End Select
Hallo JOTHA,
hier ein klein Beispiel.
Ciao,
Filippo
We use cookies and similar technologies for the following purposes:
Do you accept cookies and these technologies?
We use cookies and similar technologies for the following purposes:
Do you accept cookies and these technologies?