string valeur = ligne.Split(ChrW(59))(0);
what is the equivalent of that in C# please???
rminator 0 Junior Poster in Training
Recommended Answers
Jump to PostIts taking a string called ligne, splitting it at char 59 (that's a semicolon), and assigning valeur as index zero of the split.
C# equivalent of that
string valeur = ligne.Split(';')[0];
Jump to PostErm..that code above is already in C#.
Jump to PostDid that work?
Jump to PostThe ChrW() function "returns a character associated with the specified character code."
Here's a list of character codes. DEC 59 is a ';'. :)
EDIT: I am sorry, I've never even …
All 14 Replies
samueal 0 Junior Poster
rminator 0 Junior Poster in Training
samueal 0 Junior Poster
rminator 0 Junior Poster in Training
samueal 0 Junior Poster
rminator 0 Junior Poster in Training
WildBamaBoy 19 Junior Poster
samueal commented: Good one. +4
WildBamaBoy 19 Junior Poster
rminator 0 Junior Poster in Training
WildBamaBoy 19 Junior Poster
samueal 0 Junior Poster
rminator 0 Junior Poster in Training
WildBamaBoy 19 Junior Poster
samueal 0 Junior Poster
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.