AxisSet save

From Catglobe Wiki
Revision as of 10:22, 23 December 2011 by Cg van (talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search



AxisSet_save

Saves the axis-set on the database.

Syntax

AxisSet_save()

Arguments

None

Return type

N/A

Examples

array axis = Axis_new("Age groups");

axis[AXIS_TEXT] = "Choose an age group";

axis[AXIS_MATH_BASE] = "Age";

axis[AXIS_PCT_BASE] = "Age != empty";

Axis_addOption(axis, AxisOption_new("Under 18", "Age < 18"));

Axis_addOption(axis, AxisOption_new("18 - 29", "Age == [18-29]"));

Axis_addOption(axis, AxisOption_new("30 - 49", "Age == [30-49]"));

Axis_addOption(axis, AxisOption_new("Older 49", "Age > 49"));

AxisSet_addAxis(axis);

AxisSet_save();

print(axis);

//Result: {0,Age groups,Choose an age group,Age,Age != empty,False,{{1,Under 18,Age < 18,},{1,18 - 29,Age == [18-29],},{1,30 - 49,Age == [30-49],},{1,Older 49,Age > 49,}},}

Availability

Version 5.5