PDA

View Full Version : help...



mustafa06
04-25-2008, 03:51 PM
x1 = Input.GetText("Input1");
x2 = ComboBox.GetSelected("Combo1");

if (x1 ~= x2) then
Dialog.Message("Error!", "", MB_OK, MB_ICONEXCLAMATION, MB_DEFBUTTON1);
else
Dialog.Message("Success", "", MB_OK, MB_ICONEXCLAMATION, MB_DEFBUTTON1);
end


Input1 = "1"
ComboBox.Selected ( Combo1 ) Index = "1"

but its equal , why ı saw error messages!! ?

RizlaUK
04-25-2008, 04:36 PM
ComboBox.Selected returns a integer not a string, try like this


x1 = String.ToNumber(Input.GetText("Input1"));
x2 = ComboBox.GetSelected("Combo1");

if (x1 ~= x2) then
Dialog.Message("Error!", "", MB_OK, MB_ICONEXCLAMATION, MB_DEFBUTTON1);
else
Dialog.Message("Success", "", MB_OK, MB_ICONEXCLAMATION, MB_DEFBUTTON1);
end

mustafa06
04-26-2008, 04:22 AM
ComboBox.Selected returns a integer not a string, try like this


x1 = String.ToNumber(Input.GetText("Input1"));
x2 = ComboBox.GetSelected("Combo1");

if (x1 ~= x2) then
Dialog.Message("Error!", "", MB_OK, MB_ICONEXCLAMATION, MB_DEFBUTTON1);
else
Dialog.Message("Success", "", MB_OK, MB_ICONEXCLAMATION, MB_DEFBUTTON1);
end


woow very thx ;) :yes