Val() in C#

EDN Admin

Well-known member
Joined
Aug 7, 2010
Messages
12,794
Location
In the Machine
What is the equivalent in C# to the Val() function in Visual Basic? Also, what do the Right() and Left() functions do?
Here is my code:

<pre lang="x-vbnet Dim Num As Byte
Dim File As String
Num = Val(Right(Left(Right(File, Len(File) - i), 8), 3))[/code]


View the full article
 
Back
Top