Presentation is loading. Please wait.

Presentation is loading. Please wait.

6d – Built-in Procedures Lingma Acheson Department of Computer and Information Science, IUPUI CSCI N331 VB.NET Programming.

Similar presentations


Presentation on theme: "6d – Built-in Procedures Lingma Acheson Department of Computer and Information Science, IUPUI CSCI N331 VB.NET Programming."— Presentation transcript:

1 6d – Built-in Procedures Lingma Acheson Department of Computer and Information Science, IUPUI CSCI N331 VB.NET Programming

2 Built-in Procedures 2 Procedure definition is already provided to the programmer in the class library. Programmer only needs to know how to call the procedure. E.g. lstOutput.Item.Clear() Cint(txtInput) Val(txtFirst.Text)

3 String Functions 3 CStr(value): Convert a numeric value to String Len(string): get string length LCase(string): change to lower case Ucase(string): change to upper case Mid(string,n): get the substring starting from nth position …

4 Math Functions 4 Math.Sqrt(n): get the square root of n Math.Max(x, y): Find the larger value of x and y Math.Min(x,y): Find the smaller value of x and y Math.Round(x): Round the x x^y: get the x to the yth power random.Next(x): generate a random number smaller than x …


Download ppt "6d – Built-in Procedures Lingma Acheson Department of Computer and Information Science, IUPUI CSCI N331 VB.NET Programming."

Similar presentations


Ads by Google