Stompy Posted January 23, 2009 Share Posted January 23, 2009 Does anyone know how I can generate the text from the last x number of logs in the cache description. I know I can use the "number of logs to include" drop down box but for some reason these don't appear in my gps so I think that I need to add in as a macro for it to appear in the description. I can't see a special tag. Quote Link to comment
+StarBrand Posted January 23, 2009 Share Posted January 23, 2009 What brand and model of GPS?? How are you loading the information to it - (as detailed as you can)?? Quote Link to comment
Stompy Posted January 23, 2009 Author Share Posted January 23, 2009 (edited) Its a Satmap Active 10, a UK gps, it needs to be in a gpx file format but the log text needs to be within the description tags <desc> currently they appear in the xmlns:Groundspeak part of the export within </Groundspeak:log> tags. So I want to be able to extrac the log text and insert it at a point in between the <desc> and </desc> tags This is the macro I currently use #Combine Short Description, Long Description $Descriptions=" Details= " + $d_ShortDescription + " " + $d_LongDescription #Strip all HTML tags out of Descriptions $Descriptions=RegExReplace("</?[a-z][a-z0-9]*[^<>]*>", $Descriptions,"") #Strip carriage returns (ASCII 13) out of descriptions $Descriptions=Replace(chr(13)," ",$Descriptions,true) #Strip line feeds (ASCII 10) out of Descriptions $Descriptions=Replace(chr(10)," ",$Descriptions,true) #Strip ambiguous character out of Descriptions $Descriptions=Replace(" ","",$Descriptions,true) #Assign the result to the system variable "$_Special" for use by %macro $_Special=$Descriptions I think that I need to use $d_lText and in some way tell it to go the last log entry probably using goto and then get it to go through say the last 5 entrys to pull the text back and add it to $Descriptions If I append + " " +$d_lText to $Descriptions=" Details= " + $d_ShortDescription + " " + $d_LongDescription It only pulls back the very first log Edited January 23, 2009 by The K9 Crew Quote Link to comment
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.