Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations derfloh on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

one more question 8).

Status
Not open for further replies.

ebarratt

Programmer
Apr 10, 2002
53
US
var arrCell = new Array();

<%
Response.Write WriteArray(&quot;spTeamToCell&quot;, &quot;TEAMID&quot;, &quot;CELLID&quot;, &quot;CELL&quot;, &quot;arrCell&quot;)
%>

FUNCTION WriteArray(spName, ParentFieldID, ChildFieldID, ChildFieldDescription, arrJava)
DIM objRs
DIM I
WriteArray = &quot;&quot;
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 & &quot;[&quot; & i & &quot;] ='&quot; & .Fields(ParentFieldID) & &quot;!~!&quot; & _
.Fields(ChildFieldID).Value & &quot;!~!&quot; & .Fields(ChildFieldDescription).Value & &quot;';&quot; & vbCrLf
i = i + 1
.MoveNext
LOOP
END WITH
END FUNCTION


When he is creating the javascript array in a vb function is that &quot;!~!&quot; mean anything to a javascript array? Some one tell me what you would assign an array a value then delimit it by &quot;!~!&quot; then a value then &quot;!~!&quot;? I don't understand what that is doing hehe thanks all! Errol Barratt
856-697-1593
New Jersey
 
Nevermind figured it out... he is just using it later on in the program to parse through the array. Errol Barratt
856-697-1593
New Jersey
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top