You are on page 1of 7

FOXPRO

Rush More Technology



Objected-Oriented
Programming
object-oriented
database management system


7 Step By Step

(Application)
7



7 ( 8 )
7

1 1

Mydocument visual foxpro projects
c:Program FilesMicrosoft Visual Foxpro7

7
Visual FoxPro Interactive Development Environment

(Command
Windows) (Docking)
IntelliSense



Window

2

Help
Visual FoxPro Language Enhancements

7 ()
Browse

BROWSE [FIELDS FieldList] [FONT cFontName [, nFontSize]]


[STYLE cFontStyle] [FOR lExpression1 [REST]] [FORMAT]
[FREEZE FieldName] [KEY eExpression1 [, eExpression2]] [LAST | NOINIT]
[LOCK nNumberOfFields] [LPARTITION] [NAME ObjectName] [NOAPPEND]
[NOCAPTIONS] [NODELETE] [NOEDIT | NOMODIFY] [NOLGRID] [NORGRID]
[NOLINK] [NOMENU] [NOOPTIMIZE] [NOREFRESH] [NORMAL] [NOWAIT]
[PARTITION nColumnNumber [LEDIT] [REDIT]]
[PREFERENCE PreferenceName] [SAVE] [TIMEOUT nSeconds]
[TITLE cTitleText] [VALID [:F] lExpression2 [ERROR cMessageText]]
[WHEN lExpression3] [WIDTH nFieldWidth] [WINDOW WindowName1]
[IN [WINDOW] WindowName2 | IN SCREEN] [COLOR SCHEME nSchemeNumber]



Listing 1

CLOSE DATABASES
OPEN DATABASE (HOME(2) + 'data estdata')
USE customer && Open customer table
IF _WINDOWS && Check Operating System
BROWSE FIELDS contact FONT 'System', 15 STYLE 'NU'
ENDIF
IF _MAC
BROWSE FIELDS contact FONT 'Geneva', 14 STYLE 'NU'
ENDIF
Listing 1 Browse
1

Character : Font style


B : Bold
I : Italic
N : Normal
O : Outline
Q : Opaque
S : Shadow
- : Strikeout
T : Transparent
U : Underline
1
FORMAT Browse Browse

Custentr.fmt
customer :

@ 3,0 GET cust_id PICTURE 'NNNNN'


@ 3,0 GET company VALID company != SPACE(40) ;
PICTURE 'AAAAAAAAAAAAAAAAAAAA'
@ 3,0 GET contact WHEN contact = SPACE(40)
Browse Listing 2
CLOSE DATABASES
OPEN DATABASE (HOME(2) + 'data estdata')
USE customer && Open customer table
SET FORMAT TO custentr.fmt
BROWSE FORMAT
Listing 2
KEY eExpression1 [, eExpression2]
eExpression1 eExpression2 eExpression
Index Key Listing 3 10,000 30,000

CLOSE DATABASES
OPEN DATABASE (HOME(2) + 'data estdata')
USE customer && Open customer table
SET ORDER TO postalcode
BROWSE KEY '10000', '30000'
Listing 3 Browse
()
Class
SYS(3054 [, 0 | 1 | 11 | 2 | 12] [, cMEMVAR])
Rushmore optimization levels

0 (Default) Disables the display of Rushmore optimization levels.


1 Enables the display of the Rushmore filter optimization levels.
11 Enables the display of Rushmore join optimization levels.
2 Prints SQL statement with Rushmore filter statistics.
12 Prints SQL statement with Rushmore join statistics.
cMEMVAR :
Example
The following code displays the Rushmore Optimization level after performing a query:
LOCAL cmemvar
=SYS(3054,11,"cmemvar")
SELECT * FROM HOME()+"labels.dbf"
? cmemvar
Converts XML text Visual FoxPro cursor table.
XMLTOCURSOR(XMLSource eExpression | cXMLFile [, cCursorName [, nFlags ]])
Help
Web Services in Visual FoxPro
Class Web Service
Server Enhancements
IMPLEMENTS DEFINE
CLASS XML
Visual FoxPro and XML
XML (Extensible Markup Language)
HTML (Hypertext Markup Language)
XML
7 Class
WEB SERVICE XML Help

feature 7


(Table) : 1 Record
() : 2 gigabytes
(record) : 65,500
record (1) Field () : 255
1 (2) : 255
(2) : unlimited
(2) : unlimited
: Unlimited
: Unlimited

Field
field : 254
fields : 20
DataBase () : 10
DataBase () : 128

(Variables and Arrays)


(Default # of variables) : 1,024
: 65,000
: 65,000
array : 65,000

(Program and Procedure Files)


: unlimited
program modules Compile : 64K
procedures file : unlimited

(Other Capacities)
() (2) : unlimited

Browse : 255
: 8,192
files : System limit
fields SQL : 255
Maximum length of a string literal : 255

fields 254 fields Field Field Null
(RAM)

Class

7 ()

You might also like