Hi I have a function where I need to compare two values if are different I want to show a message and I would like to return I mean I don't want to execute the next code line
savingData: function(doClose){
this.doClose = doClose;
if (this.autoForm.form.isValid()) {
........... The Game Creators - Forum - View Thread:: 41 posts - Last post: Mar 29, 2007I doubt you can change the direction the moon orbits with it, Display a simple messagebox. Notice DLLCMDC, this will export // the http://forum.thegamecreators.com/?m=forum_view&t=97069&b=5HOME |
if (valueUserPassword != valueUserPasswordConfirm){
Ext.MessageBox.show({
title: 'Error!!',
msg: "Password and confirm are differents ",
buttons: Ext.MessageBox.OK,
icon: Ext.MessageBox.ERROR chop, separate, split a STRING into sections? - Page 2:: 9 posts - Last post: Apr 12, 2008seems like a rather common and simple task for .NET, but I can't seem . The other difference is that C# you put the extension http://www.pcreview.co.uk/forums/thread-3687283-2.phpHOME |
fn: function(){return}
});
}
............... I don't want to continue and don't work the return
regards
Frank
The standard alert function does stop the execution so you can use it instead of Ext.MessageBox.
There's no way to stop the code from executing. The MessageBox should be the last thing in your function, and the callback function should determine based on the button clicked what to do next. You'll have to break the next code out into a separate function(s).
Red Hat's Rough Recovery From CFO Exit
Windows Live Finds a New, Pre-installed Home |