Erm.. I'm not quite sure I understood what you're asking here, but if it is, the value you're looking for (i.e. the Post counter for each topic) is already stored in intCurrentRecord..
So, let's assume I understood your request.. Find these lines :
'Display message post date and time
Response.Write(strTxtPosted & " " & DateFormat(dtmPostDate) & " " & strTxtAt & " " & TimeFormat(dtmPostDate))
|
And add intCurrentRecord +1 in front of it.. The plus 1 is because like everything in ASP, counters start at 0..
Here would be an example :
Response.Write("#" & intCurrentRecord + 1 & "-" & strTxtPosted & " " & DateFormat(dtmPostDate) & " " & strTxtAt & " " & TimeFormat(dtmPostDate))
|