vb.net - There is a sort of limit in "New List(Of String)"? -


i made program witch colors different part of text ( notepad++) have problem.

this part of code, in class1

public shared function get_c_html()     dim html_words new list(of string) {"<html>", "<title>", "<b>" _     , "</b>", "<u>", "</u>", "<i>", "</i>", "<sub>", "</sub>", "<sup>", "</sup>", "<a href" _     , "</a>", "<body>", "</body>", "<head>", "</head>", "</font>", "<font>", "<div", "</div", "<title>" _     , "</title>", "<img", "/>", "<link", "<br>", "<ul>", "</ul>", "<li>", "</li>" _     , "<table>", "</table>", "<tr>", "</tr>", "<td>", "</td>", "<meta>", "</meta>" _     , "meta", "<background>"}     dim icountmatch integer = 0     each blue string in html_words         icountmatch = highlightwords(form1.rchtml, blue, color.blue)     next     return 0 end function 

program works , highlight text, if add "/html" in html_words program did not starts.

i tryed add anoter public shared function give me same "error".

program works , highlight text, if add "/html" in html_words program did not starts.

the list statement working fine. problem highlightwords function.

on side note if you're not going return meaningful value should use sub instead of function


Comments

Popular posts from this blog

css - Which browser returns the correct result for getBoundingClientRect of an SVG element? -

gcc - Calling fftR4() in c from assembly -

Function that returns a formatted array in VBA -