Solved

Count is not a member of String

Posted on 2007-04-03
3
723 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

MIM Survival Guide for Service Desk Managers

Major incidents can send mastered service desk processes into disorder. Systems and tools produce the data needed to resolve these incidents, but your challenge is getting that information to the right people fast. Check out the Survival Guide and begin bringing order to chaos.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
MailAddress in vb 4 29
SSRS Deployment problem 5 66
asp.net mvc 2 25
Visual Studio npm 1 12
For those of you who don't follow the news, or just happen to live under rocks, Microsoft Research released a beta SDK (http://www.microsoft.com/en-us/download/details.aspx?id=27876) for the Xbox 360 Kinect. If you don't know what a Kinect is (http:…
Today I had a very interesting conundrum that had to get solved quickly. Needless to say, it wasn't resolved quickly because when we needed it we were very rushed, but as soon as the conference call was over and I took a step back I saw the correct …
Microsoft Active Directory, the widely used IT infrastructure, is known for its high risk of credential theft. The best way to test your Active Directory’s vulnerabilities to pass-the-ticket, pass-the-hash, privilege escalation, and malware attacks …
Although Jacob Bernoulli (1654-1705) has been credited as the creator of "Binomial Distribution Table", Gottfried Leibniz (1646-1716) did his dissertation on the subject in 1666; Leibniz you may recall is the co-inventor of "Calculus" and beat Isaac…

829 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