最近我一直在研究一个 vb.net 项目,它是用 vs 2005 编写的。
我遇到了一个以' ' 和 ' '结尾的变量。%
$
我的问题是它的需要和意义是什么,我尝试使用谷歌搜索但没有找到查询的痕迹?
以下是该项目的一些代码行:
Public Sub SaveSettings(ByVal Cntl As Control, ByVal File$)
FileNo = FOpen(File, OpenMode.Output)
If FileNo = -1 Then Throw New System.Exception("File - " + File + " cannot be opened for writing!")
BuildHashTable(Cntl)
SaveControls(Cntl)
FClose(FileNo)
End Sub
和
Dim i%, s$, t$
变量是 File$、i%、s$ 和 t$。
我对VB6很陌生,所以我不知道它是否与它有任何关系。