ResizeJSONElements()
语法
ResizeJSONElements(JSONValue, Size)概要
Resize a JSON value of type #PB_JSON_Array so that it has the given number of elements.
参数
JSONValue The JSON value. The value must be of type #PB_JSON_Array. Size The new size of the array. This specifies the total number of elements (not the index of the highest array element like Dim).
返回值
无.
Remarks
If new elements are added to the array, they will have the type #PB_JSON_Null.
示例
ParseJSON(0, "[1, 2, 3, 4, 5]") ResizeJSONElements(JSONValue(0), 3) Debug ComposeJSON(0) ResizeJSONElements(JSONValue(0), 10) Debug ComposeJSON(0)
参阅
SetJSONArray(), AddJSONElement(), RemoveJSONElement(), ClearJSONElements(), GetJSONElement(), JSONArraySize(), JSONType()
已支持操作系统
所有