Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Help With scan...endscan (for / while)
Message
From
09/08/1999 12:10:15
 
 
To
09/08/1999 12:05:31
Roy Cohen
Pioneer Management Systems, Inc.
Holyoke, Massachusetts, United States
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00251485
Message ID:
00251545
Views:
8
>I think I mis-stated my problems. Scan and endscan work fine and I think I understand their basic workings...it gets much more interesting when trying to do things like:
>
>Scan while ssn='123-45-6789'
>if there are equal birthdates in this scangroup;
> check for equal firstnames;
> delete one or more of them
>endif
>endscan
>go on to the next ssn
>
>The difficult piece is the creative code around and inside the scan loop that does these tests successfully!

looks pretty trivial - write a SQL select to get the unique set of SSNs, wrap it around the scan, do a SEEK.

BTW, you have a problem if you have two identical SSNs with different birthdays...
EMail: EdR@edrauh.com
"See, the sun is going down..."
"No, the horizon is moving up!"
- Firesign Theater


NT and Win2K FAQ .. cWashington WSH/ADSI/WMI site
MS WSH site ........... WSH FAQ Site
Wrox Press .............. Win32 Scripting Journal
eSolutions Services, LLC

The Surgeon General has determined that prolonged exposure to the Windows Script Host may be addictive to laboratory mice and codemonkeys
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform