Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Beginner
Message
From
07/11/2006 07:42:51
 
 
To
07/11/2006 07:37:27
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Title:
Environment versions
Visual FoxPro:
VFP 9
OS:
Windows XP
Network:
Windows XP
Database:
Visual FoxPro
Miscellaneous
Thread ID:
01167612
Message ID:
01167626
Views:
8
>Thanx for the help Terry another Q for if ur not to busy
>
>Is there somthing wrong with this expression as its giving me an error.
>
>
>
>SELECT ehrbt
>LOCATE
>SCAN FOR BETWEEN(ldDate,from_date,to_date) !EOF() &&lddate = user date input
>
>Thanx

Bilal

You seem to be mixing up a DO WHILE and a SCAN construct. It's the !EOF() that's throwing the code. I'm not sure you can put them on the same line either (I certainly never have, and it makes the code less readable). Scan already implies until EOF, and your scope clause takes care of what rec's are uincluded in the scan.
See below:

SCAN FOR BETWEEN( ldDate, from_date, to_date)
EndSCAN
- Whoever said that women are the weaker sex never tried to wrest the bedclothes off one in the middle of the night
- Worry is the interest you pay, in advance, for a loan that you may never need to take out.
Previous
Reply
Map
View

Click here to load this message in the networking platform