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

SetSelectedDate – PB Docs 126 – PowerBuilder Library

SetSelectedDate – PB Docs 126

SetSelectedDate PowerScript function

Description

Selects a specified date.

Controls

MonthCalendar control

Syntax

Argument

Description

controlname

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

d

A date value to be set as the 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 SetSelectedDate function to select
a single date. SetSelectedDate returns -1 if
you try to specify a date that is outside the range of minimum and maximum
dates specified with SetDateLimits.

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 selected date to a date passed
into a function:

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