In-Built Functions. String Handling Functions:-

Size: px
Start display at page:

Download "In-Built Functions. String Handling Functions:-"

Transcription

1 L i b r a r y F u n c t i o n s : String Handling Functions:- In-Built Functions 1) LTrim() :- Usage: The LTrim() function returns a string containing a copy of specified string without leading spaces. Syntax: LTrim(String) Example: Private Sub Form1_Click() Debug.Print (LTrim( Cojit College )) Returns Cojit College 2) RTrim(): - Usage: The RTrim() function returns a string containing a copy of specified string without trailing spaces. Syntax: RTrim(String) Example: Private Sub Form1_Click() Debug.Print (RTrim( Cojit College )) Returns Cojit College 3) Trim():- Usage: The Trim() function returns a string containing a copy of specified string without both leading and trailing spaces. Syntax: Trim(String) Example: Private Sub Form1_Click() Debug.Print (Trim( Cojit College )) Returns Cojit College 4) Mid():- Usage:- It returns a string containing a specified number of characters from a string. Syntax:- Mid(String,Start,[Length]) Parts of the Syntax: String-It is string expression from which characters are returned. Start-It is character position in string at which the part to be taken begins. If start is greater than the number of characters in string Mid() returns a zero-length string( ) Length-It is number of characters to return. If omitted or if there are fewer than length characters in the text, all characters from the start position to the end of the string are returned. Private Sub Form1_Click() Const st As String= Cojit College Debug.Print (Mid(st,1,5)) Returns Cojit Prepared By: Ankit Shah Page 1

2 Debug.Print (Mid(st,9,7)) Returns llege Debug.Print (Mid(st,1)) Returns Cojit College (starts from 1 and all string print) Debug.Print (Mid(st,9)) Returns llege Debug.Print (Mid(st,16)) Returns 5) Len():- Usage:- It returns the number of characters in a string or the number of bytes required to store a variable. Syntax:- Len(String Variable) Parts of the Syntax:- String-It is any valid string expression, if string contains zero length, the function returns empty. Variable-It is any valid variable name. If variable name is variant, Len() treats it the same as a string and always returns the number of characters it contains. For example:- Private Sub Form1_Click() Dim a As Integer, b As String, c a=1234 Debug.Print (Len(a)) 2 (Bytes) Debug.Print (Len(b)) 0 (Total Characters) Debug.Print (Len(c)) 0 b= Cojit College Debug.Print (Len(b)) 13 (Total Characters) 6) InStr():- Usage:- It returns the location of the first occurrence of one string within another. Syntax:-Instr(String1,String2[,Compare]) Parts of the Syntax:- Start-It is numeric expression that sets the stating position for each search. If it is omitted, search begins at the first character position. Here stat argument is required if compare is specified. String1- It is string which you want to find from string1 String2-It is string from which you want to find. Compare-It specifies the type of comparison. If it s omitted it will set either default compare method i.e. binary comparison or according to the option compare setting. Compare argument settings are: Constant Value Description vbbinarycompare 0 It performs a binary comparison i.e. case sensitive matching. vbtextcompare 1 It performs a textual comparison i.e. case insensitive matching. vbdatabasecompare 2 It can only be used within Microsoft Access. It performs a comparison based on information in your database. Prepared By: Ankit Shah Page 2

3 Return Values are: If InStr() returns 1) String1 is zero length 0 2) String2 is zero length 1 3) String2 is not found 0 4) String1is found within String2 Position at which match is found 5) Start > String2 0 For Example: Option Compare Text Dim str1, str2 As String str1= Cojit College str2= School Debug.Print (Instr(1,,str2)) Returns 0 Debug.Print (Instr(1,str1, )) Returns 1 Debug.Print (Instr(1,str1,str2)) Returns 0 str2= College Debug.Print (Instr(str1,str2)) Returns 7 Debug.Print (Instr(1,str1,str2,vbBinaryCompare)) Returns 7 7) StrComp():- Usage:- It returns an integer indicating the result of a string comparison. Syntax:-StrComp(String1, String2 [,Compare]) Parts of Syntax: String1 & String2 Any valid string expression. Compare It specifies the type of comparison i.e. Binary, Text or Database comparison. (See InStr() for more information) Return Values are: If StrComp() returns String1<String2-1 String1=String2 0 String1>String2 1 For Example:- Debug.Print (StrComp("ABCD", "ABCDD")) 'Returns -1 Debug. Print (StrComp("ABCD", "ABCD")) 'Returns 0 Debug.Print (StrComp("ABCDD", "ABCD")) 'Returns 1 Debug.Print (StrComp("abcd", "Abcd", vbbinarycompare)) 'Returns 1 Debug.Print (StrComp("Abcd", "Abcd", vbtextcompare)) 'Returns 0 Prepared By: Ankit Shah Page 3

4 8) StrReverse() Usage:-It returns a string in which the character order of a specified string is reversed. Syntax: StrReverse(String) For Example:- Debug.Print (StrReverse( College )) Returns egelloc 9) StrConv() Usage:-StrConv() convers the give string value into specified conversion format Syntax:-StrConv(String1,Conversion[,LCID]) Parts of the Syntax: String Any valid string expression Conversion It specifies the type of conversion. LCID It is Local ID of your system. If it is omitted the system Local ID will be default ID. The Conversion arguments are: - Remarks: - * vbwide and vbnarrow applied to Far East locales. ** vbkatakana and vbhiragana applied to Japan only. For Example:- Debug.Print(StrConv("Cojit", VbStrConv.Lowercase)) 'Returns cojit Debug.Print(StrConv("cojit college", VbStrConv.ProperCase)) ' Cojit College 10) Space():- Usage: -Space() function returns a string consisting of the specified number of space. It is useful for to format output. Syntax:- Space(number) The required number argument is the number of spaces you want in the string. For Debug.Print(Space(10)) Debug.Print("Name") Debug.Print(Space(10)) Debug.Print("Address") 11) UCase():- Usage:-UCase() function returns a string that has been converted to uppercase. Syntax: - UCase(StringExp) Remarks:- Only upper letter are converted to lowercase, all lower letters and non-letters characters remain unchanged. Prepared By: Ankit Shah Page 4

5 For Example:- Debug.Print (UCase("college")) 'Returns COLLEGE 12) LCase():- Usage:-LCase() function returns a string that has been converted to uppercase. Syntax: - LCase(StringExp) Remarks:- Only upper letter are converted to lowercase, all lower letters and non-letters characters remain unchanged. For Example:- Debug.Print (LCase( COLLEGE )) Returns college Conversion Functions:- 1) Hex():- Usage:-It returns a string representing the hexadecimal value of a number. Syntax:- Hex(Numeric_Exp) Example: Debug.Print (Hex(5)) Returns 5 Debug.Print (Hex(10)) Returns A 2) Oct(): - Usage:- It returns a string representing the octal value of a number Syntax: - Oct(Numeric_Exp) Example:- Private Sub From_Click() Debug.Print (Oct(12)) Returns 14 3) Str(): - Usage:- It returns a string representing the conversion of a number into a string. It inserts a leading space for positive or unsigned numbers to act as a placeholder for the sign. Syntax:- Str(Numeric_Exp) Example: Debug.Print (Str(45)) Returns 45 Prepared By: Ankit Shah Page 5

