1 / 4

6d – Built-in Procedures

6d – Built-in Procedures. CSCI N331 VB .NET Programming. Lingma Acheson. Department of Computer and Information Science, IUPUI. Built-in Procedures. Procedure definition is already provided to the programmer in the class library. Programmer only needs to know how to call the procedure.

peri
Download Presentation

6d – Built-in Procedures

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


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

  2. Built-in Procedures • 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 • CStr(value): Convert a numeric valueto 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 • 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 …

More Related