Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Loops
Message
De
04/04/2007 14:31:32
Dragan Nedeljkovich (En ligne)
Now officially retired
Zrenjanin, Serbia
 
 
À
04/04/2007 13:57:34
Walter Meester
HoogkarspelPays-Bas
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Titre:
Re: Loops
Versions des environnements
Visual FoxPro:
VFP 9 SP1
OS:
Windows XP SP2
Network:
Windows 2000 Server
Database:
Visual FoxPro
Divers
Thread ID:
01211796
Message ID:
01212140
Vues:
12
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.
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform