Information générale
Catégorie:
Code, syntaxe and commandes
Versions des environnements
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
Précédent
Répondre
Voir le fil de ce thread
Voir le fil de ce thread à partir de ce message seulement
Voir tous les messages de ce thread
Voir tous les messages de ce thread à partir de ce message seulement