PDA

View Full Version : Code problem


ThomasAnderson
10-29-2008, 01:07 PM
Hello again
I'm having a problem with a code and I don't know what's wrong with it

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

jassing
10-29-2008, 01:16 PM
You had errors on your if statement your run statement.

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

ThomasAnderson
10-29-2008, 01:22 PM
Oh, i get it :) a unneeded ; :P
Thanks mate :D

jassing
10-29-2008, 01:30 PM
Oh, i get it :) a unneeded ; :P
Thanks mate :D

and incorrect file.run()

ThomasAnderson
10-29-2008, 01:36 PM
oh ye
I saw that now :)
lol

jassing
10-29-2008, 06:17 PM
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...