Solved

Count is not a member of String

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

Better Security Awareness With Threat Intelligence

See how one of the leading financial services organizations uses Recorded Future as part of a holistic threat intelligence program to promote security awareness and proactively and efficiently identify threats.

Join & Write a Comment

This document covers how to connect to SQL Server and browse its contents.  It is meant for those new to Visual Studio and/or working with Microsoft SQL Server.  It is not a guide to building SQL Server database connections in your code.  This is mo…
International Data Corporation (IDC) prognosticates that before the current the year gets over disbursing on IT framework products to be sent in cloud environs will be $37.1B.
When you create an app prototype with Adobe XD, you can insert system screens -- sharing or Control Center, for example -- with just a few clicks. This video shows you how. You can take the full course on Experts Exchange at http://bit.ly/XDcourse.
This video demonstrates how to create an example email signature rule for a department in a company using CodeTwo Exchange Rules. The signature will be inserted beneath users' latest emails in conversations and will be displayed in users' Sent Items…

757 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

22 Experts available now in Live!

Get 1:1 Help Now