Auto-increment mark Problems

Source: Internet
Author: User
Questions about auto-increment identity: Delphi/Windows SDK/API
Http://www.delphi2007.net/DelphiBase/html/delphi_20061207141109242.html
I made a registry, with ID as the identifier, each auto-increment. during registration, I need to enter the password and user name. when running the command, the system prompts that the "ID" must be assigned... how can I solve this problem... thank you for your advice.

Code As follows:
Begin
Userload. append;
Userload. Fields [3]. asinteger: = right;
Userload. Fields [1]. asstring: = edit1.text;
If (edit2.text = edit3.text) then
Begin
Userload. Fields [2]. asstring: = edit3.text;
End
Else
Begin
Application. MessageBox ('the password is inconsistent. Please enter it again! ', 'Records not found', mb_ OK );
Edit2.text: = '';
Edit3.text: = '';
End;
Userload. post;
Userload. Refresh;

Userload. Fields [0] In the table is ID

Let's take a look...

How can I deal with the auto-increment Id set in my table !? Assign a value to it when adding it, prompting that the display value cannot be added. If no operation is performed, the ID must have a value? What should I do?

This value should be automatically added by the system. How can I ask you to operate it ??

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.