list

  1. M

    Bug? List.IndexOf not working as supposed to do

    Hi everyone, why this simple line of code, is not working? I don't understand what could be the problem.. seems so straight forward... That sub simply loads two lists with numbers, then i want to see if the contents are different, so as soon as IndexOf returns -1 i proceed with the rest of the...
  2. dotdre2

    Android Question B4a Get label from listview

    Hi, How I can get label name from my list ? example: Dim list As ListView Sub createLine list.AddSingleLine2("label","value") EndSub Sub getLabel 'And How I can get "label" from this list ???' EndSub
  3. A

    iOS Question Problem with CLV

    Hi all. I have a problem with CLV. In my app I have a list of messages grouped by sender and it shows only subj of each message. This list in webview. On click I select a message ID and based on this ID I open messagedetails screen where I select from my database all the messages linked to the...
  4. Hadi57

    Android Question how to get a List from Map after write and read the map.

    Probably a beginner problem. but i can't get a list in map after Write it and Read again. i get this error message: java.lang.ClassCastException: java.lang.String cannot be cast to java.util.List Dim mapSetting As Map mapSetting.Initialize Dim List1 As List...
  5. A

    Android Question Sort a List of Type with multiple criterias [SOLVED]

    Hello All, I'm looking to sort a List of Type with multiple criterias. As far as I understand, List.SortType(), is capable to sort only one criteria. So, how to do such kind of multiple sort? Example (expected behavior) Type(Val1 as String, Val2 as String, Val3 as Int) all type values are...
  6. M

    Android Question Hand Draw on Google Maps

    Hi everyone, i never done something like this, so i ask to understand if this is possibile. I need to draw an area on a Map (google maps): It's possibile to draw directly moving the finger on the screen and "convert" this spline in a list of point to give to google maps? I know that this isn't...
  7. Programing Center

    Android Question Randomize the list

    Hi, i have a List and i want to Randomize my List For example my List content is : Dim listview As ListView Dim list As List list.Initialize list.Add("Banana") list.Add("home") list.Add("car") list.Add("cat") list.Add("B4a") For i = 0 To list.Size -1 listview.AddSingleLine(list.Get(i))...
  8. Mrphone

    Android Question Search the list

    Hello everyone :D I have a text (.txt) file that I will convert to a list using the following command šŸ‘‡ Dim data as list data.Initialize data = File.ReadList(File.DirAssets,"Number.txt") How can I search in this list ??! And put the result back on the list
  9. saeed10051

    B4J Question How to populate Tableview with a json string

    I am running jokhttputils2 and json parser to get a json string from an online database. I have a Tableview on my java app which i want to populate with the data received in the json string. I am running following code for that Sub loadlistview Dim Table As List Dim p As JSONParser Dim res As...
  10. Humberto

    Share My Creation Hands Free Notes a To Do List with Voice Commands

    Hand Free Notes (HFN) is a To Do List program where you can write down your thoughts, tasks to do, supermarket list in an organized and practical way. Our great advantage is that you can do all of this through voice commands. So you're in your car and you remember to do something, you have a...
  11. saeed10051

    Android Question initialize error for list

    Hi, i am declaring a list in Process sub global and initializing it in Sub Activity_Create(FirstTime As Boolean) List1.Initialize List1.AddAll(Array As Int(1, 2, 3, 4, 5,6,7,8,9,10)) if i run following code in activity create, it runs fine For i = 0 To 9 Log(List1.Get(i)) Next however if i...
  12. M

    iOS Question Custom Items in NavigationBar

    Hi everyone, I wish to do an nicer app by using some custom UI elements. It's possibile to achieve this type of result? (specifically che horizontal list in the navigation bar) Thanks in advance :D
  13. aeric

    Share My Creation Todo List (source code)

    todo-B4A Made with ā¤ in B4X Source code: https://github.com/pyhoon/todo-b4a YouTube tutorial: For B4i: https://www.b4x.com/android/forum/threads/todo-list-source-code.117223/ Update on 13 Aug 2021: Uploaded to Play store to test new App Bundle...
  14. 3

    Italian lista di scelte

    Ho un' app che avevo sviluppato con Basic4A versione 3.20 adesso la sto passando alla versione 9. Alcune cose non mi funzionano piĆ¹, per esempio io facevo questo: sembrerebbe che x.InputList1 non esista in questa versione Dim r As List r.Initialize r.AddAll(Array As...
  15. DALB

    Android Question Is a list able to keep panels properties ?

    Hello eveyone. Technical question about "what can a list do ?" Is a list able to store panels like this : list.add(panel(i)) if yes, are all the properties of each panel stored in the list enabled or not ? I ask this to know if I can call any panel with it all properties in my code from the...
  16. Daniel44

    Android Question (SOLVED)List Can't be used in a BXTable

    Helo everyone! I have a Standart Class Called Productos like this: Public Sub SelectAll(Filtro As String) As List Dim Cursor As Cursor Dim Data As List Data.Initialize() Cursor = Connection.mySQL.ExecQuery2("SELECT * FROM productos WHERE NombreProd LIKE ?", Array As...
  17. LucaMs

    Other List of types

    If you fill a List with custom types objects, you can sort it based on any field that makes up your custom type. I wonder: 1) if this type of collection exists in java or it is a b4x implementation; 2) if it were the second case of the previous point, perhaps it would be possible: - 2a)...
  18. carlos7000

    Android Question Create a linked list as in C++ [solved]

    Hi. It is possible to create a linked list as in C ++. And perform search operations, insertion removal, etc. I need it to keep the last 20 items entered. Thanks
  19. Star-Dust

    B4J Library [B4X] [XUI] SD_TreeList

    SD_TreeList Author: Star-Dust Version: 0.27 B4XTree Events: Click (IDLeaf As String, LeafName As String) ClickBranch (ID As String, Expanded As Boolean) LongRightClick (IDLeaf As String, LeafName As String) LongRightClickBranch (ID As String, BranchName As String) Fields...
  20. Star-Dust

    B4A Library [B4X] [XUI] SD_TreeList

    Download a Library from Here SD_TreeList Author: Star-Dust Version: 0.27 B4XTree Events: Click (IDLeaf As String, LeafName As String) ClickBranch (ID As String, Expanded As Boolean) LongRightClick (IDLeaf As String, LeafName As String) LongRightClickBranch (ID As String, BranchName As...
Top