Indigo Rose Software

Professional Software Development Tools

 
+ Reply to Thread
Results 1 to 3 of 3

Thread: help...

  1. #1
    Join Date
    Jul 2007
    Posts
    287

    help...

    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!! ?
    Last edited by mustafa06; 04-25-2008 at 02:54 PM.

  2. #2
    Join Date
    May 2006
    Posts
    5,380
    ComboBox.Selected returns a integer not a string, try like this

    Code:
    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
    Last edited by RizlaUK; 04-25-2008 at 03:39 PM.
    Open your eyes to Narcissism, Don't let her destroy your life!!

  3. #3
    Join Date
    Jul 2007
    Posts
    287
    Quote Originally Posted by RizlaUK View Post
    ComboBox.Selected returns a integer not a string, try like this

    Code:
    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

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts