Indigo Rose Software

Professional Software Development Tools

 
Results 1 to 3 of 3

Thread: About count?

  1. #1
    Join Date
    Apr 2004
    Location
    Taiwan
    Posts
    83

    Huh? About count?

    Hi all:
    I want to make a dialog window that it can input a nubmer by user when I uses a loop to count.

    It means the AMS5.0 can display a dialog window after clicking a button. Then it can input a number by user to count for looping. If the AMS5.0 call a window, I key a number is five. The meaning my program codes can do five loops on this program.

    How can I do it? Who has a example that it can reach my purpose? Thanks.
    Pierre

  2. #2
    Join Date
    Jul 2002
    Location
    USA
    Posts
    3,959
    Code:
    nLoop = Dialog.Input("Loops", "How many times would you like to cycle the loop?", "5", MB_ICONQUESTION)
    nLoop = String.ToNumber(nLoop)
    if nLoop == 0 then
    	Dialog.Message("Invalid Input", "Please use a numeric value greater than 0.")
    else
    	for n=1, nLoop do
    		Dialog.Message("Loop", "This is loop " .. n .. " of " .. nLoop)
    	end
    end

    Quote Originally Posted by pierre
    Hi all:
    I want to make a dialog window that it can input a nubmer by user when I uses a loop to count.

    It means the AMS5.0 can display a dialog window after clicking a button. Then it can input a number by user to count for looping. If the AMS5.0 call a window, I key a number is five. The meaning my program codes can do five loops on this program.

    How can I do it? Who has a example that it can reach my purpose? Thanks.

  3. #3
    Join Date
    Apr 2004
    Location
    Taiwan
    Posts
    83
    Worm:
    Thank you for replying quickly. I had tried your methods that it is ok. Thank you again.
    Pierre

Similar Threads

  1. Count lines in a "Paragraph Object"
    By Nuts in forum AutoPlay Media Studio 5.0
    Replies: 1
    Last Post: 03-17-2004, 01:55 PM
  2. Prb with Count Delimited Strings
    By arnaud in forum AutoPlay Media Studio 4.0
    Replies: 4
    Last Post: 09-29-2003, 11:03 AM
  3. DLL Usage Count
    By jassing in forum Setup Factory 6.0
    Replies: 1
    Last Post: 05-12-2003, 04:12 PM
  4. Get File Count
    By Worm in forum AutoPlay Media Studio 4.0
    Replies: 5
    Last Post: 01-23-2003, 05:56 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