Quantcast
Channel: LiveCode Forums
Viewing all articles
Browse latest Browse all 780

Getting Started with LiveCode - Experienced Developers • How to use Difference Command with Arrays?

$
0
0
The Dictionary show:
difference targetArray with templateArray [into destinationArray]

How do you use the "[into destinationArray]" option?

The only example does not show how to use it.

If you add "into" and a variable name, you get a compilation error: (split:bad variable) near "destinationArray"

local tLeft, tRight
put "green" into tLeft["color"]
put "left" into tLeft["align"]
put "blue" into tRight["color"]
put "100" into tRight["width"]

difference tLeft with tRight into destinationArray

# RESULT
# the keys of tLeft = "align"
# tRight unchanged

Statistics: Posted by merill001 — Fri May 31, 2024 5:20 pm



Viewing all articles
Browse latest Browse all 780

Trending Articles