Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
C# Equivalent of Mline(Mystring,1)
Message
From
02/11/2019 00:55:31
 
General information
Forum:
C#
Category:
Coding, syntax and commands
Miscellaneous
Thread ID:
01671773
Message ID:
01671775
Views:
63
Likes (1)
>Anybody like to put forward a one line replacement for Mline(MyMemo,1)
>I have Varchar(Max) fields and want to strip out Line 1, Line 2 etc
>This would be simple in VFP--> Mline(MyMemo,1)
>
>Anybody have a one liner that does same in C#

cLine = MyMemo.Split("\n\r":ToCharArray(), StringSplitOptions.RemoveEmptyEntries)[0]
Johan Nel
George, South Africa
Friend of XSharp (FOX) member
E-mail : johan(dot)nel(at)xsinet(dot)co(dot)za
Web site : https://xsharp.info
X# runtime : https://github.com/X-Sharp/XSharpPublic
Radio talk : https://blog.aksel.com/2019/07/why-xsharp-might-be-tool-foxpro.html
Previous
Reply
Map
View

Click here to load this message in the networking platform