Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Vfp50 - Using BLANK records as new records?
Message
De
21/05/1997 23:19:56
Larry Long
ProgRes (Programming Resources)
Georgie, États-Unis
 
 
À
21/05/1997 09:57:14
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Divers
Thread ID:
00032970
Message ID:
00033219
Vues:
45
>>
>>The "do while not eof()" is going to be a drag on performance. Why not just search for one record since you are only adding one record? Maybe some thing like this...
>>
>>*SAVE CURRENT "SET DELETE" STATE
>>STORE SET("DELETE") TO DELE_STATE
>>*TURN IT OFF
>>SET DELE OFF
>>
>>
>>*SAVE CURRENT INDEX ORDER
>>STORE ORDER() TO M.ORDER_STATE
>>*TURN IT OFF
>>SET ORDER TO 0
>>
>>LOCA FOR DELETED() OR EMPTY(NAME)
>>
>>IF NOT FOUND()
>> APPEND BLANK
>>ELSE
>> RECALL
>>ENDIF
>>
>>THISFORM.GRID1.COLUMN1.SETFOCUS
>>
>>*RESTORE "SET DELETE" STATE
>>SET DELE &DELE_STATE
>>
>>*RESTORE INDEX ORDER
>>IF NOT EMPTY(M.ORDER_STATE)
>> SET ORDER TO (M.ORDER_STATE)
>>ENDIF
>
>In your code, when I do the recall, it does not use the deleted record
>as the new record?
>thanks...rob

I thought you wanted to reuse the record if one was deleted or empty?
L.A.Long
ProgRes
lalong1@charter.net
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform