Results 1 to 3 of 3

Thread: Empty Value? Help...

  1. #1

    Thread Starter
    Addicted Member
    Join Date
    Nov 2000
    Location
    Posts
    130

    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++.

  2. #2
    Fanatic Member simonm's Avatar
    Join Date
    Sep 2000
    Location
    Devon, England
    Posts
    796

    Smile 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.

  3. #3

    Thread Starter
    Addicted Member
    Join Date
    Nov 2000
    Location
    Posts
    130
    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.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width