Dialog statement

Questions, tips and tricks and techniques for scripting in Servoy

Dialog statement

Postby Ron » Sat May 31, 2003 10:02 pm

A piece of script in the CRM example goes like this:

var period = plugins.dialogs.showSelectDialog('Choose period','REVENUE REPORT - CUSTOMERS\n\nSelect a Time period.','Month','Quarter','Year')
if(period=="")
{return;}
if(period=="Month")
etc.

Q: what is the sense of the third line: you can only choose between 3
values and there is not an "empty" value between them.
Ron
 
Posts: 315
Joined: Fri May 23, 2003 12:30 am
Location: Netherlands

Postby maarten » Sun Jun 01, 2003 9:05 am

When you click the cancel button, the dialog returns an empty string.
Maarten Berkenbosch
User avatar
maarten
 
Posts: 797
Joined: Wed Apr 23, 2003 10:52 pm
Location: Amersfoort, Netherlands


Return to Methods

Who is online

Users browsing this forum: No registered users and 13 guests