J jchal Active Member Licensed User Longtime User Jul 22, 2017 #1 i have this Code: Copy sub Globals Bitmap1.Initialize(File.DirAssets, "1.jpg") and Dim Stream(36) As String = "http://121.121.121.121:8002/;listen.pls" ' end sub in Sub Globals and i want to make 1.jpg and Stream(1) as a parameter i get those values from database how can i do it? for example i get from database and i have the parameters in a loop eg for i=1 to 20 mybitmap=..... mystream=.... next Last edited: Jul 22, 2017
i have this Code: Copy sub Globals Bitmap1.Initialize(File.DirAssets, "1.jpg") and Dim Stream(36) As String = "http://121.121.121.121:8002/;listen.pls" ' end sub in Sub Globals and i want to make 1.jpg and Stream(1) as a parameter i get those values from database how can i do it? for example i get from database and i have the parameters in a loop eg for i=1 to 20 mybitmap=..... mystream=.... next
R ronell Well-Known Member Licensed User Longtime User Jul 22, 2017 #2 Code: Copy Sub ... or i=0 to 20 mybitmap = ..... mystream= ..... sample(mybitmap, mystream) Next End Sub Sub sample(mybitmap as bitmap, mystream as string) End Sub like this? Upvote 0
Code: Copy Sub ... or i=0 to 20 mybitmap = ..... mystream= ..... sample(mybitmap, mystream) Next End Sub Sub sample(mybitmap as bitmap, mystream as string) End Sub like this?
Erel B4X founder Staff member Licensed User Longtime User Jul 23, 2017 #3 Sub Globals is not the place for this code. Sub Globals should only be used for declarations of views. Upvote 0
Sub Globals is not the place for this code. Sub Globals should only be used for declarations of views.