6 4) CInt():- Usage:- It returns the integer portion of any give numeric expression rounding the fractional part of a number. CInt function always rounds it to the nearest number. For example, 0.5 rounds to 0, and 1.5 rounds to 2. Syntax:- CInt(Numeric_Exp) Example:- Debug.Print (CInt(1.9)) 'Returns 2 Debug.Print (CInt(-1.9)) 'Returns 2 Debug.Print (CInt(-1.2)) 'Returns 1 5) CBool(): Usage:- It returns Boolean or logical value representing True or False corresponding to the given expression. Syntax:- CBool(Logical_Exp) Example:- Debug.Print CBool(10 < 20) 'Returns True 6) CLng():- Usage:- It converts any give numeric expressing into Long data type. Syntax:- CLng(Numeric_Exp) Example:- Debug.Print (CLng(13.24)) 'Returns 13 Debug.Print (CLng(13.54)) 'Returns 14 7) CDbl():- Usage:- it converts any given numeric expression into Double data type. Syntax:- CDbl(Numeric_Exp) Example: Debug.Print (CDbl(1 / 7)) 'Returns ) CSng():- Usage:-It converts any given numeric expression into Single data type. Syntax:- CSng(Numeric_Exp) Example:- Debug.Print (CSng(1 / 7)) 'Returns Prepared By: Ankit Shah Page 6

7 9) Cbyte():- Usage:- It converts any given numeric expression into Byte data type. Syntax:- Cbyte(Numeric_Exp) Example:- Debug.Print (CByte(500 / 3)) 'Returns 167 Debug.Print (CByte(5000 / 3)) 10) Cdec(): Usage: - It converts any numeric expression into Decimal data type with the length of 28 decimal numbers. Syntax:- Cdec(Numeric_Exp) Debug.Print (CDec(1 / 49)) 'Returns Debug.Print (CDbl(1 / 49)) 'Returns E-02 Debug.Print (CDec(1E-28)) 'Returns Debug.Print (CDbl(1E-28)) 'Returns 1E-28 11) Chr(): - Usage: - It returns a string containing the character associated with the specified character code. Numbers from 0 31 are the same as standard, nonprintable ASCII codes. For example, Chr(10) returns a linefeed character. The normal range for charcode is Syntax: - Chr(Numeric_Exp) Debug.Print (Chr(65)) ' Returns A Debug.Print (Chr(97)) ' Returns a Debug.Print (Chr(62)) ' Returns > Debug.Print (Chr(37)) ' Returns % 12) Asc(): - Usage: - It returns an integer between representing the character code corresponding to the first letter in a string. Syntax:- Asc(Character_Exp) Debug.Print (Asc("A")) ' Returns 65. Debug.Print (Asc("a")) ' Returns 97. Debug.Print (Asc("Apple )) ' Returns 65. Prepared By: Ankit Shah Page 7

8 13) Val(): - Usage:- It returns the given string value to double value. Syntax:- Val(String) Example:- Text3.Text= Val(Text1.Text) + Val(Text2.Text) Mathematical Functions [Imports System.Math] 1) Abs (): - Usage: - It returns the absolute value of the given numeric expression removing the plus or minus sign. If argument contains Null, Null is returned; if it is an un-initialized variable, zero is returned. Syntax: - Abs(Numeric_Exp) Debug.Print(Math.Abs(1.6)) 'Returns 1.6 Debug.Print(Math.Abs(-1.6)) 'Returns 1.6 2) Atan (): - Usage: - It returns a Double specifying the arctangent of a number. Syntax: - Atn(Numeric_Exp) Remarks: - Atn() is inverse trigonometric function of Tan(). Debug.Print(1 / Math.Atan(1.3)) 'Returns ) Cos (): - Usage: - Cos() returns a Double specifying the cosine of an angle. Syntax: - Con(Numeric_Exp) Debug.Print(1 / Math.Cos(1.3))'Returns ) Exp (): - Usage: - It returns a double-precision number that specifying e raised to the specified power (The natural logarithm, which has a base of about ) Syntax: - Exp(Numeric_Exp) Debug.Print(Math.Exp(14)) 'Returns Debug.Print( ^ 14) 'Returns Prepared By: Ankit Shah Page 8

9 5) Fix (): - Usage: - It returns only integer portion of a given numeric expression. If number is Null, Null is returned. Syntax: - Fix (Numeric_Exp) Private Sub Form_Click () Debug.Print(Fix(1.9)) 'Returns 1 Debug.Print(Fix(-1.9)) 'Returns 1 Debug.Print(Fix(-1.2)) 'Returns 1 6) Int (): - Usage: - It returns only integer (smallest integer number nearest to given number) portion of a given valid double numeric expression. If number is Null, Null is returned. Syntax: - Int (Numeric_Exp) Private Sub Form_Click () Debug.Print Int (1.9) 'Returns 1 Debug.Print Int (-1.9) 'Returns 2 Debug.Print Int (-1.2) 'Returns 2 7) Log (): - Usage: - It returns a double specifying the natural logarithm of a given valid double numeric expression. Syntax: - Log (Numeric_Exp) Private Sub Form_Click () Debug.Print(Math.Log( )) 'Returns 14 Debug.Print(Math.Log(14) / Math.Log(10)) 'Returns ) Rnd (): - Usage: - It returns Single containing random number between 0 and 1. You can produce random numbers in a given range multiplying the rang to the function as shown in the example. Syntax: - Rnd [(Numeric_Exp)] Return Values: - If number is Rnd generates ===================================================== Less than zero The same number every time, using number as the seed. Greater than zero The next random number in the sequence. Equal to zero The most recently generated number. Not supplied The next random number in the sequence. Prepared By: Ankit Shah Page 9

10 For I = 0 To 10 Debug.Print (Rnd(-1)) 'Returns same no every time Debug.Print (Rnd(0)) 'Returns same no as generated form previous Rnd() Next 9) Sign (): - Usage: - It returns integer indication the sign of given numeric expression. Syntax: - Sign(Numeric_Exp) Returns values are: If number is Sgn() Returns ============================ Greater than zero 1 Equal to zero 0 Less than zero -1 Debug.Print(Sign(1)) 'Returns 1 Debug.Print(Sign(0)) 'Returns 0 Debug.Print(Sign(-4.5)) 'Returns 1 10) Sin (): - Usage: - Sin() function returns a Double specifying the sine of an angle. Syntax: - Sin(Numeric_Exp) Debug.Print (1 / Sin(1.3)) 'Returns ) Sqrt(): - Usage: - it returns square root of a given numeric expression. Syntax: - Sqr(Numeric_Exp) Example:- Debug.Print (Sqrt(4)) 'Returns 2 12) Tan(): - Usage: - It returns a Double specifying the tangent of an angle. Syntax: - Tan(Numeric_Exp) Remark: - The required number argument is a Double or any valid numeric expression that express an angle in radians. Prepared By: Ankit Shah Page 10

11 Debug. Print (1 / Tan(1.3)) 'Returns Date and Time Handling Statements & Functions: - 1) Date Statement: - Usage: - Date statement is used to get or change the current system date Syntax: - Today Private Sub Form_Click(ByVal sender As System.Object, ByVal e As TextBox1.Text = Today Returns current Date 2) Time Statement: - Usage: - Time statement is used to get or change the current system Time. Syntax: - TimeOfDay Private Sub Form_Click(ByVal sender As System.Object, ByVal e As TextBox1.Text = TimeOfDay Returns current Time 3) Now Statement: - Usage: - Now statement is used to get the current date and time simultaneously but you can t assign any expression to Now as Date and Time statement. If you want to modify you have to use Date and Time statement. Syntax: - [variable_name=] Now Private Sub Form_Click(ByVal sender As System.Object, ByVal e As Debug.Print Current date and time = ; Now Returns current date & time 4) Second(): - Usage: - Second() returns integer specifying a number between 0 to 59, representing the second of the minute. Syntax: - Second( Time_Exp) Private Sub Button2_Click(ByVal sender As System.Object, ByVal e As TextBox1.Text = Second(TimeOfDay) Returns second from time Prepared By: Ankit Shah Page 11

