Skip to content

SAVE ​

SAVE saves changes in one model to the database.

Syntax ​

leo-grammar
ModelSave :	SAVE [ modelid:idValue ].


-->	RESULT ecode:intValue

Parameters ​

  • modelid (idValue) -

Returns ​

  • ecode (intValue) - the return variable ecode is set to 0 if saving worked, to 1 if an error occured.

Details ​

The id of the model which should be saved is specified with modelid. If no modelid is passed, the current active model will be taken.

See Also ​

Examples ​

asc
SEND "GET_ACTIVE_MODEL" to:"Modeling" answer:modelid

CC "Modeling" SAVE modelid:(VAL modelid)
IF (ecode = 1)
{
   CC "AdoScript" INFOBOX "The model could not be saved"
   EXIT
}

Saves the changes in the currently active model.

Versions and Changes ​

Available since ADOxx 1.3