home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
DP Tool Club 16
/
CD_ASCQ_16_0994.iso
/
news
/
4611
/
fw16d.ins
/
SAMPLES
/
TESTDBF.PRG
< prev
next >
Wrap
Text File
|
1994-05-15
|
805b
|
32 lines
// This is a prototype. Not functional yet!
#include "FiveWin.ch"
//----------------------------------------------------------------------------//
function Main()
local oDbf, oRecord
DBF oDbf FILENAME Test.dbf
FIELD Name AS CHARACTER LEN 30
FIELD Age AS NUMERIC LEN 2
FIELD Phone AS CHARACTER LEN 15
FIELD Active AS LOGICAL
ENDDBF
oDbf:Use() // It calls automatically oDbf:Create() if necessary
// If DBF structure don't match Object, it warnings!
DEFINE RECORD oRecord FROM oDbf
@ 2, 2 FIELDGET oRecord:Name
@ 3, 2 GET oRecord:Age
@ 4, 2 GET oRecord:Phone
@ 5, 2 GET oRecord:Active
return
//----------------------------------------------------------------------------//