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

SetSelectedRange – PB Docs 126 – PowerBuilder Library

SetSelectedRange – PB Docs 126

SetSelectedRange PowerScript function

Description

Sets the range of selected dates.

Controls

MonthCalendar control

Syntax

Argument

Description

controlname

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

start

A date value to be set as the earliest
date selected

end

A date value to be set as the latest
date selected

Return Values

Integer. Returns 0 for success and one
of the following negative values otherwise:

  • -1

    Invalid arguments

  • -2

    Unknown failure

Usage

Use the SetSelectedRange function to select
a range of consecutive dates.

SetSelectedRange uses the start date as
the end date and vice versa if you specify an end date that is earlier
than the start date. You must set the MaxSelectedCount property
to a value large enough to support the range before calling SetSelectedRange. SetSelectedRange returns
-1 if the dates you specify are outside the range of minimum and
maximum dates specified with SetDateLimits, or
if the range exceeds MaxSelectedCount. If the start and end dates
are the same, a single date is selected.

If the user scrolls the calendar with the navigation buttons
when a date range is selected, the date range changes as the calendar
scrolls.

SetSelectedDate and SetSelectedRange trigger
a DateChanged event. You should not call either method in a DateChanged
event, paticularly using the Post method.

Examples

This example sets the start date of the selected
range to startdate and the end date to enddate:

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