StrataFrame Forum
Back
Login
Login
Home
»
.NET Forums
»
General .NET Discussion
»
Overriding ToString...
Overriding ToString...
Post Reply
Like
0
Overriding ToString...
View
Flat Ascending
Flat Descending
Threaded
Options
Subscribe to topic
Print This Topic
RSS Feed
Goto Topics Forum
Author
Message
Trent Taylor
Trent Taylor
posted 17 Years Ago
ANSWER
Post Details
Share Post
Group: StrataFrame Developers
Posts: 6.6K,
Visits: 6.9K
Wrap it with a property that returns the value you expect:
Public ReadOnly Property RecurseSubFoldersString As String
Get
If _RecurseSubFolders
Return "YesValue"
Else
Return "NoValue"
End If
End Get
End Property
Reply
Like
0
StarkMike
StarkMike
posted 17 Years Ago
ANSWER
Topic Details
Share Topic
Group: Forum Members
Posts: 436,
Visits: 944
Say I have a boolean variable named RecurseSubFolders... how can I override the ToString method of this boolean variable?
If the boolean is True, I want the ToString to return -r
If the boolean is False, I want the ToString to return ""
Any ideas?
Reply
Like
0
GO
Merge Selected
Merge into selected topic...
Merge into merge target...
Merge into a specific topic ID...
Open Merge
Post Reply
Like
0
Similar Topics
Post Quoted Reply
Reading This Topic
Login
Login
Remember Me
Reset Password
Resend Validation Email
Login
Explore
Messages
Mentions
Search