Link to home
Start Free TrialLog in
Avatar of tmurray22
tmurray22

asked on

ASP html need to trim value

I have a form hat produces checkboxes dynamically. The values though are too long. How do  
just get it to display the first 40 charatacters.

here is my code:

%>
<tr><td><input type=checkbox name=build <%=strSelected%> value="<%=objRS("cis")%>"></td>
<td><%=objRS("cis")%></td>
</tr>
<%
Avatar of Ryan Chong
Ryan Chong
Flag of Singapore image

maybe..

cis = left("" & objRS("cis"), 40)
%>
<tr><td><input type=checkbox name=build <%=strSelected%> value="<%=cis%>"></td>
<td><%=objRS("cis")%></td>
</tr>
<%
ASKER CERTIFIED SOLUTION
Avatar of Ryan Chong
Ryan Chong
Flag of Singapore image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial