The Forum has been Updated
The code has been upgraded to the latest .NET core version. Please check instructions in the Community Announcements about migrating your account.
Can this be done just as in post.asp?
Any help is appreciated.<
نوشته شده در
Find the following on line 440 and add the code in green:Find the following on line 480 and add the code in green:Change the occurrences of strForumCellColor on lines 487, 535, 543, 544, 545, 552 & 554 to CColor.
Find the following on line 568 and add the code in green:<
Search is your friend
“I was having a mildly paranoid day, mostly due to the
fact that the mad priest lady from over the river had
taken to nailing weasels to my front door again.”
Code:
else
intI = 0
tT_STATUS = 0
tCAT_ID = 1
tFORUM_ID = 2Code:
end if
if intI = 0 then
CColor = strAltForumCellColor
else
CColor = strForumCellColor
end if
Response.Write " <tr>" & vbNewLine & _
" <td bgcolor=""" & strForumCellColor & """ align=""center"" valign=""middle""><a href=""topic.asp?" & ArchiveLink & "TOPIC_ID=" & Topic_ID & """>"Find the following on line 568 and add the code in green:
Code:
rec = rec + 1
intI = intI + 1
if intI = 2 then
intI = 0
end if
next
Search is your friend
“I was having a mildly paranoid day, mostly due to thefact that the mad priest lady from over the river had
taken to nailing weasels to my front door again.”
نوشته شده در
Shaggy:
You are the best. Thank you soooooooooo much. It works very well.
<
You are the best. Thank you soooooooooo much. It works very well.
نوشته شده در
For your second block you could use to condense it.<
Code:
intI=(intI+1) mod 2
نوشته شده در
Oh, there's many other ways to achieve this, some, such as your suggestion, more efficient than what I posted but, for the sake of consistency, I provided code that was already in use on other pages
<
Search is your friend
“I was having a mildly paranoid day, mostly due to the
fact that the mad priest lady from over the river had
taken to nailing weasels to my front door again.”
<
Search is your friend
“I was having a mildly paranoid day, mostly due to thefact that the mad priest lady from over the river had
taken to nailing weasels to my front door again.”
نوشته شده در
In that case consistency of efficiency is the best choice.<
نوشته شده در
Originally posted by phy1729
For your second block you could useCode:to condense it.intI=(intI+1) mod 2
phy1729:
Can you elaborate what you mean? Thanks<
نوشته شده در
He's talking about using modulus division. I tend to use a similar (but not quite the same
) technique when doing this sort of thing in my work. While he's right that that approach is more elegant and probably more efficient, IMHO it probably won't make a noticeable difference.
Ask 10 programmers how to do something and you'll often get 20 different options at minimum.
<
Ask 10 programmers how to do something and you'll often get 20 different options at minimum.
نوشته شده در
As AnonJr said it's a diffrent way to do the same thing +1 adds one and %2 divides by two and takes the remainder.
My personal favorite way to do this is i=i?0:1 which mean is i is true (1) i=0 else (0) i=1 Unfortunately that approach doesn't work in ASP.<
My personal favorite way to do this is i=i?0:1 which mean is i is true (1) i=0 else (0) i=1 Unfortunately that approach doesn't work in ASP.<
نوشته شده در
Originally posted by AnonJr
Ask 10 programmers how to do something and you'll often get 20 different options at minimum.![]()
Ah!! Programers are far better than Economists then. 50 economists will give you 50 different answers to the same question.
Have you heard about the old professor of Macroeconomics who year after year gave the same exam. Only the answer changed year after year!
Thanks for the explanation.<
Email Member
Message Member
Post Moderation
بارگزاری فایل
If you're having problems uploading, try choosing a smaller image.
پیشنمایش مطلب
Send Topic
Loading...