Indigo Rose Software

Professional Software Development Tools

 
Results 1 to 5 of 5
  1. #1
    Join Date
    Dec 2005
    Posts
    13

    Adding Dialog Input to Constant

    I am using the Registry.SetValue action to set email account values in Outlook Express and want to streamline the amount of data a user will have to enter. I have Dialog boxes that ask for Name (Joe Smith) and also email User Name (joe123).
    I want to be able to have the User Name input data, that a user would input, placed along with @abcnet.com to create joe123@abcnet.com.
    I can't seem to place the input data along with and side by side with a constant string.

  2. #2
    Join Date
    Aug 2003
    Posts
    2,427
    Hello,

    All you need to do is concatenate the user input with your constant e.g.

    Code:
    result = Dialog.Input("Enter Data", "Your user name:", "", MB_ICONQUESTION);
    str_email = result.."@abcnet.com"

  3. #3
    Join Date
    Dec 2005
    Posts
    13
    Thanks again!!! As I've said before, it's always something simple.

    One other thing related to Dialog boxes. I have 3 seperate dialog boxes that open up one after the other, 2 asking for the user to input data (see above) the third is a notice message. If the first one is cancelled or closed, I do not want the subsequent boxes to open. Or if the 2nd is cancelled or closed, the third should not open. I've played around with the StatusDlg.IsCancelled function but have not had any success. I'm sure it's something simple!

  4. #4
    Join Date
    Aug 2003
    Posts
    2,427
    Quote Originally Posted by critter
    Thanks again!!! As I've said before, it's always something simple.

    One other thing related to Dialog boxes. I have 3 seperate dialog boxes that open up one after the other, 2 asking for the user to input data (see above) the third is a notice message. If the first one is cancelled or closed, I do not want the subsequent boxes to open. Or if the 2nd is cancelled or closed, the third should not open. I've played around with the StatusDlg.IsCancelled function but have not had any success. I'm sure it's something simple!
    Off the top of my head I think I'd probably approach this by nesting the the dialogues in a set of if/then statements. Use a variable set by the previous dialogue to test whether to run the next.

  5. #5
    Join Date
    Apr 2006
    Posts
    15
    Code:
    strDial = Dialog.Message(\\\"Notice\\\", \\\"Nothing\\\", MB_OKCANCEL, MB_ICONNONE, MB_DEFBUTTON1);
    -- make sure that cancel was not pressed
    if strDial ~= \\\"CANCEL\\\" then
    	strDial = Dialog.Message(\\\"Notice\\\", \\\"Nothing again\\\", MB_OKCANCEL, MB_ICONNONE, MB_DEFBUTTON1);
    	-- make sure that cancel was not pressed (again)
    	if strDial ~= \\\"CANCEL\\\" then
    		Dialog.Message(\\\"Notice\\\", \\\"Nothing again and again\\\", MB_OKCANCEL, MB_ICONNONE, MB_DEFBUTTON1);
    	end
    end
    I hope that it\'s same in AMS5 as in AMS6

    EDIT: Oops, wha\'ts with the slashes???
    Last edited by TheSpy; 05-17-2006 at 12:01 PM.

Similar Threads

  1. Input Box Wierdness
    By Roboblue in forum AutoPlay Media Studio 6.0
    Replies: 9
    Last Post: 11-18-2005, 01:20 PM
  2. Lorne’s two great input validation scripts
    By csd214 in forum AutoPlay Media Studio 5.0
    Replies: 2
    Last Post: 06-09-2004, 09:13 AM
  3. Function: Test Whether An Input Object Is Empty
    By Lorne in forum AutoPlay Media Studio 5.0 Examples
    Replies: 0
    Last Post: 06-08-2004, 02:18 PM
  4. Input Dialog?
    By rhosk in forum AutoPlay Media Studio 5.0
    Replies: 2
    Last Post: 04-09-2004, 08:18 AM
  5. Displaying a Save As Dialog
    By Desmond in forum AutoPlay Media Studio 5.0 Examples
    Replies: 0
    Last Post: 10-01-2003, 03:53 PM

Posting Permissions

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