I have a byte sized variable named 'hr' that stores the HEX BCD value of the current hour from reading the time from a real-time-clock.
I want to concatenate this BCD value with the string "hour" and then concatenate the result with the string ".txt".
For example, if hr = the BCD value $12 for 12 o-clock, I want to concatenate the HEX2 conversion of hr (which is the value 12) with a string named "hour" so that the results will be a new string = "12hour". Then I intend on concatenating the string "12hour" with the string ".txt" to build a file name for a text file that the code will use to identify a website based file name to which an FTP of data will be directed.
I thought I might be able to use ARRAYWRITE to do this somewhow, but I can't figure it out.
Can anyone give me some ideas as to how to do this. I am not well versed on string operations while using PBP.
John
Bookmarks