Android Question Sub Globals parameters

jchal

Active Member
Licensed User
Longtime User
i have this
B4X:
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:

ronell

Well-Known Member
Licensed User
Longtime User
B4X:
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
Top