Ola
I hope my example here makes sense. There seems to be a scope collision between a stringbuilder defined at class_globals and one defined at sub level when the variable name is the same.
In the class I have added 2 subs, Join and Join1 to demo this, my global variable name is sb and the local variable name is sb. In Join1, the variable name is changed to sbx which brings good results. In Join where the sb is used as is, the output of the app is wrong.
I could be wrong with something, but please check.
Ta!
I hope my example here makes sense. There seems to be a scope collision between a stringbuilder defined at class_globals and one defined at sub level when the variable name is the same.
In the class I have added 2 subs, Join and Join1 to demo this, my global variable name is sb and the local variable name is sb. In Join1, the variable name is changed to sbx which brings good results. In Join where the sb is used as is, the output of the app is wrong.
I could be wrong with something, but please check.
Ta!
Attachments
-
1.5 KB Views: 39