Indigo Rose Software

Professional Software Development Tools

 
+ Reply to Thread
Results 1 to 2 of 2
  1. #1
    Join Date
    Feb 2007
    Posts
    107

    Can you Correct this code for me plz ...

    hi every one

    i have 1 listbox with 2 item on it and 1 combobox also with 2 item on it

    when i choose 1 item from the listbox and 1 item from a combobox and i press

    the button a web site will open

    and i am using this code :

    PHP Code:
    selectedsite ListBox.GetSelected("site");

    selectedservice ComboBox.GetSelected("service");
    address "";

    if (
    selectedsite == 1then
        
        
    if (selectedservice == 1then
            File
    .OpenURL("http://www.google.co.uk"SW_SHOWNORMAL);

        elseif (
    selectedservice == 2then
            File
    .OpenURL("http://www.yahoo.co.uk"SW_SHOWNORMAL);
            
        elseif (
    selectedservice == 3then
                File
    .OpenURL("http://www.altavista.com"SW_SHOWNORMAL);
                
        elseif (
    selectedservice == 4then
                File
    .OpenURL("http://www.yahoo.fr"SW_SHOWNORMAL);
    end
    end 
    can you corect it from me please

    or the project is attached with this post with no code
    Attached Files

  2. #2
    Join Date
    Aug 2003
    Posts
    2,427
    I'm not quite sure why you have both a listbox and combobox but is it something like the amended example that you want ?

Posting Permissions

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