SetDateLimits – PB Docs 126

SetDateLimits PowerScript function

Description

Sets the maximum and minimum date limits for the calendar.

Controls

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 Values

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


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