Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Set focus to textbox
Message
General information
Forum:
Visual FoxPro
Category:
Internet applications
Miscellaneous
Thread ID:
00689308
Message ID:
00691237
Views:
28
>Hi Wayne,
>How do you create an array in javascript equiv to an array in vfp with the following dimensions?
>
>dimension aText[8,18]

Just remember that arrays are 0-based in JS...
<html>
<head>
<Script language=JavaScript>
la = new Array(16,8)
la[0,0] = "Wow "
la[1,1] = "This Is "
la[1,2] = "Cool"
la[16,8] = " - Real Cool"

</script>
<body>
<script>
document.write(la[0,0] + la[1,1] + la[1,2] + la[16,8])
</script>
</body>
</html>
Wayne Myers, MCSD
Senior Consultant
Forte' Incorporated
"The only things you can take to heaven are those which you give away" Author Unknown
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform