Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

AcceptText and Validation Expression

508 views
Skip to first unread message

Ingo v. Klenze

unread,
Dec 4, 1997, 3:00:00 AM12/4/97
to

Hi all!

I insert a new row into a DataWindow with InsertRow(). Some of the
colunms
are NULL. For some of these columns 'Required' is active in the
DWPainter
Properties->Edit tab. Furthermore in the Validation Tab there is the
validation expression "Len(GetText()) > 0 AND NOT IsNull(GetText())".
But when I call AcceptText() these NULL columns are not recognized. When
I pass
the columns with keyboard tab or click them the validation test is
executed.
I tried to change the row-columns status to DataModified!.
SetItemStatus()
returns 1 which means successful completion. But when I call
GetItemStatus()
immediately after that I get the status NotModified!.

What is wrong?

Im using PB 5.0.03.

TIA

Ingo

John Strano

unread,
Dec 5, 1997, 3:00:00 AM12/5/97
to

In article <3486D4...@compuserve.com>, ais...@compuserve.com says...
Each dw control has only one edit control which takes user input over the
field/column that currently has item focus. AcceptText() will attempt to
place any text in the edit control into the primary buffer, forcing the
text that the user entered to be tested through the validation process.

AcceptText() will not force validation for all columns, just the current
column.

You may want to consider the FindRequired() function.
--

John Strano
[TeamPS]

Have a heart,
http://home.sprynet.com/sprynet/JCredit/eds_stry.htm

0 new messages