ListToJObjectArray

Typehandler
DictionaryLCB
LibraryLiveCode Builder
Syntax
ListToJObjectArray(<pList>,<pClass>)
Associationscom.livecode.java
Summary

Convert a List of JObjects into a JObjectArray

Parameters
NameTypeDescription
pList

The List to convert

pClass

The class name of the JObjects in the List

Example
    variable tArray as JObjectArray
    put ListToJObjectArray(\
            [StringToJString("foo"), StringToJString("bar")], \
            "java/lang/String") into tArray
Values
NameTypeDescription
return

A JObjectArray where each element is a JObject of class pClass

Description

Use ListToJObjectArray to convert pList where each element is a JObject into a JObjectArray. Note all elements of pList must conform to the class pClass.