Quantcast
Channel: West Wind Message Board Messages
Viewing all articles
Browse latest Browse all 10393

ParseArrayJson error

$
0
0
ParseArrayJson error
Web Connection 5.0
ParseArrayJson error
Mar. 8, 2013
08:14 am
3QE0HO6TLShow this entire thread in new window
Gratar Image based on email address
From:Bob Roenigk
To:All
Rick,

The second case statement crashes with "loMember not found". Changing that to loValue works. This is v5.65.

~bob


PROTECTEDFUNCTION ParseArrayJson(loObject)LOCAL loResult, loMembers, loMember, lnCount, lnX, lvValue, ; loCollection, loValue, loValues loCollection = CREATEOBJECT("Collection") loValues = this.oBridge.InvokeMethod(loObject,"GetValues") lnCount = loValues.CountFOR lnX = 0 TO lnCount-1 loValue = loValues.Item(lnX) lvValue = nullDOCASECASE loValue.Type = "O" lvValue = THIS.ParseObjectJson(loValue)CASE loMember.Type = "A" lvValue = THIS.ParseArrayJson(loValue)OTHERWISE lvValue = this.ParseValueJson(loValue)ENDCASE loCollection.Add(lvValue)ENDFORRETURN loCollectionENDFUNC


Viewing all articles
Browse latest Browse all 10393

Trending Articles