Functions.ArrayStore 方法 (__Array, __Usual, UInt32) |
命名空间: XSharp.RT
1FUNCTION Start() 2 LOCAL DIM aDestination[4] AS USUAL 3 LOCAL aList[4] 4 ArrayPut(aList, 1, 1) 5 ArrayPut(aList, 2, 3) 6 ArrayPut(aList, 3, 5) 7 ArrayPut(aList, 4, 7) 8 ArrayStore(aList, @aDestination, 4*6) 9 ? aDestination[1] // Result: 1 10 ? aDestination[2] // Result: 3 11 ? aDestination[3] // Result: 5 12 ? aDestination[4] // Result: 7