Dim obj As Test
obj.fx("text") 'ここでエラー
Class Test
Public
Function fx(ByRef objString As String) As Long
End Function
End Class
リテラル文字列を下のような引数に設定し、コンパイルすると「""text"無効な識別子です」と出てきます。 ところで、参照するStringクラスの引数に、リテラル文字列を設定することは可能ですか?(要は下のコードのです。) [code]Dim obj As Test obj.fx("text") 'ここでエラー
Class Test Public Function fx(ByRef objString As String) As Long End Function End Class[/code]