corbo950
07-04-2008, 01:35 AM
The data service returns the number of users that have updated if none have updated i want to run the import other wise i want to check and see of the administrator wants to export the updates but something is wrong in my if statement because it runs what is in the if and what is in the else
public function updateResult(event:ResultEvent):void {
var Result:int = int(event.result.toString());
if(Result>0)
{
var messange:String = Result + " users have updated their information since you last exported a family list. " +
"Would you like to export?";
Alert.show(messange, "Export", 3, this, updateClickHandler);
}
else
{
mysqlImport();
}
}
public function updateResult(event:ResultEvent):void {
var Result:int = int(event.result.toString());
if(Result>0)
{
var messange:String = Result + " users have updated their information since you last exported a family list. " +
"Would you like to export?";
Alert.show(messange, "Export", 3, this, updateClickHandler);
}
else
{
mysqlImport();
}
}