Functions.AFill 方法 |
命名空间: XSharp.RT
FUNCTION AFill( aTarget AS ARRAY, uValue AS USUAL, nStart AS USUAL, nCount AS USUAL ) AS ARRAY
public static __Array AFill( __Array aTarget, [DefaultParameterValueAttribute(0, 1)] __Usual uValue, [DefaultParameterValueAttribute(0, 1)] __Usual nStart, [DefaultParameterValueAttribute(0, 1)] __Usual nCount )
1LOCAL aLogic[3] // aLogic 为 {NIL, NIL, NIL} 2AFill(aLogic, FALSE) // aLogic 为 {FALSE, FALSE, FALSE} 3AFill(aLogic, TRUE, 2, 2) // aLogic 为 {FALSE, TRUE, TRUE}
1LOCAL a2[3][3] //一个2维数组 2AFill(a2[1], "One") 3AFill(a2[2], "Two") 4AFill(a2[3], "Three")