How to concatenate a HEX BCD value with a string as a new string?


Results 1 to 4 of 4

Threaded View

  1. #1
    Join Date
    Mar 2009
    Location
    Colorado
    Posts
    378

    Default How to concatenate a HEX BCD value with a string as a new string?

    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
    Last edited by jellis00; - 3rd December 2011 at 18:03.

Members who have read this thread : 1

You do not have permission to view the list of names.

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts