Progress Monitor for IdealProgrammer.com
Take Swift, Intelligent, Massive, Planned, Loving, Effective (S.I.M.P.L.E.) Action to Transform Self into Ideal
Skip Repetitive Navigational Links
Home
News
Presenters
Register
Contact
Categories
Titles
Converter
Code Samples
C# ASP.NET
C# Console
HTML
JavaScript
SQL Server
VB ASP.NET
VB Console
Please login
C-Sharp AscW Example - AscW - Sample Code
Description:
Illustrates the C# Syntax for AscW.
Example Class Main:
using System; public class clsAscW { public void Main() { //**************************************************************************************** // Purpose: Returns an Integer value representing the character code corresponding to // a character - if string is used only first character is evaluated. // // Syntax: AscW(char) or AscW(string) // // //**************************************************************************************** Console.WriteLine("Example #1: AscW(string)"); Console.WriteLine(Convert.ToInt32("This is my string"[0])); // Returns 84 //write blank line to make output easier to read Console.WriteLine(); //Prevent console from closing before you press enter Console.ReadLine(); } }
Example Class Program:
using System; using System.Collections.Generic; using System.Linq; using System.Text; namespace CSharp_Syntax { class Program { static void Main(string[] args) { clsAscW myAscW = new clsAscW(); myAscW.Main(); } } }
Home
News
Presenters
Register
Contact
Categories
Titles
Converter
Code Samples
C# ASP.NET
C# Console
HTML
JavaScript
SQL Server
VB ASP.NET
VB Console