12 5) Minute(): - Usage: -Minute() returns integer specifying a number between 0 to 59 representing the minute of the hour. Syntax: -Minute (Time_Exp) Private Sub Button2_Click(ByVal sender As System.Object, ByVal e As TextBox1.Text = Minute(TimeOfDay) Returns minute from time 6) Hour() : - Usage: - Hour() returns integer specifying a number between 0 to 23 representing the hour of the day. Syntax: - Hour ( Time_Exp) Private Sub Button2_Click(ByVal sender As System.Object, ByVal e As TextBox1.Text = Hour(TimeOfDay) Returns hour from time 7) DateSerial(): - Usage: -DateSerial function returns Date for a specified year, month and day as integer into system date format. Syntax: - DateSerial (year, month, day) Private Sub Button2_Click(ByVal sender As System.Object, ByVal e As Debug.Print DateSerial(2, 8, 20) 'Returns 08/20/02 (mm/dd /yyyy) 8) TimeSerial(): - Usage: - TimeSerial function returns Time for a specified hour, minute and second as integer into system Time format. Syntax: - TimeSerial (hour, minute, second) Private Sub Button2_Click (ByVal sender As System.Object, ByVal e As Debug.Print (TimeSerial(2, 8, 20)) 'Returns 2:08:20 AM Debug.Print (TimeSerial(20, 8, 20)) 'Returns 8:08:20 PM 9) DateValue(): - Usage: - DateValue function returns date into system date format, which requires argument in string that represents date from January (Jan) 1,100 through December (Dec) 12, If the year part of date is omitted DateValue function uses the current year from your system, but you can not omit day or month part Prepared By: Ankit Shah Page 12

13 Syntax: - DateValue (Date_Exp) Private Sub Button2_Click (ByVal sender As System.Object, ByVal e As Debug.Print (DateValue("January, ")) 'Returns 1/12/2002 Debug.Print (DateValue("12 Jan")) 'Returns 1/12/ ) TimeValue(): - Usage: - The TimeValue() returns the time into system format which requires argument in string that represetns time from 0:00:00(12:00:00 A.M.) through 23:59:59(11:59:59 P.M.). If minute or second part is omitted, it uses 00. If minute and second both are omitted A.M. or P.M. must be there. Syntax : - TimeValue( Time_Exp) Private Sub Button2_Click (ByVal sender As System.Object, ByVal e As Debug.Print (TimeValue("12 PM")) 'Returns 12:00:00 PM Debug.Print (TimeValue("11:10")) 'Returns 11:10:00 AM Debug.Print (TimeValue("17:10")) 'Returns 5:10:00 PM 11) DateAdd(): - Usage: - DateAdd function is used to add or subtract a specified time interval from a date or time. Syntax: -DateAdd(Interval, Number, Date) Parts of the syntax: - Parts Description ======================================================= Interval It is string expression that is interval of time you want to add. The argument as interval can be any of following. Interval argument Description yyyy Year q Quarter m Month y Day of year d Day w Weekday( Day of Week) ww Week h Hour n Minute s Second Prepared By: Ankit Shah Page 13

14 Number It is numeric expression that is the number of intervals you want to add. It can be positive or negative. Date It is date to which the interval is added. i. Private Sub Button2_Click (ByVal sender As System.Object, ByVal e As Dim Dt,Tm As Date Dt = "08/20/2002" Tm = "02:30:35 PM" Debug.Print (DateAdd("yyyy", 1, Dt)) ' Returns 8/20/2003 Debug.Print (DateAdd("q", 1, Dt)) ' Returns 11/20/2002 Debug.Print (DateAdd("m", 1, Dt)) ' Returns 9/20/2002 Debug.Print (DateAdd("y", 1, Dt)) ' Returns 8/21/2002 Debug.Print (DateAdd("d", 1, Dt)) ' Returns 8/21/2002 Debug.Print (DateAdd("w", 1, Dt)) ' Returns 8/21/2002 Debug.Print (DateAdd("ww", 1, Dt)) ' Returns 8/27/2002 Debug.Print (DateAdd("h", 1, Tm)) ' Returns 3:30:35 PM Debug.Print (DateAdd("n", 1, Tm)) ' Returns 2:31:35 PM Debug.Print (DateAdd("s", 1, Tm)) ' Returns 2:30:36 PM 12) DateDiff(): - Usage: - DateDiff function returns intervals between given two date or time. Syntax: - DateDiff (Interval, Date1, Date2 [, FirstDayOfWeek [,FirstWeekOfYear ]]) Parts of the syntax: - Parts Description =============================================== Interval Same as DateAdd() Date1, Date2 Two date or time you want to use in calculation. (Time1,Tiem2) FirstDayOfWeek A constant (listed below) that specifies the first day or FirstWeekOfYear the week. If not specified, Sunday is by default. A constant (listed below) that specifies the first week of the year. If not specified the first week is assumed to be the week in which January 1 occurs. Constants related to argument FirstDayOfWeek are : Constant Value Description ===================================================== vbsunday 1 Sunday (Default vbmonday 2 Monday vbtuesday 3 Tuesday vbwednesday 4 Wednesday Prepared By: Ankit Shah Page 14

15 In-Built Functions vbfriday 6 Friday vbsaturday 7 Saturday Constants related to argument FirstWeekOfYear are: Constant Value Description ===================================================== vbusesystem 0 Use the NLS API setting. vbfirstjan1 1 Start with the first week in which January 1 occurs. (default) vbfirstfourdays 2 Start with the first week that has at least four days in the new year. vbfirstfullweek 3 Start with first full week of the year. ii. Private Sub Button2_Click (ByVal sender As System.Object, ByVal e As Debug.Print (DateDiff("yyyy", "1/04/2000", "1/01/2001",, FirstWeekOfYear.Jan1)) 'Returns 1 Debug.Print (DateDiff("ww", "7/20/2000", "7/20/2001", vbsunday)) 'Returns 52 Debug.Print (DateDiff("w", "7/20/2000", "7/20/2001")) 'Returns 52 Debug.Print (DateDiff("ww", "7/20/2000", "7/20/2001", FirstDayOfWeek.Monday)) 'Returns 52 Debug.Print (DateDiff("h", "10:20:30", "12:20:30")) 'Returns 2 Debug.Print (DateDiff("n", "10:20:30", "12:20:30")) 'Returns 120 Debug.Print (DateDiff("s", "10:20:30", "12:20:30")) 'Returns 7200 Debug.Print (DateDiff("h", "10 AM", "12 PM")) 'Returns 2 13) DatePart(): - iii. Usage: - It returns an integer containing the specified part of a given date or time, so you can calculate the day of the week or the current passed hour. Syntax: - DatePart (Interval, Date [,FirstDayOfWeek [, FirstWeekOfYear]]) Parts of the syntax: - Explained in DateAdd function. Private Sub Button2_Click (ByVal sender As System.Object, ByVal e As Debug.Print DatePart("yyyy", "07/20/2001") 'Returns 2001 Debug.Print DatePart("m", "07/20/2001") 'Returns 7 Debug.Print DatePart("d", "07/20/2001") 'Returns 20 Debug.Print DatePart("ww", "07/1/2001",, vbfirstfullweek) 'Returns 26 Debug.Print DatePart("ww", "07/1/2001") 'Returns 27 Prepared By: Ankit Shah Page 15

16 Data Verification / Logical Functions: - 1) IsDate (): - Usage: - It returns True if the expression is a valid date, otherwise it returns False. The range of valid date is January (Jan) 1, 100 A.D. through December (Dec) 31, 9999 A.D. Syntax: - IsDate (Expression) Example : - Private Sub Button2_Click (ByVal sender As System.Object, ByVal e As Debug.Print IsDate("6/12/2002") 'Returns True Debug.Print IsDate("13/13/2002") 'Returns False 2) IsNumeric (): - Usage: - IsNumeric() returns True if the entire expression is numeric otherwise it returns False: Syntax: - IsNumeric (Expression) Exmple: - Private Sub Button2_Click(ByVal sender As System.Object, ByVal e As Debug.Print(IsNumeric("45")) 'Returns True Debug.Print(IsNumeric("Age 45")) 'Returns False 3) IsArray(): - Usage: - IsArray() returns True if the expression is array otherwise it returns False: Syntax: - IsNumeric (Expression) Exmple: - Private Sub Button2_Click(ByVal sender As System.Object, ByVal e As Dim a(10) As Integer Debug.Print(IsArray(a)) Returns True 4) LBound(): - Usage: - LBound() returns the lower boundary of an array. Syntax: - LBound(Array_variable) Exmple: - Private Sub Button2_Click(ByVal sender As System.Object, ByVal e As Dim a(10) As Integer Debug.Print(LBound(a)) Retuns 0 Prepared By: Ankit Shah Page 16

17 5) UBound(): - Usage: - LBound() returns the lower boundary of an array. Syntax: - UBound (Array_variable) Exmple: - Private Sub Button2_Click(ByVal sender As System.Object, ByVal e As Dim a(10) As Integer Debug.Print(UBound(a)) Returns 10 Prepared By: Ankit Shah Page 17

Phụ lục 2. Bởi: Khoa CNTT ĐHSP KT Hưng Yên. Returns the absolute value of a number.

Phụ lục 2. Bởi: Khoa CNTT ĐHSP KT Hưng Yên. Returns the absolute value of a number. Phụ lục 2 Bởi: Khoa CNTT ĐHSP KT Hưng Yên Language Element Abs Function Array Function Asc Function Atn Function CBool Function CByte Function CCur Function CDate Function CDbl Function Chr Function CInt

More information

PA R T. A ppendix. Appendix A VBA Statements and Function Reference

PA R T. A ppendix. Appendix A VBA Statements and Function Reference PA R T V A ppendix Appendix A VBA Statements and Reference A d Reference This appendix contains a complete listing of all Visual Basic for Applications (VBA) statements (Table A-1 ) and built-in functions

More information

SWITCH(DatePart("w",DateOfYear) IN(1,7),"Weekend",DatePart("w",DateOfYear) IN(2,3,4,5,6),"Weekday") AS DayType,

SWITCH(DatePart(w,DateOfYear) IN(1,7),Weekend,DatePart(w,DateOfYear) IN(2,3,4,5,6),Weekday) AS DayType, SeQueL 4 Queries and their Hidden Functions! by Clark Anderson A friend recently exclaimed Can you really use this function in SQL! In this article of my series I will explore and demonstrate many of the

More information

Active Planner. How to Create and Use Database Query Formulas

Active Planner. How to Create and Use Database Query Formulas Active Planner How to Create and Use Database Query Formulas Table of Contents Introduction... 1 Database Query Part 1 - The Basics... 2 Database Query Part 2 Excel as the Data source... 12 Database Query

More information

MATHEMATICAL / NUMERICAL FUNCTIONS

MATHEMATICAL / NUMERICAL FUNCTIONS MATHEMATICAL / NUMERICAL FUNCTIONS Function Definition Syntax Example ABS (Absolute value) ASC It returns the absolute value of a number, turning a negative to a positive (e.g. - 4 to 4) It returns the

More information

VB Script Reference. Contents

VB Script Reference. Contents VB Script Reference Contents Exploring the VB Script Language Altium Designer and Borland Delphi Run Time Libraries Server Processes VB Script Source Files PRJSCR, VBS and DFM files About VB Script Examples

More information

Long (or LONGMATH ) floating-point (or integer) variables (length up to 1 million, limited by machine memory, range: approx. ±10 1,000,000.

Long (or LONGMATH ) floating-point (or integer) variables (length up to 1 million, limited by machine memory, range: approx. ±10 1,000,000. QuickCalc User Guide. Number Representation, Assignment, and Conversion Variables Constants Usage Double (or DOUBLE ) floating-point variables (approx. 16 significant digits, range: approx. ±10 308 The

More information

Strings in Visual Basic. Words, Phrases, and Spaces

Strings in Visual Basic. Words, Phrases, and Spaces Strings in Visual Basic Words, Phrases, and Spaces Strings are a series of characters. Constant strings never change and are indicated by double quotes. Examples: Fleeb Here is a string. Strings are a

More information

VBSCRIPT - INTERVIEW QUESTIONS

VBSCRIPT - INTERVIEW QUESTIONS VBSCRIPT - INTERVIEW QUESTIONS http://www.tutorialspoint.com/vbscript/vbscript_interview_questions.htm Copyright tutorialspoint.com Dear readers, these VBScript Interview Questions have been designed specially

More information

The Year argument can be one to four digits between 1 and Month is a number representing the month of the year between 1 and 12.

The Year argument can be one to four digits between 1 and Month is a number representing the month of the year between 1 and 12. The table below lists all of the Excel -style date and time functions provided by the WinCalcManager control, along with a description and example of each function. FUNCTION DESCRIPTION REMARKS EXAMPLE

More information

Access: using operators and functions in queries

Access: using operators and functions in queries Access: using operators and functions in queries Reference document Aims and Learning Objectives This document aims to cover all the query language elements (expressions, functions etc) that are available

More information

Macro Programming Reference Guide. Copyright 2005 Scott Martinez

Macro Programming Reference Guide. Copyright 2005 Scott Martinez Macro Programming Reference Guide Copyright 2005 Scott Martinez Section 1. Section 2. Section 3. Section 4. Section 5. Section 6. Section 7. What is macro programming What are Variables What are Expressions

More information

APPENDIX A. This appendix constitutes a compilation of some illustrations of the existing user interface of CyberQuest and the proposed WebCQ.

APPENDIX A. This appendix constitutes a compilation of some illustrations of the existing user interface of CyberQuest and the proposed WebCQ. APPENDIX A This appendix constitutes a compilation of some illustrations of the existing user interface of CyberQuest and the proposed WebCQ. Fig 1A Existing Opening Screen as seen in CQ F Fig I A Existing

More information

VB Script Reference. Summary. Exploring the VB Script Language. Altium Designer and Borland Delphi Run Time Libraries

VB Script Reference. Summary. Exploring the VB Script Language. Altium Designer and Borland Delphi Run Time Libraries Summary Technical Reference TR0125 (v1.6) February 27, 2008 This reference manual describes the VB Script language used in Altium Designer. This reference covers the following topics: Exploring the VB

More information

VBScript Reference Manual for InduSoft Web Studio

VBScript Reference Manual for InduSoft Web Studio for InduSoft Web Studio www.indusoft.com info@indusoft.com InduSoft Web Studio Copyright 2006-2007 by InduSoft. All rights reserved worldwide. No part of this publication may be reproduced or transmitted

More information

Visit for more.

Visit  for more. Chapter 10: MySQL Functions Informatics Practices Class XI (CBSE Board) Revised as per CBSE Curriculum 2015 Visit www.ip4you.blogspot.com for more. Authored By:- Rajesh Kumar Mishra, PGT (Comp.Sc.) Kendriya

More information

NOTES: String Functions (module 12)

NOTES: String Functions (module 12) Computer Science 110 NAME: NOTES: String Functions (module 12) String Functions In the previous module, we had our first look at the String data type. We looked at declaring and initializing strings, how

More information

ENGG1811 Computing for Engineers Week 7 Iteration; Sequential Algorithms; Strings and Built-in Functions

ENGG1811 Computing for Engineers Week 7 Iteration; Sequential Algorithms; Strings and Built-in Functions ENGG1811 Computing for Engineers Week 7 Iteration; Sequential Algorithms; Strings and Built-in Functions ENGG1811 UNSW, CRICOS Provider No: 00098G1 W7 slide 1 References Chapra (Part 2 of ENGG1811 Text)

More information

Shree Swaminarayan College of Computer Science. BCA-CC-404 Application Development Using VB.NET

Shree Swaminarayan College of Computer Science. BCA-CC-404 Application Development Using VB.NET SDI V/S. MDI Shree Swaminarayan College of Computer Science SDI It is stands for Single Document Interface. User can open from in SDI. It is known as parent form. In SDI form user can place only control

More information

Language Fundamental of VB.NET Part 1. Heng Sovannarith

Language Fundamental of VB.NET Part 1. Heng Sovannarith Language Fundamental of VB.NET Part 1 Heng Sovannarith heng_sovannarith@yahoo.com Variables Declaring Variables Variables are named storage areas inside computer memory where a program places data during

More information

Unit 4. Lesson 4.1. Managing Data. Data types. Introduction. Data type. Visual Basic 2008 Data types

Unit 4. Lesson 4.1. Managing Data. Data types. Introduction. Data type. Visual Basic 2008 Data types Managing Data Unit 4 Managing Data Introduction Lesson 4.1 Data types We come across many types of information and data in our daily life. For example, we need to handle data such as name, address, money,

More information

MODULE 7: VARIABLES & STRINGS

MODULE 7: VARIABLES & STRINGS MODULE 7: VARIABLES & STRINGS On completion of this module you will be able to work with and manipulate data, both numerical and text, found within single value holders. You will also be able to manipulate

More information

Manual. BasicMaker SoftMaker Software GmbH

Manual. BasicMaker SoftMaker Software GmbH Manual BasicMaker 1987-2018 SoftMaker Software GmbH Contents Welcome! 9 What is BasicMaker?... 9 Using the script editor 11 Starting BasicMaker... 11 Commands in the File menu of the script editor...

More information

(Type your answer in radians. Round to the nearest hundredth as needed.)

(Type your answer in radians. Round to the nearest hundredth as needed.) 1. Find the exact value of the following expression within the interval (Simplify your answer. Type an exact answer, using as needed. Use integers or fractions for any numbers in the expression. Type N

More information

Visual Basic for Applications

Visual Basic for Applications Visual Basic for Applications Programming Damiano SOMENZI School of Economics and Management Advanced Computer Skills damiano.somenzi@unibz.it Week 1 Outline 1 Visual Basic for Applications Programming

More information

Outline. Data and Operations. Data Types. Integral Types

Outline. Data and Operations. Data Types. Integral Types Outline Data and Operations Data Types Arithmetic Operations Strings Variables Declaration Statements Named Constant Assignment Statements Intrinsic (Built-in) Functions Data and Operations Data and Operations

More information

Customizing Built In Formulas

Customizing Built In Formulas Applies to: Software Component: SAP_BW. For more information, visit the EDW homepage. Summary This document demonstrates the performance of field routine as compared to formulas used in an update rule/

More information

Table of Contents. PREFACE... vii CONVENTIONS... vii HOW TO USE THIS MANUAL... vii Further Information...viii

Table of Contents. PREFACE... vii CONVENTIONS... vii HOW TO USE THIS MANUAL... vii Further Information...viii Table of Contents PREFACE... vii CONVENTIONS... vii HOW TO USE THIS MANUAL... vii Further Information...viii USING BASIC-52... 1 BASIC-52 PINOUT AND FEATURES... 1 8052AH and 80C52 DIFFERENCES... 1 DEFINITION

More information

Programming Language 2 (PL2)

Programming Language 2 (PL2) Programming Language 2 (PL2) 337.1.1 - Explain rules for constructing various variable types of language 337.1.2 Identify the use of arithmetical and logical operators 337.1.3 Explain the rules of language

More information

References. Iteration For. Iteration (Repetition) Iteration While. For loop examples

References. Iteration For. Iteration (Repetition) Iteration While. For loop examples ENGG1811 UNSW, CRICOS Provider No: 00098G W6 slide 1 References ENGG1811 Computing for Engineers Week 6 Iteration; Sequential Algorithms; Strings and Built-in Functions Chapra (Part 2 of ENGG1811 Text)

More information

References. Iteration For. Iteration (Repetition) Iteration While. For loop examples

References. Iteration For. Iteration (Repetition) Iteration While. For loop examples References ENGG1811 Computing for Engineers Week 7 Iteration; Sequential Algorithms; Strings and Built-in Functions Chapra (Part 2 of ENGG1811 Text) Topic 19 (chapter 12) Loops Topic 17 (section 10.1)

More information

Adobe EchoSign Calculated Fields Guide

Adobe EchoSign Calculated Fields Guide Adobe EchoSign Calculated Fields Guide Version 1.0 Last Updated: May, 2013 Table of Contents Table of Contents... 2 Overview... 3 Calculated Fields Use-Cases... 3 Calculated Fields Basics... 3 Calculated

More information

FANF. programming language. written by Konstantin Dimitrov. Revision 0.1 February Programming language FANF 1 / 21

FANF. programming language. written by Konstantin Dimitrov. Revision 0.1 February Programming language FANF 1 / 21 programming language FANF written by Konstantin Dimitrov Revision 0.1 February 2014 For comments and suggestions: knivd@me.com Programming language FANF 1 / 21 Table of Contents 1. Introduction...3 2.

More information

VISUAL BASIC II CC111 INTRODUCTION TO COMPUTERS

VISUAL BASIC II CC111 INTRODUCTION TO COMPUTERS VISUAL BASIC II CC111 INTRODUCTION TO COMPUTERS Intended Learning Objectives Able to build a simple Visual Basic Application. 2 The Sub Statement Private Sub ControlName_eventName(ByVal sender As System.Object,

More information

Manual. BasicMaker SoftMaker Software GmbH

Manual. BasicMaker SoftMaker Software GmbH Manual BasicMaker 2010 1987-2010 SoftMaker Software GmbH Contents Welcome! 9 What is BasicMaker?... 9 Using the script editor 11 Starting BasicMaker... 11 Commands in the File menu of the script editor...

More information

String Functions on Excel Macros

String Functions on Excel Macros String Functions on Excel Macros The word "string" is used to described the combination of one or more characters in an orderly manner. In excel vba, variables can be declared as String or the Variant

More information

What did we talk about last time? Math methods boolean operations char operations

What did we talk about last time? Math methods boolean operations char operations Week 3 - Wednesday What did we talk about last time? Math methods boolean operations char operations For Project 1, the easiest way to print out data with 2 decimal places is put "%.2f" in the formatting

More information

MANAGING DATA(BASES) USING SQL (NON-PROCEDURAL SQL, X401.9)

MANAGING DATA(BASES) USING SQL (NON-PROCEDURAL SQL, X401.9) Technology & Information Management Instructor: Michael Kremer, Ph.D. Class 3 Professional Program: Data Administration and Management MANAGING DATA(BASES) USING SQL (NON-PROCEDURAL SQL, X401.9) AGENDA

More information

A Complete Tutorial for Beginners LIEW VOON KIONG

A Complete Tutorial for Beginners LIEW VOON KIONG I A Complete Tutorial for Beginners LIEW VOON KIONG Disclaimer II Visual Basic 2008 Made Easy- A complete tutorial for beginners is an independent publication and is not affiliated with, nor has it been

More information

In this tutorial we will create a simple calculator to Add/Subtract/Multiply and Divide two numbers and show a simple message box result.

In this tutorial we will create a simple calculator to Add/Subtract/Multiply and Divide two numbers and show a simple message box result. Simple Calculator In this tutorial we will create a simple calculator to Add/Subtract/Multiply and Divide two numbers and show a simple message box result. Let s get started First create a new Visual Basic

More information

FAQ No. 53. ihost: Logic Points. Roles and Privileges. Adding and removing logic points. Accessing and using the Logic Editor

FAQ No. 53. ihost: Logic Points. Roles and Privileges. Adding and removing logic points. Accessing and using the Logic Editor ihost: Logic Points In addition to displaying values reported by a unit, ihost supports adding additional logic points to a unit and calculating the value based on a custom logic expression. On calculation

More information

Using the um-fpu with the Javelin Stamp

Using the um-fpu with the Javelin Stamp Using the um-fpu with the Javelin Stamp Introduction The um-fpu is a 32-bit floating point coprocessor that can be easily interfaced with the Javelin Stamp to provide support for 32-bit IEEE 754 floating

More information

Products that are referred to in this document may be trademarks and/or registered trademarks of the respective owners.

Products that are referred to in this document may be trademarks and/or registered trademarks of the respective owners. 2012 GEOVAP, spol. s r.o. All rights reserved. GEOVAP, spol. s r.o. Cechovo nabrezi 1790 530 03 Pardubice Czech Republic +420 466 024 618 http://www.geovap.cz Products that are referred to in this document

More information

How to Design Programs Languages

How to Design Programs Languages How to Design Programs Languages Version 4.1 August 12, 2008 The languages documented in this manual are provided by DrScheme to be used with the How to Design Programs book. 1 Contents 1 Beginning Student

More information

2001 PET POCKET REFERENCE GUIDE TO COMMODORE'S LEADING EDGE COMPUTER PRODUCTS. ~www.commodore.ca COPYRIGHT 1979, LEADING EDGE CO. ALL RIGHTS RESERVED

2001 PET POCKET REFERENCE GUIDE TO COMMODORE'S LEADING EDGE COMPUTER PRODUCTS. ~www.commodore.ca COPYRIGHT 1979, LEADING EDGE CO. ALL RIGHTS RESERVED ~www.commodore.ca May Not Reprint Without Permission POCKET REFERENCE GUIDE TO COMMODORE'S 2001 PET LEADING EDGE COMPUTER PRODUCTS COPYRIGHT 1979, LEADING EDGE CO. ALL RIGHTS RESERVED MISC. INFORMATION

More information

This course is aimed at those who need to extract information from a relational database system.

This course is aimed at those who need to extract information from a relational database system. (SQL) SQL Server Database Querying Course Description: This course is aimed at those who need to extract information from a relational database system. Although it provides an overview of relational database

More information

1001ICT Introduction To Programming Lecture Notes

1001ICT Introduction To Programming Lecture Notes 1001ICT Introduction To Programming Lecture Notes School of Information and Communication Technology Griffith University Semester 1, 2015 1 M Environment console M.1 Purpose This environment supports programming

More information

INTRODUCTION TO MYSQL MySQL : It is an Open Source RDBMS Software that uses Structured Query Language. It is available free of cost. Key Features of MySQL : MySQL Data Types: 1. High Speed. 2. Ease of

More information

MYSQL NUMERIC FUNCTIONS

MYSQL NUMERIC FUNCTIONS MYSQL NUMERIC FUNCTIONS http://www.tutorialspoint.com/mysql/mysql-numeric-functions.htm Copyright tutorialspoint.com MySQL numeric functions are used primarily for numeric manipulation and/or mathematical

More information

C How to Program, 6/e by Pearson Education, Inc. All Rights Reserved.

C How to Program, 6/e by Pearson Education, Inc. All Rights Reserved. C How to Program, 6/e 1992-2010 by Pearson Education, Inc. An important part of the solution to any problem is the presentation of the results. In this chapter, we discuss in depth the formatting features

More information

Number Systems, Scalar Types, and Input and Output

Number Systems, Scalar Types, and Input and Output Number Systems, Scalar Types, and Input and Output Outline: Binary, Octal, Hexadecimal, and Decimal Numbers Character Set Comments Declaration Data Types and Constants Integral Data Types Floating-Point

More information

The Graphing Calculator

The Graphing Calculator Chapter 23 The Graphing Calculator To display the calculator, select Graphing Calculator from the Window menu. The calculator is displayed in front of the other windows. Resize or re-position the Graphing

More information

References. Iteration For. Iteration (Repetition) Iteration While. For loop examples

References. Iteration For. Iteration (Repetition) Iteration While. For loop examples References ENGG1811 Computing for Engineers Week 7 Iteration; Sequential Algorithms; Strings and Built-in Functions Chapra (Part 2 of ENGG1811 Text) Topic 19 (chapter 12) Loops Topic 17 (section 10.1)

More information

FORMULAS QUICK REFERENCE

FORMULAS QUICK REFERENCE FORMULAS QUICK REFERENCE Summary Working with formulas? Find out which operators can be used in which formulas and what each one does. Math Operators Operator + (Add) Calculates the sum of two values.

More information

Perl for Biologists. Session 2 March 19, Constants, variables and functions. Jaroslaw Pillardy

Perl for Biologists. Session 2 March 19, Constants, variables and functions. Jaroslaw Pillardy Perl for Biologists Session 2 March 19, 2014 Constants, variables and functions Jaroslaw Pillardy Session 2: Constants, variables and functions Perl for Biologists 1.1 1 "shebang" notation path to the

More information

C Functions. 5.2 Program Modules in C

C Functions. 5.2 Program Modules in C 1 5 C Functions 5.2 Program Modules in C 2 Functions Modules in C Programs combine user-defined functions with library functions - C standard library has a wide variety of functions Function calls Invoking

More information

Basic types and definitions. Chapter 3 of Thompson

Basic types and definitions. Chapter 3 of Thompson Basic types and definitions Chapter 3 of Thompson Booleans [named after logician George Boole] Boolean values True and False are the result of tests are two numbers equal is one smaller than the other

More information

Function Exit Function End Function bold End Function Exit Function

Function Exit Function End Function bold End Function Exit Function The UDF syntax: Function name [(arguments) [As type] ] [As type] [statements] [name = expression] [Exit Function] [statements] [name = expression] - name the name of the function - arguments a list of

More information

Data Types. Strings Variables Declaration Statements Named Constant Assignment Statements Intrinsic (Built-in) Functions

Data Types. Strings Variables Declaration Statements Named Constant Assignment Statements Intrinsic (Built-in) Functions Data and Operations Outline Data Types Arithmetic Operations Strings Variables Declaration Statements Named Constant Assignment Statements Intrinsic (Built-in) Functions Data and Operations 1 Data and

More information

Computer Programming 5th Week loops (do-while, for), Arrays, array operations, C libraries

Computer Programming 5th Week loops (do-while, for), Arrays, array operations, C libraries Computer Programming 5th Week loops (do-while, for), Arrays, array operations, C libraries Hazırlayan Asst. Prof. Dr. Tansu Filik Computer Programming Previously on Bil 200 Low-Level I/O getchar, putchar,

More information

Chapter 4: Computer Codes. In this chapter you will learn about:

Chapter 4: Computer Codes. In this chapter you will learn about: Ref. Page Slide 1/30 Learning Objectives In this chapter you will learn about: Computer data Computer codes: representation of data in binary Most commonly used computer codes Collating sequence Ref. Page

More information

Web Application Development (WAD) V th Sem BBAITM (Unit 3) By: Binit Patel

Web Application Development (WAD) V th Sem BBAITM (Unit 3) By: Binit Patel Web Application Development (WAD) V th Sem BBAITM (Unit 3) By: Binit Patel Number Functions: 1) abs() It is the most basic function and returns the absolute value of the parameter passed to it. i.e. the

More information

Simple Runtime Reference. August 2009 Version 0.1.1

Simple Runtime Reference. August 2009 Version 0.1.1 Simple Runtime Reference August 2009 Version 0.1.1 1 Functions Application - Various application related runtime functions Arrays - Various array related runtime functions Assertions - Checking the runtime

More information

( ) 1.,, Visual Basic,

( ) 1.,, Visual Basic, ( ) 1. Visual Basic 1 : ( 2012/2013) :. - : 4 : 12-14 10-12 2 http://www.institutzamatematika.com/index.ph p/kompjuterski_praktikum_2 3 2 / ( ) 4 90% 90% 10% 90%! 5 ? 6 "? : 7 # $? - ( 1= on 0= off ) -

More information

Products that are referred to in this document may be trademarks and/or registered trademarks of the respective owners.

Products that are referred to in this document may be trademarks and/or registered trademarks of the respective owners. 2018 GEOVAP, spol. s r. o. All rights reserved. GEOVAP, spol. s r. o. Cechovo nabrezi 1790 530 03 Pardubice Czech Republic +420 466 024 618 http://www.geovap.cz Products that are referred to in this document

More information

Products that are referred to in this document may be trademarks and/or registered trademarks of the respective owners.

Products that are referred to in this document may be trademarks and/or registered trademarks of the respective owners. 2017 GEOVAP, spol. s r. o. All rights reserved. GEOVAP, spol. s r. o. Cechovo nabrezi 1790 530 03 Pardubice Czech Republic +420 466 024 618 http://www.geovap.cz Products that are referred to in this document

More information

Data and Operations. Outline

Data and Operations. Outline Data and Operations Data and Operations 1 Outline Data Types Arithmetic Operations Strings Variables Declaration Statements Named Constant Assignment Statements Intrinsic (Built-in) Functions Data and

More information

Arithmetic and Logic Blocks

Arithmetic and Logic Blocks Arithmetic and Logic Blocks The Addition Block The block performs addition and subtractions on its inputs. This block can add or subtract scalar, vector, or matrix inputs. We can specify the operation

More information

Mr.Khaled Anwar ( )

Mr.Khaled Anwar ( ) The Rnd() function generates random numbers. Every time Rnd() is executed, it returns a different random fraction (greater than or equal to 0 and less than 1). If you end execution and run the program

More information

Function Example. Function Definition. C Programming. Syntax. A small program(subroutine) that performs a particular task. Modular programming design

Function Example. Function Definition. C Programming. Syntax. A small program(subroutine) that performs a particular task. Modular programming design What is a Function? C Programming Lecture 8-1 : Function (Basic) A small program(subroutine) that performs a particular task Input : parameter / argument Perform what? : function body Output t : return

More information

Introduction to C Language

Introduction to C Language Introduction to C Language Instructor: Professor I. Charles Ume ME 6405 Introduction to Mechatronics Fall 2006 Instructor: Professor Charles Ume Introduction to C Language History of C Language In 1972,

More information

Multiple Choice Questions, COPA, Semester-2. Dr.V.Nagaradjane

Multiple Choice Questions, COPA, Semester-2. Dr.V.Nagaradjane Multiple Choice Questions, COPA, Semester-2 DrVNagaradjane December 25, 2017 ii Author: DrVNagaradjane Contents 1 Javascript 1 11 Algorithms 1 12 Flowcharts 1 13 Web servers 2 14 Features of web servers

More information

Las Vegas, Nevada, December 3 6, Kevin Vandecar. Speaker Name:

Las Vegas, Nevada, December 3 6, Kevin Vandecar. Speaker Name: Las Vegas, Nevada, December 3 6, 2002 Speaker Name: Kevin Vandecar Course Title: Introduction to Visual Basic Course ID: CP11-3 Session Overview: Introduction to Visual Basic programming is a beginning

More information

MACHINE LEVEL REPRESENTATION OF DATA

MACHINE LEVEL REPRESENTATION OF DATA MACHINE LEVEL REPRESENTATION OF DATA CHAPTER 2 1 Objectives Understand how integers and fractional numbers are represented in binary Explore the relationship between decimal number system and number systems

More information

Single row numeric functions

Single row numeric functions Single row numeric functions Oracle provides a lot of standard numeric functions for single rows. Here is a list of all the single row numeric functions (in version 10.2). Function Description ABS(n) ABS

More information

Introduction to Computer Programming in Python Dr. William C. Bulko. Data Types

Introduction to Computer Programming in Python Dr. William C. Bulko. Data Types Introduction to Computer Programming in Python Dr William C Bulko Data Types 2017 What is a data type? A data type is the kind of value represented by a constant or stored by a variable So far, you have

More information

SQL FUNCTIONS. Prepared By:Dr. Vipul Vekariya.

SQL FUNCTIONS. Prepared By:Dr. Vipul Vekariya. SQL FUNCTIONS Prepared By:Dr. Vipul Vekariya. SQL FUNCTIONS Definition of Function Types of SQL Function Numeric Function String Function Conversion Function Date Function SQL Function Sub program of SQL

More information

AWK - BUILT-IN FUNCTIONS

AWK - BUILT-IN FUNCTIONS AWK - BUILT-IN FUNCTIONS http://www.tutorialspoint.com/awk/awk_built_in_functions.htm Copyright tutorialspoint.com The AWK has a number of functions built into it that are always available to the programmer.

More information

EnableBasic. The Enable Basic language. Modified by Admin on Sep 13, Parent page: Scripting Languages

EnableBasic. The Enable Basic language. Modified by Admin on Sep 13, Parent page: Scripting Languages EnableBasic Old Content - visit altium.com/documentation Modified by Admin on Sep 13, 2017 Parent page: Scripting Languages This Enable Basic Reference provides an overview of the structure of scripts

More information

WEBD 236 Web Information Systems Programming

WEBD 236 Web Information Systems Programming WEBD 236 Web Information Systems Programming Week 5 Copyright 2013-2017 Todd Whittaker and Scott Sharkey (sharkesc@franklin.edu) Agenda This week s expected outcomes This week s topics This week s homework

More information

The Expressions plugin PRINTED MANUAL

The Expressions plugin PRINTED MANUAL The Expressions plugin PRINTED MANUAL Expressions plugin All rights reserved. No parts of this work may be reproduced in any form or by any means - graphic, electronic, or mechanical, including photocopying,

More information

CT 229 Java Syntax Continued

CT 229 Java Syntax Continued CT 229 Java Syntax Continued 06/10/2006 CT229 Lab Assignments Due Date for current lab assignment : Oct 8 th Before submission make sure that the name of each.java file matches the name given in the assignment

More information

Secondary Math 3- Honors. 7-4 Inverse Trigonometric Functions

Secondary Math 3- Honors. 7-4 Inverse Trigonometric Functions Secondary Math 3- Honors 7-4 Inverse Trigonometric Functions Warm Up Fill in the Unit What You Will Learn How to restrict the domain of trigonometric functions so that the inverse can be constructed. How

More information

CS-201 Introduction to Programming with Java

CS-201 Introduction to Programming with Java CS-201 Introduction to Programming with Java California State University, Los Angeles Computer Science Department Lecture V: Mathematical Functions, Characters, and Strings Introduction How would you estimate

More information

Agenda & Reading. VB.NET Programming. Data Types. COMPSCI 280 S1 Applications Programming. Programming Fundamentals

Agenda & Reading. VB.NET Programming. Data Types. COMPSCI 280 S1 Applications Programming. Programming Fundamentals Agenda & Reading COMPSCI 80 S Applications Programming Programming Fundamentals Data s Agenda: Data s Value s Reference s Constants Literals Enumerations Conversions Implicitly Explicitly Boxing and unboxing

More information

Albertson AP Calculus AB AP CALCULUS AB SUMMER PACKET DUE DATE: The beginning of class on the last class day of the first week of school.

Albertson AP Calculus AB AP CALCULUS AB SUMMER PACKET DUE DATE: The beginning of class on the last class day of the first week of school. Albertson AP Calculus AB Name AP CALCULUS AB SUMMER PACKET 2017 DUE DATE: The beginning of class on the last class day of the first week of school. This assignment is to be done at you leisure during the

More information

Number Systems Prof. Indranil Sen Gupta Dept. of Computer Science & Engg. Indian Institute of Technology Kharagpur Number Representation

Number Systems Prof. Indranil Sen Gupta Dept. of Computer Science & Engg. Indian Institute of Technology Kharagpur Number Representation Number Systems Prof. Indranil Sen Gupta Dept. of Computer Science & Engg. Indian Institute of Technology Kharagpur 1 Number Representation 2 1 Topics to be Discussed How are numeric data items actually

More information

Higher Computing Science. Software Design and Development

Higher Computing Science. Software Design and Development Higher Computing Science Software Design and Development Programming with Visual Studio 2012 1 CONTENTS Topic 1 Topic 2 Topic 3 Topic 4 Topic 5 Topic 6 Topic 7 Topic 8 Topic 9 Getting started Strings and

More information

Long (LONGMATH) variables may be used the same as short variables. The syntax is the same. A few limitations apply (see below).

Long (LONGMATH) variables may be used the same as short variables. The syntax is the same. A few limitations apply (see below). Working with Long Numbers. Long Variables Constants You define a long variable with the LONG statement, which works similar to the DIM statement. You can define long variables and dimension long variable

More information

DB2 Function Conversion for Sybase ASE Users

DB2 Function Conversion for Sybase ASE Users DB2 Function Conversion for Sybase ASE Users ChangSung KANG, Kitty Lau IMTE Version 1.2 Date: July-01-2011 Page:1 Version: 1.1 Document History Version Date Author Comment Authorization 1.0 07/01/2011

More information

ASSIGNMENT 3 Methods, Arrays, and the Java Standard Class Library

ASSIGNMENT 3 Methods, Arrays, and the Java Standard Class Library ASSIGNMENT 3 Methods, Arrays, and the Java Standard Class Library COMP-202B, Winter 2010, All Sections Due: Wednesday, March 3, 2010 (23:55) You MUST do this assignment individually and, unless otherwise

More information

MATLAB Constants, Variables & Expression. 9/12/2015 By: Nafees Ahmed

MATLAB Constants, Variables & Expression. 9/12/2015 By: Nafees Ahmed MATLAB Constants, Variables & Expression Introduction MATLAB can be used as a powerful programming language. It do have IF, WHILE, FOR lops similar to other programming languages. It has its own vocabulary

More information

Senturus Analytics Connector. User Guide Cognos to Tableau Senturus, Inc. Page 1

Senturus Analytics Connector. User Guide Cognos to Tableau Senturus, Inc. Page 1 Senturus Analytics Connector User Guide Cognos to Tableau 2019-2019 Senturus, Inc. Page 1 Overview This guide describes how the Senturus Analytics Connector is used from Tableau after it has been configured.

More information

Watershed Sciences 4930 & 6920 GEOGRAPHIC INFORMATION SYSTEMS

Watershed Sciences 4930 & 6920 GEOGRAPHIC INFORMATION SYSTEMS HOUSEKEEPING Watershed Sciences 4930 & 6920 GEOGRAPHIC INFORMATION SYSTEMS CONTOURS! Self-Paced Lab Due Friday! WEEK SIX Lecture RASTER ANALYSES Joe Wheaton YOUR EXCERCISE Integer Elevations Rounded up

More information

What did we talk about last time? Examples switch statements

What did we talk about last time? Examples switch statements Week 4 - Friday What did we talk about last time? Examples switch statements History of computers Hardware Software development Basic Java syntax Output with System.out.print() Mechanical Calculation

More information

GREENWOOD PUBLIC SCHOOL DISTRICT Algebra III Pacing Guide FIRST NINE WEEKS

GREENWOOD PUBLIC SCHOOL DISTRICT Algebra III Pacing Guide FIRST NINE WEEKS GREENWOOD PUBLIC SCHOOL DISTRICT Algebra III FIRST NINE WEEKS Framework/ 1 Aug. 6 10 5 1 Sequences Express sequences and series using recursive and explicit formulas. 2 Aug. 13 17 5 1 Sequences Express

More information

10 Using the PCFL Editor In this chapter

10 Using the PCFL Editor In this chapter 10 Using the PCFL Editor In this chapter Introduction to the PCFL editor 260 Editing PCFL registers 261 Customizing the PCFL configuration file 272 ProWORX NxT User s Guide Introduction to the PCFL editor

More information

Introduction to Programming

Introduction to Programming Introduction to Programming Department of Computer Science and Information Systems Tingting Han (afternoon), Steve Maybank (evening) tingting@dcs.bbk.ac.uk sjmaybank@dcs.bbk.ac.uk Autumn 2017 Week 4: More

More information

Scheme Quick Reference

Scheme Quick Reference Scheme Quick Reference COSC 18 Fall 2003 This document is a quick reference guide to common features of the Scheme language. It is not intended to be a complete language reference, but it gives terse summaries

More information

VBA Handout. References, tutorials, books. Code basics. Conditional statements. Dim myvar As <Type >

VBA Handout. References, tutorials, books. Code basics. Conditional statements. Dim myvar As <Type > VBA Handout References, tutorials, books Excel and VBA tutorials Excel VBA Made Easy (Book) Excel 2013 Power Programming with VBA (online library reference) VBA for Modelers (Book on Amazon) Code basics

More information