Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
If
Message
From
26/07/2006 09:29:53
Jay Johengen
Altamahaw-Ossipee, North Carolina, United States
 
 
To
26/07/2006 09:24:41
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Title:
Re: If
Miscellaneous
Thread ID:
01140153
Message ID:
01140155
Views:
27
>hi all,
>
>how i can write this code under via correct way ?
>
>Add Object txtstart As TextBox With ;
>    Value = (Date()), Left = 80, Top = 115, Width = 100
>  Add Object cmdCalculate As CommandButton With ;
>    Top = 145, Left = 80, Caption = "Go"
>  Add Object grddistribution As Grid With ;
>    Height = 280, Left = 190, Top = 5, Visible = .F., Width = 280
>
>    ****************************************************************
>IF  day(txtstart.value)=01 or 1 &&
>.
>.
>endif
>
>
>thanks.

I think what you want is:
IF INLIST(ALLTRIM(STR(day(txtstart.value))),"01","1")
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform