14 EDP Strings Arrays
14 EDP Strings Arrays
PROGRAMMING
Spring 2019
2nd April, 2019
String Position
• InStr method
• InStr() gives the position of one string within the other
InStr
• If you have a form to collect user information and there
is a field for user email address
• Need to make sure that email address is valid
• To check validity, you must ensure that there is at least
one @ character within the address
Using InStr() method
Output of InStr()
Arrays
An Array
• An array is a group of variables that have the same name
and data type and are related
• Examples
• Names of cities
• Employee records
• Marks of all students in EDP
• An array is a set of consecutive memory locations under
one name
An Array: consecutive memory locations
Example1
Solution task 2
http://www.worldbestlearningcenter.com/index_files/vb.net-example-selection-sort.htm