Android Question CallSubDelayed, CallSub

Discussion in 'Android Questions' started by b4auser1, Feb 26, 2015.

  1. b4auser1

    b4auser1 Well-Known Member Licensed User

    Is it correct to use CallSubDelayed, CallSub with string value for the Component As Object.

    In details:
    Now I use CallSubDelayed, CallSub with (Me, ...) or (Activity, ...).
    Can I use CallSubDelayed, CallSub with ("ModuleName", ...) ?
     
  2. KZero

    KZero Active Member Licensed User

    yes you can pass String !
    CallSubDelayed("Main","subname") or CallSubDelayed(Main,"subname") both will work
     
  3. Erel

    Erel Administrator Staff Member Licensed User

    It is better to use the reference object instead of the string.
     
    thedesolatesoul likes this.
  4. b4auser1

    b4auser1 Well-Known Member Licensed User

    Thank you for answers.
    I will use string, only there is no way to use reference object.
     
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