Expert help! About database insertion! Urgent! Question from cainiao! Delphi/Windows SDK/API
Http://www.delphi2007.net/DelphiDB/html/delphi_20061218182608236.html
Expert help! I want to insert data into a table! This is the required rule!
You need to manually insert the name, unit, and age in the table! We need to calculate a coefficient by age. The coefficient of 40 is 1. Each increase of 4, the coefficient increases by 0. 05. The minimum age value is 32, and the coefficient is 0.9! Could you tell me how to do this? The coefficient must be inserted automatically and cannot be entered manually! Help!
Trigger
Or, when designing a table, set the coefficient field to the formula associated with age.
Determine the minimum age and coefficient, with edit_nl edit_xs
Zxnl = 32; // minimum age
Xs = 0.9; // coefficient Base
VaR NL: integer;
If (NL: = strtoint (edit_nl.text)> = zxnl then
If (NL-32) mod 4 then
Edit_xs: = intto (Xs + 0.05 );
In this case, OK.