
|
INFO - FAQ - CC2-Forum - CCPro-Forum |
|
||
|
> if a <= 51 then > print (a * 5) & "0" > else > c = a / 10 > b = a mod 10 > print ((c * 5) + ((b * 5) / 10)) & ((b * 5) mod 10) & "0" > end if > Ich sehe grade... es müsste auch ohne den oberen IF Teil gehen ... also zum Beispiel so: define a as byte, b as byte, c as byte do sende_frequenz(freq) loop end function sende_frequenz(f ref a) c = (f / 10) * 5 b = (f mod 10) * 5 print (c + (b / 10)) & (b mod 10) & "0" end function Meine Homepage: http://www.fdos.de |
| Antwort schreiben |