I need to update the old classic asp, and I need to call a function that usually returns an array, but under certain circumstances can return a value Nothingor undefined.
Nothing
How can I verify that the result actually returns an array?
Is the function late bound / has a return value Variant? If so, the function IsArraychecks to see if it contains an array type.
Variant
IsArray
er ... I could be wrong, but isn't it just something like
If something Is Nothing Then 'Do something here Else 'Do what I used to End If
IsNull() , .
TypeName (something) = "Empty" Then ...
, !
Function IsNothingType( ByRef obj ) If TypeName(obj) = "Nothing" Then IsNothingType = True Else IsNothingType = False End If End Function
If you use VBScript / WSH, you may need to try the "typeof" function / method. This worked for me while it wasn’t higher.
Source: https://habr.com/ru/post/1706902/More articles:how to delete row from datagridview using delete button? - .netHow to know the memory usage of threads? - cProjects that use SpeС # / Code Contracts.NET - .netПочему листинг текста как varchar без указания длины обрезает текст с 30 символами? - castingDjango form values without HTML escape code - pythonHow can I debug data binding problems in MVVM? - data-bindingHow do we build resource satellite assemblies - .netHow to get the total number of values as part of my own query? - mysqlMeasurement when only certain page elements are loaded - performance3d draw, setting a perspective point, setting a point of view! - javaAll Articles