-
Empty Value? Help...
Goodday everybody...
I've build a COM which has the following function:
Public Sub func1(sFile as String)
Dim sName as String
sName = sFile
End Sub
If I call this function, let's say sFile is pass as "One", it doesn't worked. In other words, I try to assign the sFile value into sName, but when I check on the value of sName, it's empty/blank, while the value in sFile is what I passed, "One".
Hope someone out there can provide me an answer and solution.
Thanks in advanced.
P.S. this function is called from a program written in VC++.
-
Can't see a problem.
There's nothing wrong with your function.
Are you saying that the actual assigning of 'sName = sFile' doesn't work? I don't believe it.
There must be something else you're not telling us.
-
I've told you all that I need to tell. That's why I'm curious why it doesn't work.
Anyway, I've managed to solve it.
Thanks for your help, simonm.