Sg2.9
error prompt
Recent RSS
error prompt
Date:  26. March 2006, 18:23

I'm trying to throw up an error prompt.

I've tried:

var error = Dialog.prompt("Error", [
		{description: "Please select a path first"}
	]);

But it doesn't resize the Dialog to show the description text.. Only when I add something like:

{description: "a value", value: thevalue, width: 50},

But I don't need any values.. I just want a small warning..
Any ideas?

Re: error prompt
From:  Jürg Lehni
Date:  30. March 2006, 06:26

Dialog.prompt is there for reading some values from the user.

For simple alerts, I'll add Dialog.alert(). Until then, you can use a dummy value for seeing the window and the text.

Re: error prompt
Date:  31. March 2006, 21:52

Okay cool, thanks for the help!

Scripts
08.08.14, 15:24
15.05.14, 14:23
02.03.14, 19:16
18.11.13, 14:48
22.03.13, 03:05
22.02.13, 15:45
Posts
10.01.17, 16:37
19.02.16, 06:03
19.02.16, 06:00
17.01.16, 11:00
12.01.16, 13:10
25.11.15, 08:19
Script of the Moment
Grid Generator 04.01.12