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

SetDateLimits – PB Docs 2019 – PowerBuilder Library

SetDateLimits – PB Docs 2019

SetDateLimits

PowerScript function

Description

Sets the maximum and minimum date limits for the calendar.

Applies to

MonthCalendar control

Syntax

Argument

Description

controlname

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

min

A date value to be set as the minimum date that can be
referenced or displayed in the calendar

max

A date value to be set as the maximum date that can be
referenced or displayed in the calendar

Return value

Integer.

Returns 0 when both limits are set successfully and one of the
following negative values otherwise:

-1 — Invalid arguments

-2 — Unknown failure

Usage

Use the SetDateLimits function to set minimum and maximum dates.
SetDateLimits uses the maximum date as the minimum date and vice versa if
you set a maximum date that is earlier than the minimum date.

Examples

This example sets the minimum and maximum dates for a control using
today’s date as the minimum date and a date specified in an EditMask
control as the maximum date:

See also

GetDateLimits


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