Home > front end >  String to a variable spliced together
String to a variable spliced together

Time:03-20

"Sum" & amp; I="sum" & amp; I + 100
<% % next & gt;

String to a variable joining together into a variable and then accumulate, prompt error

CodePudding user response:

[code=asp] Sum<%=I % & gt;="sum<%=I % & gt; + 100
<% % next & gt; [/code]
 & lt; % for I=0 to 100 
The eval (" sum "& amp; I & amp; "=" sum "& amp; I & amp; "+ 100")
Next % & gt;
read your wonderful work needs,
  •  Tags:  
  • ASP
  • Related