Method : of_find_entries

Signature

lnv_json.of_find_entries( as_object, as_pair_name, as_pair_value )

Where

Name Type Description
lnv_json n_cst_json an instance of n_cst_json class
as_object string The JSON object's name to be found
as_pair_name string The JSON Pair's name to be found
al_entries[] long The long array variable that will holds entries found (by ref)


Return

Type Value Description
long >0 The number of entries found
0 No entry found
-1 An error occurs


Usage

Find all instances of specified Object's Pair
n_cst_json lnv_json
long	ll_found_entries[]
long	ll_index, ll_limit
...
ll_limit = lnv_json.of_find_entries(  "PowerBuilder", "Major Version", ll_found_entries )
if ll_limit < 1 then return -1

for ll_index = 1 to ll_limit
...
next
...

Last edited Jul 1, 2014 at 10:18 AM by domangep, version 1

Comments

No comments yet.