Android Question Get Reference from library

imgsimonebiliato

Well-Known Member
Licensed User
Longtime User
Hello,
in the main activity, I often use references to a created library and the code is too repetitive, like this:
Code:
iGlo.GetValueAsString
iGlo.SetValue
iGlo.Clear
iGlo.GetName
......

Is there, any method like this:

Code:
Use/With iGlo do
   GetValueAsString
   SetValue
   Clear
   GetName
......
end
 
if indeed they are repetitive and always the same, why not create a sub?

Something like...
Code:
Sub doiGlo
iGlo.GetValueAsString
iGlo.SetValue
iGlo.Clear
iGlo.GetName
......
end sub

then in your code all you need to execute these actions is call the sub

Code:
.....
doIglo
.....
 
Upvote 0
Back
Top