Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Resort after delete at mygrid
Message
De
30/09/2004 09:21:38
Dragan Nedeljkovich (En ligne)
Now officially retired
Zrenjanin, Serbia
 
 
À
30/09/2004 05:31:15
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00947441
Message ID:
00947494
Vues:
17
>hi all,
>i need some help for...
>if i delete 1 records or more ,how i can resort number of records at mygrid.
>
>my code under to count when i insert the items
>
>at this form.text7.value
>... operatins
>COUNT TO S
>s=s+1..........records counter
>
>thanks
>m.qasem

It should be enough to put

thisform.text7.value=s

though that may not be the cleanest way to do it... you may just create a form property, say thisform.recc, and then have that propery be the controlsource of text7. Then

thisform.recc=s
thisform.refresh()

This way the code where you count the records doesn't need to know about text7. Now your code won't break if you rename, remove, move text7 into a container, onto a page of a pageframe 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