Android Question Sub Globals in a service module ?

Discussion in 'Android Questions' started by jinyistudio, Mar 5, 2015.

  1. jinyistudio

    jinyistudio Active Member Licensed User

    Could i writing following code in a service module ? Because i always get a error tell me as following, Why...?:p

    Sub Globals
    Dim Qc As BltData
    Dim bfbytes(30) As Byte
    Dim bfindex As Int
    End Sub
     

    Attached Files:

    • gv.png
      gv.png
      File size:
      77.6 KB
      Views:
      30
  2. NJDude

    NJDude Expert Licensed User

    Services do not have GLOBALS.
     
    thedesolatesoul likes this.
  3. jinyistudio

    jinyistudio Active Member Licensed User

    Hi
    Could you tell how to declare a local variable in a service module and let all sub could use it in this service ?
     
  4. NJDude

    NJDude Expert Licensed User

    The variables have to be declared on Process_Globals, if you want the variables to be accessible just to the service then make them private, like this:
    Code:
    'Service module

    Sub Process_Globals

        
    Private myVar As String

    ...
     
Loading...
  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice