Home > Back-end >  Title system
Title system

Time:09-17

Required for work, going to write A simple question bank system, draw the question bank and database, using Delphi plait interface, using ado link is successful, use inside interface control shows the single choice first qid, subject, four options, the back of the correct answer hidden fields, select field empty, empty, is whether it is right or wrong field the ABCD button below the combo box also have, but how the next point A button is in the select field fill in A value, and then automatically judge right and wrong field and show the right or wrong, I don't know how to code? Leave you, thank you.

CodePudding user response:

After you ordered A button, A value to fill in to select field in the ah, editing data connection control into the state, to select field direct assignment, and then save,

Finally compare the select field with the correct answer is the same, the same is to the right and wrong field assignment for the correct, or assignment for the mistake,

Similar to the following:

XX:=ClientDataSet1 FieldByName (' field name). AsString; It's out in the field values

ClientDataSet1. FieldByName (' field name) AsString:='XXXX'; This is to a field assignment,
  • Related