var arrCell = new Array();
<%
Response.Write WriteArray("spTeamToCell", "TEAMID", "CELLID", "CELL", "arrCell"![Wink ;) ;)](data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7)
%>
FUNCTION WriteArray(spName, ParentFieldID, ChildFieldID, ChildFieldDescription, arrJava)
DIM objRs
DIM I
WriteArray = ""
i=0
ON ERROR RESUME NEXT
CALL ExecuteSql (objRs, spName)
IF objRs.RecordCount = 0 Then
Exit function
ENd IF
WITH objRs
.MoveFirst
DO WHILE NOT .EOF
WriteArray = WriteArray & arrJava & "[" & i & "] ='" & .Fields(ParentFieldID) & "!~!" & _
.Fields(ChildFieldID).Value & "!~!" & .Fields(ChildFieldDescription).Value & "';" & vbCrLf
i = i + 1
.MoveNext
LOOP
END WITH
END FUNCTION
When he is creating the javascript array in a vb function is that "!~!" mean anything to a javascript array? Some one tell me what you would assign an array a value then delimit it by "!~!" then a value then "!~!"? I don't understand what that is doing hehe thanks all! Errol Barratt
856-697-1593
New Jersey
<%
Response.Write WriteArray("spTeamToCell", "TEAMID", "CELLID", "CELL", "arrCell"
%>
FUNCTION WriteArray(spName, ParentFieldID, ChildFieldID, ChildFieldDescription, arrJava)
DIM objRs
DIM I
WriteArray = ""
i=0
ON ERROR RESUME NEXT
CALL ExecuteSql (objRs, spName)
IF objRs.RecordCount = 0 Then
Exit function
ENd IF
WITH objRs
.MoveFirst
DO WHILE NOT .EOF
WriteArray = WriteArray & arrJava & "[" & i & "] ='" & .Fields(ParentFieldID) & "!~!" & _
.Fields(ChildFieldID).Value & "!~!" & .Fields(ChildFieldDescription).Value & "';" & vbCrLf
i = i + 1
.MoveNext
LOOP
END WITH
END FUNCTION
When he is creating the javascript array in a vb function is that "!~!" mean anything to a javascript array? Some one tell me what you would assign an array a value then delimit it by "!~!" then a value then "!~!"? I don't understand what that is doing hehe thanks all! Errol Barratt
856-697-1593
New Jersey