trevordevore / levure

Application development framework for LiveCode
MIT License
32 stars 14 forks source link

levureAppGet documentation error #68

Closed spencerlearning closed 7 years ago

spencerlearning commented 7 years ago

In the levureAppGet inline docs in levure.livecodescript there is an error in the multi-dimensional example:

# Get a multi-dimensional value
put "preferences filename" into tLookupA[1]
put "shared" into tLookupA[2]
put "macos" into tLookupA[3]
put "filename" into tLookupA[4]
put levureAppGet(tLookupA)

It should be:

# Get a multi-dimensional value
put "preferences filename" into tLookupA[1]
put "shared" into tLookupA[2]
put "macos" into tLookupA[3]
put levureAppGet(tLookupA)

After fixing in levure.livecodescript, the wiki API page will need to be updated.

spencerlearning commented 7 years ago

levureAppSet in the inline docs in levure.livecodescript has the same error as levureAppGet in the multi-dimensional example. The line put "filename" into tLookupA[4] should be removed so it is:

# Get a multi-dimensional value
put "preferences filename" into tLookupA[1]
put "shared" into tLookupA[2]
put "macos" into tLookupA[3]
put levureAppSet(tLookupA)

Also, as long as we're updating levure.livecodescript inline docs and the Levure API wiki page, here are a few typos: