Indigo Rose Software

Professional Software Development Tools

 
Results 1 to 3 of 3
  1. #1
    Join Date
    May 2007
    Posts
    46

    combobox and input



    as I can, "ComboBox" when selecting shows in “input1”

    my code:

    Page1
    On Show

    if ComboBox.ItemIndex ~= -0 then
    ComboBox.AddItem("ComboBox1", "opcion 1");
    ComboBox.AddItem("ComboBox1", "opcion 2");
    end

    Button 1
    On Click
    Input.SetText("Input1", ComboBox);

    I have error when it makes the call ComboBox to input



    thus deberia of being

  2. #2
    Join Date
    Sep 2007
    Posts
    25
    I don't know if i misunderstood you or not, but you can't just have it set the text as ComboBox.

    This is the code for the button...
    Code:
    -- This checks if the combobox is selected or not. 
    tSelected = ComboBox.GetSelected("ComboBox1")
    
    -- This is if something is selected, then it gets the text
    -- and then places it in the input box.
    if tSelected then
    	tComboBox = ComboBox.GetItemText("ComboBox1", tSelected)
    	Input.SetText("Input1", tComboBox)
    end
    --- My project is below if you need any help from it. I hope i helped you with your error ^_^.
    Attached Files
    Last edited by fmwyso; 10-07-2007 at 01:50 PM.

  3. #3
    Join Date
    Aug 2003
    Posts
    2,427
    I don't undertand exactly what you are saying but try -

    In the on show (you can add data for each option) -
    Code:
    if ComboBox.ItemIndex ~= -0 then
    ComboBox.AddItem("ComboBox1", "opcion 1", "The data for option1");
    ComboBox.AddItem("ComboBox1", "opcion 2", "The data for option2");
    end
    In the button on click -
    Code:
    comboselected = ComboBox.GetSelected("ComboBox1");
    combodata = ComboBox.GetItemData("ComboBox1", comboselected);
    Input.SetText("Input1", comboselected);
    -- or to display the data part of the selected item
    -- Input.SetText("Input1", combodata);

Similar Threads

  1. how to search a entry from database using input box and combobox.
    By vijay4781 in forum AutoPlay Media Studio 6.0
    Replies: 4
    Last Post: 04-29-2007, 02:47 AM
  2. multiline user input
    By cgirolet in forum AutoPlay Media Studio 6.0
    Replies: 1
    Last Post: 01-17-2006, 07:24 AM
  3. ComboBox problem
    By andrewr in forum AutoPlay Media Studio 5.0
    Replies: 5
    Last Post: 05-06-2005, 09:49 AM
  4. ComboBox display current
    By pjhiggins in forum AutoPlay Media Studio 5.0
    Replies: 4
    Last Post: 05-21-2004, 12:14 PM
  5. multiline input table apocalypse
    By dulux1309 in forum AutoPlay Media Studio 5.0
    Replies: 1
    Last Post: 04-09-2004, 05:28 AM

Posting Permissions

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