Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
SCAN and DO WHILE logic
Message
 
 
À
28/10/2008 20:18:44
Jay Johengen
Altamahaw-Ossipee, Caroline du Nord, États-Unis
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Versions des environnements
Visual FoxPro:
VFP 9 SP2
OS:
Vista
Network:
Windows 2008 Server
Database:
MS SQL Server
Divers
Thread ID:
01357888
Message ID:
01357900
Vues:
17
Jay,

Forget about double DO WHILE. Use one simple scan solution with IF/ENDIF. I use it all the time.
Message #1357894

>That does exactly the same thing. It still leaves the inner DO WHILE when the GroupHeading value changes and does not blank out the remainder of the set of records. I end up with every other record blanked out.
>
>>Replace the SCAN/ENDSCAN with another DO WHILE
>>
>>SELECT WorkListXMLCursor
>>GO TOP
>>DO WHILE !EOF()
>>      GroupHeading = GroupHeading
>>      DO WHILE GroupHeading = m.GroupHeading
>>            SKIP
>>            REPLACE GroupHeading WITH ""
>>      ENDDO
>>      SKIP
>>ENDDO
>>
If it's not broken, fix it until it is.


My Blog
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform