第一章 命令篇 1
#DEFINE...#UNDEF 1
目录 1
#IF...#ENDIF 3
RUN|! 4
% 7
$ 7
& 8
= 9
\|\\ 10
?|?? 11
??? 13
@...SAY/GET 14
@...GET-Check Boxes 26
@...GET-Invisible Buttons 32
@...GET-Lists 37
@...GET-POPUPS 41
@...GET-Push Buttons 46
@...GET-Radio Buttons 54
@...GET-Spinners 60
@...EDIT 65
@...MENU 71
@...FILL TO 71
@...BOX 71
@...CLEAR TO 71
@...PROMPT 72
@...TO 74
ACTIVATE MENU 76
ACCEPT 76
ACTIVATE POPUP 77
ACTIVATE WINDOW 78
ACTIVATE SCREEN 78
APPEND FROM 79
APPEND 79
APPEND FROM ARRAY 83
APPEND GENERAL 84
AVERAGE 85
APPEND MEMO 85
BROWSE 87
CALCULATE 101
BUILD PROJECT 101
BUILD APP 101
CHANGE 103
CANCEL 103
CALL 103
CLEAR ALL 105
CLEAR 105
CLEAR PROGRAM 106
CLEAR POPUPS 106
CLEAR FIELDS 106
CLEAR GETS 106
CLEAR MACROS 106
CLEAR MEMORY 106
CLEAR MENUS 106
CLOSE MEMO 107
CLOSE[ALL] 107
CLEAR PROMPTS 107
CLEAR READ 107
CLEAR TYPEAHEAD 107
CLEAR WINDOWS 107
COMPILE 108
COPY INDEXES 109
COPY FILE 109
CONTINUE 109
COPY STRUCTURE EXTENDED 110
COPY STRUCTURE 110
COPY MEMO 110
COPY TAG 111
COPY TO 112
COPY TO ARRAY 113
COUNT 114
CREATE CURSOR 115
CREATE COLOR SET 115
CREATE 115
CREATE LABEL 116
CREATE FROM 116
CREATE MENU 117
CREATE PROJECT 118
CREATE QUERY 119
CREATE REPORT 120
CREATE SCREEN 121
CREATE REPORT-Quick Report 121
CREATE SCREEN-Quick Screen 124
CREATE TABLE 125
DEACTIVATE MENU 126
CREATE VIEW 126
DEACTIVATE POPUP 127
DEACTIVATE WINDOW 128
DECLARE 130
DEFINE BAR 131
DEFINE BOX 137
DEFINE MENU 138
DEFINE PAD 141
DEFINE POPUP 146
DEFINE WINDOW 153
DELETE TAG 161
DELETE FILE 161
DELETE 161
DIMENSION 162
DIR|DIRECTORY 163
DISPLAY FILES 164
DISPLAY 164
DISPLAY STRUCTURE 165
DISPLAY STATUS 165
DISPLAY MEMORY 165
DO 166
DO CASE 167
DO WHILE…ENDDO 169
EDIT 170
EJECT 171
ERASE 172
EJECT PAGE 172
EXIT 173
EXTERNAL 174
EXPORT 174
FILER 175
FLUSH 177
FIND 177
FOR…ENDFOR 178
FUNCTION 179
GATHER FROM 180
GETEXPR 183
HELP 184
GO/GOTO 184
HIDE MENU 185
HIDE POPUP 186
IF…ENDIF 187
HIDE WINDOW 187
IMPORT 189
INDEX 190
INPUT 194
INSERT INTO 195
INSERT 195
JOIN 196
KEYBOARD 199
LABEL 201
LIST 202
LIST MEMORY 203
LIST FILES 203
LIST STATUS 204
LOAD 205
LIST STRUCTURE 205
MENU 206
LOCATE 206
MENU TO 210
MODIFY COMMAND/MODIFY FILE 211
MODIFY GENERAL 213
MODIFY LABEL 215
MODIFY MEMO 216
MODIFY PROJECT 218
MODIFY MENU[<file>|?] 218
MODIFY REPORT 219
MODIFY QUERY 219
MODIFY WINDOW 220
MODIFY STRUCTURE 220
MODIFY SCREEN 220
MOVE POPUP 222
MOVE WINDOW 223
ON BAR 224
NOTE |*|&& 224
ON ERROR 226
ON ESCAPE 228
ON KEY 229
ON KEY= 230
ON KEY LABEL 231
ON PAD 236
ON READERROR 238
ON PAGE 238
ON SELECTION BAR 239
ON SELECTION MENU 240
ON SELECTION PAD 241
ON SELECTION POPUP 242
ON SHUTDOWN 244
PARAMETERS 245
PACK 245
POP KEY 246
PLAY MACRO 246
PRINTJOB…ENDPRINTJOB 247
POP POPUP 247
POPMENU 247
PRIVATE 248
PROCEDURE 249
PUBLIC 250
PUSH KEY 251
PUSH MENU 255
QUIT 256
READ 256
PUSH POPUP 256
RECALL 258
READ MENU 258
REGIONAL 259
RELEASE 261
REINDEX 261
RENAME 262
RELEASE MODULE 262
REPLACE 263
REPORT 264
RESTORE FROM 265
RESTORE SCREEN 266
RESTORE MACROS 266
RESTORE WINDOW 267
RETRY 268
RESUME 268
RETURN 269
RUN |! 270
SAVE SCREEN 273
SAVE MACROS 273
SAVE WINDOWS 274
SAVE TO 274
SCAN…ENDSCAN 275
SCATTER 276
SEEK 279
SCROLL 279
SELECT 280
SET ANSI 281
SET ALTERNATE 281
SET 281
SET BLINK 282
SET BELL TO 282
SET AUTOSAVE 282
SET BELL 282
SET BRSTATUS 283
SET BORDER 283
SET BLOCKSIZE 283
SET CLOCK 284
SET CLEAR 284
SET CARRY 284
SET CENTURY 284
SET COLOR OF SCHEME 285
SET COLOR OF 285
SET CLOCK TO 285
SET COLOR OF SCHEME TO 286
SET COLOR TO 287
SET COLOR SET TO 287
SET COLOR ON|OFF 287
SET CURRENCY 288
SET CONSOLE 288
SET COMPATIBLE 288
SET CONFIRM 288
SET DEBUG 289
SET DATE 289
SET CURRENCY LEFT|RIGHT 289
SET CURSOR 289
SET DELETED 290
SET DEFAULT 290
SET DECIMALS 290
SET DELIMITERS 291
SET DEVICE 292
SET DEVELOPMENT 292
SET ECHO 293
SET DOHISTORY 293
SET DISPLAY TO 293
SET FIELDS 294
SET EXCLUSIVE 294
SET ESCAPE 294
SET EXACT 294
SET FORMAT 295
SET FIXED 295
SET FIELDS TO 295
SET FILTER 295
SET HELP 296
SET HEADING 296
SET FULLPATH 296
SET FUNCTION 296
SET INDEX 297
SET HOURS 297
SET HELPFILTER 297
SET KEYCOMP 299
SET INTENSITY 299
SET LIBRARY 300
SET MACKEY 301
SET LOGERRORS 301
SET LOCK 301
SET MARK OF MENU 302
SET MARGIN 302
SET MARK OF PAD 305
SET MARK OF POPUP 307
SET MARK OF BAR 309
SET MARK TO 311
SET MESSAGE 312
SET MEMOWIDTH 312
SET NOTIFY 313
SET NEAR 313
SET MOUSE 313
SET MULTILOCKS 313
SET OPTIMIZE 314
SET ODOMETER 314
SET ORDER 315
SET PATH 316
SET PALETTE 316
SET PRINTER 317
SET POINT 317
SET REFRESH 318
SET PROCEDURE 318
SET PRINTER TO 318
SET RELATION 319
SET RELATION OFF 320
SET REPROCESS 321
SET SAFETY 322
SET RESOURCE TO 322
SET RESOURCE 322
SET SKIP 323
SET SHADOWS 323
SET SCOREBOARD 323
SET SEPARATOR 323
SET SKIP OF 324
SET STEP 325
SET STATUS BAR 325
SET SPACE 325
SET STATUS 325
SET SYSMENU 326
SET STICKY 326
SET TEXTMERGE 327
SET TALK 327
SET TEXTMERGE DELIMITERS 329
SET UDFPARMS 330
SET TYPEAHEAD 330
SET TOPIC 330
SET TRBETWEEN 330
SET WINDOW OF MEMO 332
SET VIEW TO 332
SET UNIQUE 332
SET VIEW 332
SHOW GET 333
SHOW GETS 336
SHOW MENU 337
SHOW OBJECT 338
SHOW WINDOW 339
SHOW POPUP 339
SIZE POPUP 342
SKIP 343
SORT 344
SUM 345
STORE 345
TEXT…ENDTEXT 346
SUSPEND 346
TYPE 347
TOTAL 347
USE 348
UPDATE 348
UNLOCK 348
WAIT 352
ZAP 353
ZOOM WINDOW 354
ACOPY() 355
ABS() 355
第二章 函数篇 355
ADEL() 356
ACOS() 356
ADIR() 358
AELEMENT() 360
AFIELDS() 361
AFONT() 362
AINS() 364
ALEN() 365
ASC() 366
ALLTRIM() 366
ALIAS() 366
ASIN() 367
ASCAN() 367
ASORT() 368
AT() 370
ASUBSCRIPT() 370
ATC() 371
ATAN() 371
ATLINE() 372
ATCLINE() 372
BAR() 373
ATN2() 373
BOF() 374
BETWEEN() 374
CAPSLOCK() 378
CDX() 379
CDOW() 379
CHRSAW() 380
CHR() 380
CEILING() 380
CHRTRAN() 381
CNTBAR() 382
CMONTH() 382
CNTPAD() 384
CTOD() 385
COS() 385
COL() 385
DATE() 386
CURDIR() 386
DDEAbortTrans() 387
DBF() 387
DAY() 387
DDEAdvise() 388
DDEEnabled() 393
DDEExecute() 394
DDEInitiate() 395
DDELastError() 396
DDEPoke() 398
DDERequest() 402
DELETED() 403
DDESetOption() 403
DISKSPACE() 404
DIFFERENCE() 404
DOW() 405
DMY() 405
DTOR() 406
DTOC() 406
EMPTY() 407
DTOS() 407
EOF() 408
ERROR() 409
EXP() 410
EVALUATE() 410
ECLOSE() 411
FCHSIZE() 411
FCOUNT() 413
FCREATE() 414
FEOF() 415
FERROR() 416
FFLUSH() 418
FIELD() 419
FGETS() 419
FILE() 420
FLOCK() 421
FKMAX() 421
FILTER() 421
FKLABEL() 421
FONTMETRIC() 423
FLOOR() 423
FOPEN() 424
FOUND() 426
FPUTS() 427
FSEEK() 429
FREAD() 429
FSIZE() 430
FWRITE() 431
FV() 431
FULLPATH() 431
GETBAR() 432
GETENV() 434
GETDIR() 434
GETFILE() 435
GETPAD() 437
GETFONT() 437
GOMONTH() 438
IIF() 439
HEADER() 439
INKEY() 440
INT() 442
INSMODE() 442
INLIST() 442
ISCOLOR() 443
ISALPHA() 443
ISLOWER() 444
ISDIGIT() 444
KEY() 445
ISUPPER() 445
LASTKEY() 446
LEN() 447
LEFT() 447
LIKE() 448
LOCFILE() 449
LINENO() 449
LOCK() 454
LOG() 457
LOOKUP() 458
LOG10() 458
LUPDATE() 459
LTRIM() 459
LOWER() 459
MCOL() 460
MAX() 460
MDOWN() 461
MDY() 462
MDX() 462
MEMORY() 463
MEMLINES() 463
MESSAGE() 464
MENU() 464
MOD() 465
MLINE() 465
MIN() 465
MRKBAR() 466
MONTH() 466
MRKPAD() 468
MROW() 470
MWINDOW() 471
NDX() 472
OCCURS() 473
OBJNUM() 473
NETWORK() 473
NUMLOCK() 473
ON() 474
OEMTOANSI() 474
ORDER() 475
PADC,PADL,PADR 476
PAD() 476
OS() 476
PARAMETERS() 477
POPUP() 478
PI() 478
PAYMENT() 478
PCOL() 478
PRMBAR() 479
PRINTSTATUS() 479
PRMPAD() 480
PROGRAM() 481
PROMRT() 482
PUTFILE() 483
PROW() 483
PROPER() 483
RAND() 485
PV() 485
RATLINE() 486
RAT() 486
READKEY() 487
RDLEVEL() 487
RECNO() 488
RECCOUNT() 488
RELATION() 489
RECSIZE() 489
ROUND() 490
RLOCK() 490
REPLICATE() 490
RIGHT() 490
SCHEME() 491
RTRIM() 491
ROW() 491
RTOD() 491
SEEK() 492
SECONDS() 492
SCOLS() 492
SET() 493
SKPPAD() 495
SKPBAR() 495
SIGN() 495
SIN() 495
SQRT() 496
SPACE() 496
SOUNDEX() 496
STUFF() 497
STRTRAN() 497
SROWS() 497
STR() 497
SYSMETRIC() 498
SUBSTR() 498
SYS() 499
TAG() 509
TARGET() 510
TAN() 510
TRANSFORM() 511
TIME() 511
TRIM() 512
TXTWIDTH() 512
TYPE() 513
UPDATED() 513
UPPER 514
USED() 514
VAL() 515
VARREAD() 515
VERSION() 516
WBORDER() 516
WCHILD() 517
WCOLS() 518
WEXIST() 519
WFONT() 520
WLCOL() 521
WLROW() 521
WMAXIMUM() 521
WLAST() 521
WMINIMUM() 522
WONTOP() 522
WOUTPUT() 523
WREAD() 524
WROWS() 524
WPARENT() 524
WTITLE() 525
WVISIBLE() 525
YEAR() 526
附录一 Windows的PoxPro 2.5各系统菜单名称 527
附录二 FoxPro 2.5可使用的颜色与颜色代码 531
附录三 INKEY()及LASTKEY()函数的返回值 532
附录四 READKEY()函数的返回值 534
附录五 “ON KEY=”所用的按键码 535
附录六 ASCII码列表 536