get_time_str(str_argument, size_of_string_to_print_time, string_to_print_time);
returns: If the resulting string in less than size_of_string_to_print_time
(which includes the terminating null-character), the total number of characters
copied to "string_to_print_time" (not including the terminating null-character)
is returned, otherwise it returns 0.
If str_argument is void "" , get_time_str returns -1
Example program:
program example:
import "test2.dll"
private
string system_time;
begin
get_time_str( "The time is %x - %I:%M%p",255,system_time);
write(0,160,100,4,system_time);
while (!key(_esc))
frame;
end
end |