Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Very Bad Bug in VFP5.0 and VFP6.0 !!!
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Divers
Thread ID:
00171436
Message ID:
00171727
Vues:
36
Christof and Folks,

I do it this way (recycling deleted records);
LOCAL lcAlias, lcOrder, lcDeleted
lcAlias = ALIAS()
SELECT DesiredTable

lcDeleted = SET("DELETED")
lcOrder = ORDER()

SET ORDER TO Dels && my idex on deleted

GO BOTTOM
IF DELETED()
   * Reuse it
ELSE
   * Make a new one
ENDIF

SET DELETED &lcDeleted
IF NOT EMPTY( lcOrder )
   SET ORDER TO &lcOrder
ELSE
   SET ORDER TO 0
ENDIF
IF NOT EMPTY( lcAlias )
   SELECT (lcAlias)
ELSE
   SELECT 0
ENDIF
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform