Solved

Count is not a member of String

Posted on 2007-04-03
3
724 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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

Free Tool: Site Down Detector

Helpful to verify reports of your own downtime, or to double check a downed website you are trying to access.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

In my previous two articles we discussed Binary Serialization (http://www.experts-exchange.com/A_4362.html) and XML Serialization (http://www.experts-exchange.com/A_4425.html). In this article we will try to know more about SOAP (Simple Object Acces…
Real-time is more about the business, not the technology. In day-to-day life, to make real-time decisions like buying or investing, business needs the latest information(e.g. Gold Rate/Stock Rate). Unlike traditional days, you need not wait for a fe…

733 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