Indigo Rose Software

Professional Software Development Tools

 
+ Reply to Thread
Results 1 to 6 of 6

Thread: Code problem

  1. #1
    Join Date
    Aug 2008
    Posts
    20

    Code problem

    Hello again
    I'm having a problem with a code and I don't know what's wrong with it

    Code:
    run = Input.GetText("Input1");
    if run == ""; then
    Dialog.Message("Error", "Please enter a IP or a website address", MB_OK, MB_ICONSTOP, MB_DEFBUTTON1);
    else
    File.Run("ping "..run.." -t", "", "", SW_SHOWNORMAL, true);
    end
    If someone can fix it I will appriciate
    Thank you in advance
    Last edited by ThomasAnderson; 10-29-2008 at 12:11 PM.

  2. #2
    Join Date
    Jan 2001
    Location
    Anderson Island, WA, USA
    Posts
    2,863
    You had errors on your if statement your run statement.

    Code:
    run = Input.GetText("Input1");
    if run == "" then
    	Dialog.Message("Error", "Please enter a IP or a website address", MB_OK, MB_ICONSTOP, MB_DEFBUTTON1);
    else
    	File.Run("ping.exe", run.." -t", "", SW_SHOWNORMAL, true);
    end


    (Click here to contact me)
    Providing Independent Professional Consulting Services for
    IndigoRose products, World Wide.
    Located in -8:00 (-7:00 DST) GMT Timezone (Western United States)

  3. #3
    Join Date
    Aug 2008
    Posts
    20
    Oh, i get it a unneeded ; :P
    Thanks mate

  4. #4
    Join Date
    Jan 2001
    Location
    Anderson Island, WA, USA
    Posts
    2,863
    Quote Originally Posted by ThomasAnderson View Post
    Oh, i get it a unneeded ; :P
    Thanks mate
    and incorrect file.run()


    (Click here to contact me)
    Providing Independent Professional Consulting Services for
    IndigoRose products, World Wide.
    Located in -8:00 (-7:00 DST) GMT Timezone (Western United States)

  5. #5
    Join Date
    Aug 2008
    Posts
    20
    oh ye
    I saw that now
    lol

  6. #6
    Join Date
    Jan 2001
    Location
    Anderson Island, WA, USA
    Posts
    2,863
    Quote Originally Posted by ThomasAnderson View Post
    oh ye
    I saw that now
    lol
    If you use the "builders" in the product, it will help you from making those types of mistakes...


    (Click here to contact me)
    Providing Independent Professional Consulting Services for
    IndigoRose products, World Wide.
    Located in -8:00 (-7:00 DST) GMT Timezone (Western United States)

Similar Threads

  1. Code signing problem
    By Stein Inge in forum Visual Patch 3.5 Discussion
    Replies: 5
    Last Post: 10-07-2008, 10:09 AM
  2. File.Run return code problem
    By kevin215 in forum AutoPlay Media Studio 6.0
    Replies: 1
    Last Post: 02-22-2008, 11:59 AM
  3. Umlaut/Special Char Problem in Code Editor
    By SonG0han in forum AutoPlay Media Studio 7.5 Suggestions
    Replies: 1
    Last Post: 01-31-2008, 07:12 AM
  4. Article: Using Authenticode Code Signing Certificates
    By Ted Sullivan in forum Setup Factory 8.0 Examples
    Replies: 4
    Last Post: 10-31-2007, 09:03 AM
  5. INFO: Tips for Debugging Action Lists in AutoPlay Media Studio 4.0
    By Support in forum AutoPlay Media Studio 4.0 Examples
    Replies: 0
    Last Post: 10-03-2002, 08:38 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