WMLScript abort() function

abort() function stops WMLScript and returns a message to the caller of the script.

ວິທະຍາສາດ

Lang.abort(text)
ປ່ຽນແປງ ການອະທິບາຍ
text ຄວາມສັນຍາບັນທີ່ຫຼາຍຫຼາຍ

ຕົວຢ່າງ

var errtxt = "Illegal value";
Lang.abort("Error in function: " + errtxt);

ຜົນການເຮັດວຽກ

The script is aborted, and the string "Error in function: Illegal value" 
is returned to the caller of the script.