• Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint

Using Static Variables

Earlier, you saw that a procedure-level’s variable has no life outside of that procedure. But there’s an exception to this rule: you can extend a procedure-level’s variable beyond the procedure by declaring the variable as a static variable using the Static statement in the form

Static variablename [As datatype]


PREVIEW

                                                                          

Not a subscriber?

Start A Free Trial


  
  • Creative Edge
  • Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint