Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
C# Equivalent of Mline(Mystring,1)
Message
De
02/11/2019 00:55:31
 
Information générale
Forum:
C#
Catégorie:
Code, syntaxe and commandes
Divers
Thread ID:
01671773
Message ID:
01671775
Vues:
64
J'aime (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
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform