In my code, at run time i can get num value as zero so want to add condition like if num value is zero then skip one of the sub statements otherwise add in string statement.
String Statement =
"Timer Main\r\n"
"Sharm \tv7 (" + IntToStr(Value) + ")\r\n"
"Get All Values \t" + FloatToStr((float)GetAllValues/50, 1, 2) + "\r\n"
"Sum of Values \t" + FloatToStr((float)SumOneValue/50, 2, 4) + "\r\n"
"% for \t" + FloatToStr(((float)num)*100.0, 12,
2) + "\r\n\r\n"
"--------------------------------\r\n"
Aucun commentaire:
Enregistrer un commentaire