有eval吗
vb吧
全部回复
仅看楼主
level 7
tzchf 楼主
2021年11月04日 01点11分 1
level 7
tzchf 楼主
或类似 parseFloat()
有个需求,8117张,要取到8117拿来计算。没有的话要自己写函数了。
2021年11月04日 01点11分 2
level 7
tzchf 楼主
现在发帖不需要搞贴吧APP了?
2021年11月04日 02点11分 3
就是,我咋看这各百度就咋他娘的有病
2021年11月04日 05点11分
level 13
eval在vbscript.dll中,工程引用就可以了
2021年11月04日 02点11分 4
level 14
在工程中引用 Microsoft Script Control 1.0 这个类库,然后写入以下代码:
Option Explicit
Dim sc As New ScriptControl
Private Sub Form_Load()
sc.Language = "VBScript"
sc.AddObject "Me", Me, True
End Sub
Private Sub Command1_Click()
Print sc.Eval("123+543")
End Sub
2021年11月04日 02点11分 5
[大拇指]
2021年11月05日 03点11分
1