Home > Software engineering >  MFC controls
MFC controls

Time:09-15

Could you tell me if I want to guarantee from the edit control input data does not repeat, how should do? For example, I edit the control input is seat number, to ensure the storage of the seat number if I don't repeat what to do?

CodePudding user response:

When you store data to judge whether there is no first?

CodePudding user response:

The
refer to the original poster qq_45571944 response:
excuse me if I want to make sure from the edit control input data does not repeat, how should do? For example, I edit the control input is seat number, to ensure the storage of the seat number if I don't repeat what to do?


The mysql database

CodePudding user response:

Comparing to the OnOK cycle in

CodePudding user response:

The
refer to the original poster qq_45571944 response:
excuse me if I want to make sure from the edit control input data does not repeat, how should do? For example, I edit the control input is seat number, to ensure the storage of the seat number if I don't repeat what to do?

Your reply database terrified the novice,

First of all, is the seat number you input text, should be stored, such as deposit CStringArray class,
And then the next time you have input, traverse CStringArray, if found, to repeat, will prompt can't input,