tufanv Expert Licensed User Longtime User Sep 22, 2016 #1 Hello I generally load actionsheet items with : B4X: sheet.Initialize("sheet", "", "Cancel", "", Array(sheetlist2.Get(0),sheetlist2.Get(1),sheetlist2.Get(2),sheetlist2.Get(3))) Now i have to add around 40 items and i dont want to write them one by one in initialize. Is there a better way to add all the items in a list to actionsheet ? TY
Hello I generally load actionsheet items with : B4X: sheet.Initialize("sheet", "", "Cancel", "", Array(sheetlist2.Get(0),sheetlist2.Get(1),sheetlist2.Get(2),sheetlist2.Get(3))) Now i have to add around 40 items and i dont want to write them one by one in initialize. Is there a better way to add all the items in a list to actionsheet ? TY
Erel B4X founder Staff member Licensed User Longtime User Sep 22, 2016 #2 Why are you expanding the array? B4X: sheet.Initialize("sheet", "", "Cancel", sheetlist) Upvote 0
tufanv Expert Licensed User Longtime User Sep 22, 2016 #3 Erel said: Why are you expanding the array? B4X: sheet.Initialize("sheet", "", "Cancel", sheetlist) Click to expand... I don't know I always used the same example code snippet so never think of using the list itself =) Upvote 0
Erel said: Why are you expanding the array? B4X: sheet.Initialize("sheet", "", "Cancel", sheetlist) Click to expand... I don't know I always used the same example code snippet so never think of using the list itself =)