Sample code for 30+ languages & platforms
Visual FoxPro

AppendArrayItems Example

Demonstrates the AppendArrayItems function.

Note: This example requires Chilkat v9.5.0.82 or above.

Chilkat Visual FoxPro Downloads

Visual FoxPro
LOCAL loJarr1
LOCAL loJarr2

loJarr1 = CreateObject('Chilkat.JsonArray')
loJarr1.Load("[ 1, 2, 3, 4]")

loJarr2 = CreateObject('Chilkat.JsonArray')
loJarr2.Load("[ 5, 6, 7, 8]")

loJarr1.AppendArrayItems(loJarr2)

? loJarr1.Emit()
* Expected output: [1,2,3,4,5,6,7,8]

? loJarr2.Emit()
* Expected output: [5,6,7,8]

RELEASE loJarr1
RELEASE loJarr2