Hi Hideo,
Of course it works :). I cannot belive, that solution is so simple. Sorry about that. I also added GetToken command so now i can use this window instead of dlgfile.
If u have any idea regarding question 2, i'd be really grateful.
I want to unify four dialogboxes i have in my sripts into one.
Problem solved, but i have an issue during testing :
int cancel;
for(i=1;i<3;i++)
{
run.section(,Menu);
if(cancel==1)
type -b error;
else
type -b Ok;
};
[Menu]
j=0;
k=0;
cancel=1;
getn (Name 1:%(CRLF)second) str$ (Name 2:%(CRLF)) str1$ (File Name) fname$:@BBFiles (Option 1) j:2 (Option 2) k:2 (line1%(CRLF)line2%(CRLF)line3);
if(fname$=="")
break 1;
int count = fname.GetNumTokens(CRLF);
count=;
cancel=0;
When user doesn't choose any file or just press cancel button script should open dialogbox with message "error", if user chose files script should open dialogbox with message 'OK'.
Everytime i press cancel button or don't choose file script ends with following message in command window (it also happens happens everytime after the last iteration of the loop):
[Menu]J is illegal name for defining a variable
unknown error in expression assignment
I think, that script should work fine. What can be the reason ?
Best Regards,
Stefan B.