

⇒ The default datatype of array variable is logical ⇒ We can change the size of array at any time like increment after declaration. ⇒ We can use ‘’ bracket of ‘()’brackets to declare the size of array variable. ⇒ Datatype of array variable is depends on its value. ⇒ In foxpro you not have to declare the Data type of array variable. ⇒ In foxpro the index value of array is start with 1 not with 0. ⇒ You can create any Array variable using ‘Declare’ keyword or using ‘Dimension’ keyword. And the simple concept of multidimensional array. Multi dimensional ArrayNote:- In Foxpro you have to learn only one and two dimensional arrays. Shiavm Computer Training Center 30 Arrays An array is a set of related data item. An array is a group of variable having same name but with different index value.There are three types of array 1. can automatically check all the recordsbecause default scope of scan is all record.Prepared By: Rushabh P Madhu & P.


Exit sends the control to out of the Scan and first statement after the endscan.Example:- use address Scan city=”surat” Display Endscan Above example will display the record of person who lives in surat of address database file.we have no need to skipping the cursor to the next record. : Exit can be placed anywhere between Scan….endscan. Loop Returns the control directly back to Scan. : Loop can be placed anywhere between Scan ….endscan. Only the records that fallwithin the range of records specified by the scope are scanned.The default scope for SCAN is ALLrecords.WHILE : If the WHILE clause is included, the commands are executed as long as remains true. You can specify a scope of records that are scanned. :- The scope clauses are: ALL, NEXT, RECORD, and REST. If the FOR clause is included, the commands are executed for all records within the scope for which is true. A condition is specified with scan and foxproexecute the statements included within a Scan and Endscan on all the records of the current opendatabase file that meet the condition.Syntax :- SCAN ENDSCAN specifies the block of statements execute between Scan and Endscan.:- Including the FOR clause lets you filter out undesired records. The second example will print 10,8,6,4,2 on the screen.(3) Scan……endscan:-Scan….endscan is another powerful structure. 1 ?x endfor else loop endif x=x-1 enddoThe First ex.
