用ASP写组件
打开VB,新建AX DLL,工程名为Str,类名count,输入如下代码: 代码如下:Public Function add(ByVal a As Double, ByVal b As Double, ByVal c As Integer, ByVal d As Integer) As Double d = CInt(d) If c = 1 Then ‘加 add = FormatNumber(a + b, d) ElseIf c = 2 Then ‘减 add = FormatNumber(a – b, d) ElseIf c = 3 Then ‘乘 add = FormatNumber(a
下载地址
用户评论