> I'm not getting this to work so far.
> Have tried the following two programs :
> =============================================
> <%
> Option Explicit
> Dim S As Variant
> S = GetMyStrings()
> Debug.Print S(0) & ", " & S(1) & ", " & S(2)
> Function GetMyStrings() As Variant
> Dim TestStrings(3) As String
> TestStrings(0) = "first string"
> TestStrings(1) = "second string"
> TestStrings(2) = "third string"
> GetMyStrings = TestStrings
> End Function
> %>
> at http://feedthebulldog.com/asp/passArray2.asp
> gets the response :
> Microsoft VBScript compilation error '800a0401'
> Expected end of statement
> /asp/passArray2.asp, line 4
> Dim S As Variant
> ------^
> =============================================
> <%
> Option Explicit
> Dim Nums(4),num
> Nums = ReturnArray()
> For Each num in Nums
> response.write "<br>Number eq " & num
> Next
> Function ReturnArray() As Variant
> ReturnArray = Array(1,2,3,4)
> End Function
> %>
> at http://feedthebulldog.com/asp/passArray.asp
> gets this response
> Microsoft VBScript compilation error '800a0400'
> Expected statement
> /asp/passArray.asp, line 10
> Function ReturnArray() As Variant
> -----------------------^
> So what am I doing wrong? Sorry I didn't try out the other
> suggestions, but at this point feeling much more comfortable with copy
> & paste type solutions.
> Thanks,
> Marty