This is a really cool utility for SAHH.
Looks like it only reads in 6 characters. i.e. GCxxxx. If the cache name is less than 6 characters (i.e. GCxxx), it errors out. If the cache has more than 6 characters, it trunkates the characters off the WPT file that it exports.
Any updates to this utility. It would be very helpfull!
looking at the code, here is where the problem is...
'***** Look for the waypoint (code) name (e.g., GCxxxx)
If InStr(A$, "<name>") > 0 Then
'***** Parse out the waypoint name
WPName$ = Mid$(LTrim(A$), 7, 6)
End If
It's assuming all waypoint (GC) names have exactly 6 characters.
If you treat this section more like the the full waypoint name section....
'***** Look for the waypoint name (e.g., Buddy's Cache)
If InStr(A$, "<Groundspeak:name>") > 0 Then
'***** Parse out the waypoint name
WPClose$ = Mid$(LTrim(A$), 19)
WPClose$ = Mid$(WPClose$, 1, InStr(WPClose$, "</Groundspeak:name>") - 1)
'***** No more than 31 characters in length
WPClose$ = Left$(WPClose$, 31)
End If
This should fix all the problems. I'm not an experienced programmer, but this should be close...
'***** Look for the waypoint (code) name (e.g., GCxxxx)
If InStr(A$, "<name>") > 0 Then
'***** Parse out the waypoint name
WPName$ = Mid$(LTrim(A$), 7)
WPName$ = Mid$(WPName$, 1, InStr(WPName$, "</name>") - 1)
End If