Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Loops
Message
From
04/04/2007 14:31:32
Dragan Nedeljkovich (Online)
Now officially retired
Zrenjanin, Serbia
 
 
To
04/04/2007 13:57:34
Walter Meester
HoogkarspelNetherlands
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Title:
Re: Loops
Environment versions
Visual FoxPro:
VFP 9 SP1
OS:
Windows XP SP2
Network:
Windows 2000 Server
Database:
Visual FoxPro
Miscellaneous
Thread ID:
01211796
Message ID:
01212140
Views:
11
I'd rather skip the evals altogether... using a scatter name object and GetPem(). See how it'd look

>If some reason this is less desireble I'd go for:
>
>
>lFound=.F.
>Select (cMembdepalias)
>SCAN WHILE lFound = .f.
	scatter name loRec memo
	with loRec
>	DO CASE
>		CASE Not Empty(cDepssn) And Not .ssn==cDepssn)
>
>		CASE Not (Alltrim.lastname)==cExtdeplastname)
>
>		CASE Not (Alltrim(.firstname))==Alltrim(GetPem(oExtmember,'dep'+cLoop+'fname')))
>		CASE Not .deptype ==cDeptype)
>		
>                CASE Not  .gender ==Getpem(oExtmember,'dep'+cLoop+'sex'))
>
>		CASE  .dob <>getpem(oExtmember, 'dep'+cLoop+'birth')
>
>                CASE .termdate <>getpem(oExtmember, 'dep'+cLoop+'termdt')
... etc etc
	endwith
endscan
... etc etc
>

back to same old

the first online autobiography, unfinished by design
What, me reckless? I'm full of recks!
Balkans, eh? Count them.
Previous
Reply
Map
View

Click here to load this message in the networking platform