imgsimonebiliato Well-Known Member Licensed User Longtime User Nov 27, 2014 #1 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
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
LucaMs Expert Licensed User Longtime User Nov 27, 2014 #2 No, but it seems to me that someone has already put this in "Wish" Upvote 0
Cableguy Expert Licensed User Longtime User Nov 28, 2014 #4 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
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 .....