-=> Ben Cavanagh schreef op 24 Jun 97 21:00:11 aan Bong Benitez over Adding
Fields in Clipper..<=-
BC> ---- procedure FixFile()
BC> select 1
BC> use NAME
///---First CLOSE the databases! You've opened NAME already and this
will give you an ALIAS ALREADY IN USE-error...
BC> select 1
BC> go top
BC> do while .not. eof()
BC> select 2
BC> append blank
BC> replace LASTNAME with 1->LASTNAME
BC> replace FIRSTNAME with 1->FIRSTNAME
BC> replace MID with 1->MID
BC> select 1
BC> skip
BC> end
...Why not just do APPEND FROM...?
Furthermore you don't use the aliasses. Can be rather confusing those
numeric values. I rather use NAME-> and TMP-> than 1-> & 2->. It's
more clear to me then which database I'm actually adressing...
Cu,
Ron
--- Blue Wave v2.12
---------------
* Origin: SYNCNET BBS - +31-35-6237178/6244318 [ISDN] (2:283/1)
|