Posted: Mon Nov 23, 2015 9:46 pm Post subject: String substring insertion issue and question
I know in the help database, you can insert a substring into a given string with the MID command.
Well, in my application, I have a tag line of this: <%T> Which is something I made up.
Problem is, I want to replace that with the time. So, I have a subroutine that grabs the DS1307 information and formats it into a string as: "12:00PM"
So, I replace <%T> with "12:00PM" And it should work fine right?
Well... the problem with MID is it requires a given start position. Well, what if you dont know that start position? Where the tagline is placed in the string could be dynamic, so how do we deal with that? Just curious.
I need some way to scan for it anyway because I need to know if the tag is present before running the subroutine and inserting the time.
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum You cannot attach files in this forum You cannot download files in this forum