G
Guest
Is it possible to return two different values from a function when it is
called. My situation is this, I am building a record into a variable called
strWriteLine. I make a call to FD50, modify that record then return the
modified record. This works fine. What I would like to do is return with the
record a count of how many modifications were made. I keep track of this
number in Function FD50 but can it be returned to the calling Public Sub?
Following is the calling code and the Function called
strWriteLine = FD50(strLine, InvNum,)
Function FD50(strLine As String, InvNo As String)
---Modify the strWriteLine as strLine
End Function
called. My situation is this, I am building a record into a variable called
strWriteLine. I make a call to FD50, modify that record then return the
modified record. This works fine. What I would like to do is return with the
record a count of how many modifications were made. I keep track of this
number in Function FD50 but can it be returned to the calling Public Sub?
Following is the calling code and the Function called
strWriteLine = FD50(strLine, InvNum,)
Function FD50(strLine As String, InvNo As String)
---Modify the strWriteLine as strLine
End Function