hello the batters!

some years back, roelof provided me with the following coding. this
creates a unique number generated in chronological sequence for all
new, reply and forwarded msgs.


quote

%ModifyOnce(X-Monsell)%-
%SetHeader(&X-Monsell&,&%-
%Calc('%RegRead("HKEY_CURRENT_USER\Software\RIT\The 
Bat!\MessageReferenceNumber", "0") + 1')%-
&)%-
%_RefNo='%Header(X-Monsell)'%-
%If:'%_RefNo'='10000000':'%_RefNo="1"'%-
%RegWrite("HKEY_CURRENT_USER\Software\RIT\The Bat!\MessageReferenceNumber", 
%_RefNo)%-
%_RefNo%-
%Subject='%_RefNo * %OSUBJ'%-

unquote


my question is, is it possible to set the length of numbers to say 7
or 8 digits?? this means that even if the number starts from 1, there
will be zeros appearing before the number. IE; 00000001 and if msg
number is 12345 the number should appear as 0012345.

in order to support the above code, roelof used a plug-in macro.
details as below;

MyMacros 1.11a
Home page: http://en.barin.com.ua/soft/mymacros/
Developer: Andrew Perevodchik <[email protected]>
You can see descriptions of macros in help file in MyMacros distributive.
Automatically-generated list of provided macros follows: 
°       CHR
°       COUNTATTACHMENTS
°       COUNTERTODATE
°       COUNTLINES
°       CUTHERE
°       DATETOCOUNTER
°       DAYSTO
°       EVAL
°       FILEVER
°       FOR
°       FORDOWN
°       GETLINE
°       INPUTBOX
°       KEYBLAYOUT
°       MYMACROSVERSION
°       NUMERICAL
°       OCOUNTATTACHMENTS
°       PREFIX
°       PROGRESSBAR
°       RANDOM
°       REGEXP
°       REGEXPREPLACE
°       REGREAD
°       REGWRITE
°       RUN
°       SMARTQUOTES
°       STRLEN
°       STRREPLACE
°       STRTR
°       STRWRAP
°       SUBJIFNONE
°       TEXTBAR
°       TOIFNONE
°       TRIM
°       UNTIL
°       GETVALUEKEY
°       GETVALUEN
°       GETVALUEREGEXPKEY
°       WHILE
°       WINAMPSTATUS
°       WINAMPTITLE
°       WRAPTEXT


there is no new version of this macro neither do they have any updates
for it.

appreciate your assistance please

thank you


-- 
vernon


________________________________________________
Current version is 5.2.2 | 'Using TBUDL' information:
http://www.silverstones.com/thebat/TBUDLInfo.html

Reply via email to