Solved

Count is not a member of String

Posted on 2007-04-03
3
715 Views
Last Modified: 2013-11-07
Hello,

I have this code and gives me a error "count is not a member of String"....?


'++++++++++++ Start Code +++++++++++++
Dim sNeeded As String = sBenodigheden
y += 10

While sNeeded.Length > 0
    Dim i As Integer = sNeeded.IndexOf("<")
    If i > 0 Then
        If (sNeeded.Substring(0, i).count > 10) Then
            sc.Add(265, y, New RepString(fpText, "•" + " " + sNeeded.Substring(0, 10)))
            y += 10
            sc.Add(265, y, New RepString(fpText, "•" + " " + sNeeded.Substring(10, i)))
        Else
            sc.Add(265, y, New RepString(fpText, "•" + " " + sNeeded.Substring(0, i)))
        End If
        sNeeded = sNeeded.Remove(0, i + 4)
    Else
        sc.Add(265, y, New RepString(fpText, "•" + " " + sNeeded))
        Exit While
    End If
    y += 10
End While
'++++++++++++ End Code +++++++++++++

Thank,
HP van Hagen
WvR
0
Comment
Question by:WvR
  • 2
3 Comments
 
LVL 19

Accepted Solution

by:
DreamMaster earned 125 total points
ID: 18842053
Try using length instead of count.

Regards,
Max.
0
 
LVL 1

Author Comment

by:WvR
ID: 18842114
Thanks Max!
0
 
LVL 19

Expert Comment

by:DreamMaster
ID: 18842126
You're very welcome WvR,

Regards,
Max.
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Many of us here at EE write code. Many of us write exceptional code; just as many of us write exception-prone code. As we all should know, exceptions are a mechanism for handling errors which are typically out of our control. From database errors, t…
User art_snob (http://www.experts-exchange.com/M_6114203.html) encountered strange behavior of Android Web browser on his Mobile Web site. It took a while to find the true cause. It happens so, that the Android Web browser (at least up to OS ver. 2.…
Internet Business Fax to Email Made Easy - With eFax Corporate (http://www.enterprise.efax.com), you'll receive a dedicated online fax number, which is used the same way as a typical analog fax number. You'll receive secure faxes in your email, fr…
Edureka is one of the fastest growing and most effective online learning sites.  We are here to help you succeed.

912 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

19 Experts available now in Live!

Get 1:1 Help Now