General information
Category:
Coding, syntax and commands
Environment versions
Network:
Windows 2000 Server
Hi Alex,
>The if..elseif example mentioned in this thread is working fine now and is fast enough.
ok, but [for mental gymnastics only, since it is "learnwork"] perhaps I was a bit too short in my answer.
My assumption on eliminating dates stem from the fact that the characteristic strings in
your examples are (vfp code for easier experimentation...) sitting to the left of a systematic file ending.
So I'ld try to parse from the right, and either find a static start point or a dynamic one
function signifStr(tcFile)
* snip date-part on right side
tcFile = LEFT(m.tcFile, RAT("-", m.tcFile, 2)-5)
#if .t. && static or dynamic ??
return RIGHT(m.tcFile, 13)
#else
return Right(m.tcFile, Rat(" ", m.tcFile, 3)
#endif
The resulting string, if the function can be written to return a significant string,
could be the key to a collection or it's hashkey could be examined or a crc32-number could be generated...
regards
thomas
Previous
Reply
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only