@C.Utzinger wrote:
This is a very good start.
The only Problem now is that ther could be different fomat:....
....
Sorry if this is a bigger Problem :(...
Please help and Kind regards...
Its not that big a deal to modify the code to consider all other formats.AND we're not going to let a little thing like that stop us 🙂
Try and replace the the _split line to:
(setq _split (lambda (a)
(setq p (vl-some '(lambda (j)
(if (setq j (vl-string-position j a nil t)) j))'( 45 59))
)
(if p (list (substr a 1 (1+ p)) (substr a (+ 2 p))) a)))
Try it and tell me how it goes
pBe
I just realized what you meant by others, I will tweak it a bit more and add a prompt for the number format 1 / 01 / 001 etc..
We may not need the prompt though, Answer me this, if one value format is 001 i assume the rest are the same?
Also, i saw that you can write a code yourself, try to come up with a solution, If all else fails, we can always continue ...