View unanswered posts | View active topics



Reply to topic  [ 1 post ] 
Code Snippet feature: random numbers, incrementing numbers. 
Author Message
Member

Joined: Tue Jan 17, 2012 3:19 am
Posts: 5
I would like to have an incrementing number for each time a snippet is placed on a page. Something like:

Code:
trace("$(TypPkg).$(TypName).$(MbrName)() $(Clipboard) ($snippetIncrement) = " + $(EntryPoint)$(Clipboard)$(ExitPoint));


with
Code:
snippetIncrement
being replaced with the next integer.

I realize this may be difficult to implement, so -- as an alternative -- I would like a random number generator. E.g.:

Code:
trace("$(TypPkg).$(TypName).$(MbrName)() $(Clipboard) ($snippetRandom) = " + $(EntryPoint)$(Clipboard)$(ExitPoint));


with
Code:
snippetRandom
being a random number. The length of the number could be fixed (e.g., 8 bytes or whatever).


Wed Feb 01, 2012 5:00 am
Profile
Display posts from previous:  Sort by  
Reply to topic   [ 1 post ] 

Who is online

Users browsing this forum: No registered users and 1 guest


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
cron
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group.
Designed by ST Software for PTF.