بسم الله الرحمن الرحيم
لقد طرحت موضوع سابقا للسؤال عن الدالة التي تستطيع حساب الكثافة الكربونية .. والحمدلله ما قصروا الأعضاء معي وتم حل الإشكالية ..
الموضوع القديم : /index.php?showtopic=220837
الآن أعزائي عندي سؤال جديد ..
كما علمنا سابقا بإن الدالة كانت عبارة عن
Carbon intensity = first fuel factor * first fuel percentage + second fuel factor * second fuel percentage .. etc / 100 then multiplyed by 1.09 which is the transmission loss
عموما اعزائي ..
the value of the Fuel percentage is taken from the XML file from the internet which is updated every 5 minutes
The fuel factors are fixed numbers.
Anyway
I want to allow the user to edit and update the fuel factor values. therefore i made a new form with masked texboxes to allow the user to input the new factors
Now, how can i get these valeus entered by the user and store them in my "facotr variables". allowing the user to enter ONLY numbers in the masked textbox

Note: My original factors are stored as "double" i want to be able to write XML as well to save the users input of updated factors
many thanks