Information générale
Catégorie:
Codage, syntaxe et commandes
Well, I'd like to see it run to get a better feel of what it does. I still consider myself quite a beginner, so the visual helps.
>YOu don't need to run it, just look at the database in the stored procedures.
>
>
>>My Tastrade sample is riddled with errors. Do I need my MSDN cd in the drive for it to work properly?
>>
>>
>>
>>>>I need to write a little code that generates a number that equals the last number plus one each time a new record is appended, and writes it to a field in that record when the save button is pressed. It should cancel the number if an exit w/out save is executed.
>>>>
>>>
>>>
>>>Most of us use a strategy similar to this for generating primary keys. the key concept is to store the next available key in a table, and call a procedure that opens the table, locks the record, increments by one, and returns the value. Check out the Tastrade sample that ships with VFP for an idea on how to set this up. (Look in the stored procedures for the database).
>>>
>>>YOu would just need to throw in some additional logic that resets the value at the beginning of the year.
Précédent
Répondre
Voir le fil de ce thread
Voir le fil de ce thread à partir de ce message seulement
Voir tous les messages de ce thread
Voir tous les messages de ce thread à partir de ce message seulement