在 ASP Classic 中获取变量类型(ADO 对象或字符串)?
Get variable type (ADO Object or String) in ASP Classic?
我正在尝试在 ASP Classic 中编写一个接受参数的函数;但参数可以是字符串,也可以是 ADODB.Command 对象。函数如何判断参数的类型?
所以...
Function myfunction( input )
If is_ADODBCommand( input ) Then
' do stuff to object'
ElseIf is_string( input ) Then
' do stuff to string'
End If
End Function
基本上,请告诉我如何做 is_ADODBCommand
和 is_string
我正在尝试在 ASP Classic 中编写一个接受参数的函数;但参数可以是字符串,也可以是 ADODB.Command 对象。函数如何判断参数的类型?
所以...
Function myfunction( input )
If is_ADODBCommand( input ) Then
' do stuff to object'
ElseIf is_string( input ) Then
' do stuff to string'
End If
End Function
基本上,请告诉我如何做 is_ADODBCommand
和 is_string