Connection Information

To perform the requested action, WordPress needs to access your web server. Please enter your FTP credentials to proceed. If you do not remember your credentials, you should contact your web host.

Connection Type

GetSelectedRange – PB Docs 150 – PowerBuilder Library

GetSelectedRange – PB Docs 150

GetSelectedRange PowerScript function

Description

Retrieves the range of selected dates.

Controls

MonthCalendar control

Syntax

Argument

Description

controlname

The name of the MonthCalendar control
for which you want to determine the range of selected dates

start

A date value returned by reference that
indicates the earliest date selected when a range of dates has been
selected

end

A date value returned by reference that
indicates the latest date selected when a range of dates has been
selected

Return Values

Integer. Returns 0 for success, -1 if
only one date is selected, and -2 for an unknown failure.

Usage

If only one date is selected, GetSelectedRange returns
-1 and the selected date is retrieved in the start and end parameters.

Examples

This code in the DateChanged event prompts the user
to enter a second date after the first date in a range is entered,
and then asks the user to confirm the range selected:

See Also


Document get from Powerbuilder help
Thank you for watching.
Was this article helpful?
Subscribe
Notify of
guest
0 Comments
Oldest
Newest Most Voted
Inline Feedbacks
View all comments
0
Would love your thoughts, please comment.x
()
x