Hoi guys,
I want to start again with de format library, but before creating a library nobody is interested in, I would like to discus how to continue. My idea is to add to print.jal functions like print_date and print_time en create a format lib only dealing with format. Now print.jal and format.jal are almost the same, what can be very confusing. About format I would like to assign a global array called digit[] as big as the amount off digits of the biggest variable + 2 (- sign and decimal point). For word variable this is 7 but for dword this is 12 for example: format_word_dec (variable , amount of digit numbers, amount of digits behind the point) so format_word_dec(125,4,2) should result in digit[0] = “1”, digit[1] = “.” digit[2] = “2”, digit[3] = “5” and digit[4] till digit[11] = “NUL” format_word_dec(2346,5,0) should result in digit[0] = “0”, digit[1] = “2” digit[2] = “3”, digit[3] = “4”, digit[4] = “6” and digit[5] till digit[11] = “NUL” format_word_dec(5678,3,0) should result in digit[0] = “*”, digit[1] = “*” digit[2] = “*”,and digit[3] till digit[11] = “NUL” with format_print (device) we can send the array digit[] fully or partly (until variable has value “NUL”) to the selected device. Or in the print library, print_format(device) It would be nice if we can (re)assign the digit[] array in a procedure or function so that we can limiting the amount off used memory. In that case the digit[] array must be as big as variable “amount of digit numbers” or if variable “amount of digit numbers” is zero, as big as the amount of digits of the variable it self. Anybody an better idea or maybe some more suggestions? Greetz Richard --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "jallib" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/jallib?hl=en -~----------~----~----~----~------~----~------~--~---
