Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Dragging the other of fields names.
Message
De
25/02/1998 12:10:51
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Fonctions Windows API
Divers
Thread ID:
00080530
Message ID:
00081122
Vues:
25
>>Hi Jim
>>My user want to be able to INSERT a record (using a GRID) right below the current record by clicking on a INSERT button. The table I am using only has 3 fields, NAME,DATE,SORTFLD. In most cases the dates will be the same value. I am having problems on how to approach this problem. I can use the SORTFLD (a float) to do my sorting. There will probably not be anymore than five records in the GRID. This is my problem. :)))))))
>
>Robert, when the suer clicks the button the recrod pointer in the recordsource for the grid is sitting on the record tehy were on. You can simply
>
>
>INSERT INTO GridSource (SortFld)
> VALUES (GridSource.SortFld + .001)
>
>Then refresh the grid.
---
Hi Jim

Your code does INSERT a record, but what if the user tries to
INSERT a record using the record they just inserted as the current record.
example…
SORTFLD = 2.000
They insert and the new record is SORTFLD= 2.001
The current record is SORTFLD= 2.001
They insert and the new record is SORTFLD= 2.002
The current record is SORTFLD= 2.001
If they insert here, the new record will be SORTFLD= 2.002 (again)
What do you think?
Robert Keith
Independent Developer
San Antonio, Texas
E-mail address:
rebelrob1@yahoo.com
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform