Android Question how to imageview into module

fgh3966

Active Member
Licensed User
Hello all

I am trying to build a module with imageview variable
Here is some code that does not compile. ---> B4A said ',' expected
and also I could see this discussion here : https://www.b4x.com/android/forum/threads/code-module-and-image.23430/
Can a module contain an imageview ?


module:
'Code module
'Subs in this code module will be accessible from all modules.
Sub Process_Globals
    'These global variables will be declared once when the application starts.
    'These variables can be accessed from all modules.
   
    'Public ImageView5 As ImageView
    'Private ImageView6 As ImageView
    'Private ImageView7 As ImageView
    'Public ImageView8 As ImageView
    'Public QRT2 As Byte  
   

End Sub

Sub quartet2 (ImageView8 As ImageView, QRT2 As Byte)
    '    Dim BV1 As Byte
'Dim ImageWiew1, ImageWiev2, ImageWiev3, ImageWiev4)

If QRT2 = 0 Then
    '******************************** 0 *************************************
'    ImageView5.Bitmap = LoadBitmap(File.DirAssets, "led_off.png")
'    ImageView6.Bitmap = LoadBitmap(File.DirAssets, "led_off.png")
'    ImageView7.Bitmap = LoadBitmap(File.DirAssets, "led_off.png")
    ImageView8.Bitmap = LoadBitmap(File.DirAssets, "led_off.png")
End If
       


End Sub



main call module (not compiling):
Sub btnt_Click
    'quartet2
   
    Modul_LEDS.quartet2(QRT2)
   
   
End Sub


THANKS
 
Top