Login
`
Templates, Tools and Utilities
|
||
Add a comment to an Icetips ArticlePlease add your comments to this article.
Please note that you must provide both a name and a valid email address in order
for us to publish your comment. Comments are moderated and are not visible until they have been approved. Spam is never approved!
Back to article list Search Articles Add Comment Printer friendly Direct link ABC: Delaying the PrimeAutoInc method 1998-07-10 -- Nik Johnson Newsgroups: topspeed.products.c4
> I want to delay the PrimeAutoInc method in a form. This method must be
> called just before insertion. A part of the autoinc key is user
> dependent.
You need to modify the .Ask method for the browse. Copy the code for
BrowseClass.Ask from ABBROWSE.CLW and modify it to eliminate
SELF.PrimeRecord. This will kill the autoincrementing.
If you want to do this often, you may want to derive your own
BrowseClass, adding a switch for killing the autoincrement.
When you go to save the record, the .Insert method for the file manager
should detect that autoincrementing (a) is required and (b) has not been
done. It will then autoincrement without losing your entered data.
Today is November 23, 2024, 2:10 am This article has been viewed 35377 times. Google search has resulted in 9 hits on this article since January 25, 2004.
|
|