Quantcast
Channel: Planet Object Pascal
Viewing all articles
Browse latest Browse all 1725

twm’s blog: Using dBase

$
0
0

I recently needed to do some table manipulation with Visual dBase. Not being an expert with this program (I usually write tools for that purpose in Delphi using the BDE or tdbf), I had to look up quite a few commands.

Here are the links that proved useful:

But what I was actually looking for did not show up in a Google search:

How do I replace a field in all records with the corresponding record number multiplied with 10? And this only for those records that do not have a value > 99999 in that field already.

The answer turned out to be rather simple:

goto top
replace lfdnummer with recno()*10 while lfdnummer  10000

Viewing all articles
Browse latest Browse all 1725

Trending Articles