Xbasic

*PROPERTY_DIFFERENCE Function

Syntax

V *PROPERTY_DIFFERENCE(P first,P second,P difference)

Arguments

first

A dot variable containing various sub-elements.

second

A dot variable containing various sub-elements.

difference

A dot variable containing the difference between Property1 and Property2.

Description

Get the differences between two properties, store in difference pointer.

Discussion

The *PROPERTY_DIFFERENCE() function creates an array with the difference between two property strings.

Example

prop1.a = 1
prop1.b = 2
prop1.c = 3
prop1.e = 1
dim prop1.f[2] as C
prop1.f[1] = "Cian"
prop2.a = 2
prop2.b = 2
prop2.d = 2
prop2.e = 1
dim prop2.f[2] as C
prop2.f[1] = "Eavan"
dim diff.dummy as C
*property_difference(prop1, prop2, diff)
ui_msg_box("Diff",property_to_string(diff))

See Also