Connecting a line in ASP to continue writing programs

zhaozj2021-02-16  156

Sometimes you may encounter a problem, that is, a certain narrative in the program is too long. Written in the same line looks very hard and ugly, so I want to change this narrative. Write.

People who are familiar with VBScript know that they are equal to another program, if you cut a narrative from the middle, then there will be a big mistake.

For example, it should be such a row of narration:

Strurl = "Content.asp? id =" & itopiciD & "&" "" "VIP") & "& Topic =" & Server.urlencode (Request.QueryString ("Topic")))

Should be put it down:

Strurl = "Content.asp? id =" & itopicid & "&" & VIP = "

& Request.QueryString ("VIP") &

"& Topic =" & Server.urlencode (Request.QueryString ("Topic")))

This will be wrong! However, coupled with a wrap character "_" (bottom line), then there is no problem! The code like this is OK!

Strurl = "Content.asp? id =" & itopicid & "& vip =" _

& Request.QueryString ("VIP") & _

"& Topic =" & Server.urlencode (Request.QueryString ("Topic")))

The wrap font (bottom line) is equal to telling the program, this narrative is going to continue! In this way, the program code is not to be beautiful and easy to read?

转载请注明原文地址:https://www.9cbs.com/read-8347.html

New Post(0)