An example code to Copy data into dotNet array
An example code to Copy data into dotNet array
Tags: dotnet array
Code Snippet:
-- .NET arrays indexes start at 0!
-- Create a .NET array of 10 integers
intArray = dotNetObject "System.Int32[]" 10
-- Fill array
for idx = 1 to 10 do
(
intValue = dotNetObject "System.Int32" (random 1 100)
intIndex = dotNetObject "System.Int32" (idx-1)
intArray.SetValue intValue intIndex
)
-- Print array data
for idx = 1 to 10 do
(
intIndex = dotNetObject "System.Int32" (idx-1)
print (intArray.GetValue intIndex)
)
ActionScript - ActionScript 3 - Apache - AppleScript - ASP - Assembler - Bash - C - C# - C++ - ColdFusion - CSS - Delphi - DOS Batch - Fortran - HTML - iPhone - Java - JavaScript - jQuery - Lisp - MatLab - Maxscript - MXML - MySQL - Objective C - Other - Pascal - Perl - PHP - PL SQL - Prolog - Pseudocode - Python - Rails - SmallTalk - Smarty - SML - SPSS - SQL - SVN - Symfony - TCL - VB.NET - Visual Basic - XHTML - XML - XSLT
© 2000-2015 Xentrik.Net