Adam
2007-09-12 17:50:01 UTC
Hello,
I'm getting a strange BP deviation when i use update_recordset in a switch
statement. The BP deviation says i have unreachable code on the break
command for the second case. I can't see where I'm going wrong, but I might
just be losing my mind. Can anyone see what I'm doing wrong here?
----------------------
static DialogButton updateStuff(DialogButton _dialogButton, str _oldValue,
str _newValue)
{
MyCustTable myCustTable;
;
switch(_dialogButton)
{
case DialogButton::YesToAll :
update_recordset myCustTable
setting myValue = _newValue;
break;
case DialogButton::Yes :
update_recordset myCustTable
setting myValue = _newValue
where myCustTable.myValue == _oldValue;
break; // getting BP deviation here for
unreachable code
default :
break;
}
return(_dialogButton);
}
----------------------
Thanks,
Adam
I'm getting a strange BP deviation when i use update_recordset in a switch
statement. The BP deviation says i have unreachable code on the break
command for the second case. I can't see where I'm going wrong, but I might
just be losing my mind. Can anyone see what I'm doing wrong here?
----------------------
static DialogButton updateStuff(DialogButton _dialogButton, str _oldValue,
str _newValue)
{
MyCustTable myCustTable;
;
switch(_dialogButton)
{
case DialogButton::YesToAll :
update_recordset myCustTable
setting myValue = _newValue;
break;
case DialogButton::Yes :
update_recordset myCustTable
setting myValue = _newValue
where myCustTable.myValue == _oldValue;
break; // getting BP deviation here for
unreachable code
default :
break;
}
return(_dialogButton);
}
----------------------
Thanks,
Adam