调试时提示如下函数出错:找不到工程或库
Function GetBillName(ByVal n As Node) As String
'返回选中节点的单据名称
Dim str As String
str = ""
If n.Key Like "c*" Then
str = Left(n.Text, Len(n.Text) - 4)
Else
If n.Key Like "e*" Then
str = Left(n.Text, Len(n.Text) - 10)
End If
End If
GetBillName = str
End Function