multi-line dialog

Help with writing and running scripts

multi-line dialog

Postby in0de » Tue Apr 03, 2007 4:43 am

hello

Could anyone tell me how I can pop a multi-line dialog
when using getValue, getString function?

like,
Insert value : \n 1. list \n 2. run \n 3. summary
User avatar
in0de
Newbie
 
Posts: 2
Joined: Sun Apr 01, 2007 11:00 pm

Re: multi-line dialog

Postby Mofi » Tue Apr 03, 2007 7:29 am

Not possible. You have to ask the user 3 times and make the necessary cursor movements between the questions to insert the answers into the file in the format you want or you save the answers in 3 variables and join it later in the format you want.
User avatar
Mofi
Grand Master
Grand Master
 
Posts: 4039
Joined: Thu Jul 29, 2004 11:00 pm
Location: Vienna

Re: multi-line dialog

Postby Jaretin » Tue Apr 03, 2007 10:02 am

Define a splitsequence and split the input.

Code: Select all
var splitsequence = "@";
var myTest = UltraEdit.getString("what?", 1);

var myVars = myTest.split(splitsequence);

UltraEdit.getString("Parameters entered: " + myVars.length,1);
for (i=0;i<myVars.length;i++)
UltraEdit.getString("Parameter " + i + " = " + myVars[i],1);
User avatar
Jaretin
Basic User
Basic User
 
Posts: 19
Joined: Sun Mar 25, 2007 11:00 pm


Return to Scripts