Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Checking for NO entry in textbox (Date type datasource)
Message
From
24/06/2003 08:57:31
Cetin Basoz
Engineerica Inc.
Izmir, Turkey
 
 
To
24/06/2003 08:38:21
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00803233
Message ID:
00803242
Views:
9
>I have code that is failing for Form submitted with a series of database table backed Textbox fields.
>
>It is failing on check for length of 0 on field that has Date type table field as data source:
>
>IF(LEN(ALLTRIM(Thisform.cntnrLarDates.txtLar_datercv.Value))=0)
> =MESSAGEBOX("You must enter LAR Dates - Date Received"+CHR(13)+;
> "Press Save again after entering it.",d_nExclamation+d_nOkbutton,"LAR - Required Fields")
> Thisform.cntnrLarDates.txtLar_datercv.SetFocus()
> RETURN
>ENDIF
>
>Control source for txtLar_datercv is: dd_lar.lr_recdate (Date type field)
>
>
>Error is:
>
>Function argument value, type, or count is invalid.
>
>Error triggered on IF statement shown above.
>
>F.Z. - Boston MA

IF (empty(Thisform.cntnrLarDates.txtLar_datercv.Value))

or :
if empty(dd_lar.lr_recdate)

Cetin
Çetin Basöz

The way to Go
Flutter - For mobile, web and desktop.
World's most advanced open source relational database.
.Net for foxheads - Blog (main)
FoxSharp - Blog (mirror)
Welcome to FoxyClasses

LinqPad - C#,VB,F#,SQL,eSQL ... scratchpad
Previous
Reply
Map
View

Click here to load this message in the networking platform