I am currently working on an old program written in Visual Foxpro 9, and is the first time I am facing this language. In the program there is a file called start.prg in wich are present all the procedure that will be called from the rest of the files. In particular, there are some procedures that initialize the connection with .dbf files, here one example:
procedure a
select 1
use parkoft exclusive
// some actions with parkoft
Reading on the web, I found that visual foxpro has some commands similar to sql. So, what I thought, was that the Select was the field to select. But in this start.prg, there are around 100 procedures similar to the described above. But every procedure has a select N, with N progressive. The last procedure:
procedure last
select 50
use vendxcli shared
// actions
In particular, I noted that when 2 procedure are with the same select N, the command use is referred to the same .dbf file (select 50 -> use vendxcli). This make me think that the N has something to do with the tables.
So, I created a dbf file. I added the file in the .pjx and I wrote another procedure into start.prg:
procedure Nuova
select 99
use oldsell wxclusive
// actions with oldsell
But the program, when I use this procedure, takes data from other existing tables. What did I wrong ? What means the select N command?
If you need some other informations to help me, please ask everything you need.