a 3D Spinning worlds w/text
This code shows you how to use DirectX 7 and the RM Canvas control to create nice animations that are smooth and simple. It shows you how to create lights, frames animation and more.
AI
Riepilogo AI: This codebase represents a historical implementation of the logic described in the metadata. Our preservation engine analyzes the structure to provide context for modern developers.
Codice sorgente
Upload
INSTRUCTIONS:
Call the function from you code like below:
strResults=TrimHTML ("Plain Text.<BR><B>Should be bold!</B><BR><b>Should be bold</B><BR><i>should be italics</i><BR><B><I>Bold + italics!</B></i>","b,i,BR")
In this case, strRestuls will hold the new text. Notice that I have specified 3 tags which I dont want it to remove from the string. You can do as many as you want but remember that you should not put the "<" and ">" around them when calling this function.
If you want it to remove all HTML tags, then use then specify "" as the second perimeter when calling the function... heres an example:
strResults=TrimHTML ("Plain Text.<BR><B>Should be bold!</B><BR><b>Should be bold</B><BR><i>should be italics</i><BR><B><I>Bold + italics!</B></i>","")
---------------------------------------
<%
strResults=TrimHTML ("Plain Text.<BR><B>Should be bold!</B><BR><b>Should be bold</B><BR><i>should be italics</i><BR><B><I>Bold + italics!</B></i>","")
Response.Write strResults
Function TrimHTML (strHTML,arrDontTrim)
strHTML=Replace(strHTML,"<","<")
strHTML=Replace(strHTML,">",">")
If len(arrDontTrim)<>0 Then
arrDontTrim=Split(arrDontTrim,",")
For i = 0 to ubound(arrDontTrim)
strHTML=Replace(strHTML,"<" & arrDontTrim(i) & ">","<" & arrDontTrim(i) & ">",1, -1, vbTextCompare)
strHTML=Replace(strHTML,"</" & arrDontTrim(i) & ">","</" & arrDontTrim(i) & ">",1, -1, vbTextCompare)
Next
End If
TrimHTMl= strHTML
End Function
%>
Commenti originali (3)
Recuperato da Wayback Machine