Quantcast
Channel: VBForums
Viewing all articles
Browse latest Browse all 15064

ByRef Variable not binding to .Caption

$
0
0
Hello,

Here's an interesting dilemma.


Code:


TEST Label1.Caption

Private Sub TEST(ByRef sSTR As String)
sSTR = "hello"
End Sub

Lable1.Caption doesn't seem to get updated with sSTR although it's ByRef?
However, if we use a VARIABLE, then that gets updated.

Any explanation to this?

Viewing all articles
Browse latest Browse all 15064

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>