Steve-vfp9user
Programmer
The below code is used to retrieve items that are linked to a MASTER table. There are several hundred items in the table MYITEMS.
I have been able to set up a small network in our office so when you run the program where the main files are stored it's quick, but when you run it from a laptop on the network it can take up to fifteen seconds to gather the information.
It all works but I was just wondering if the experts know of any quicker way to extract the information for those wishing to display it?
Thank you
Steve Williams
VFP9, SP2, Windows 10
Code:
USE MASTER SHARED
GO m.recno && Record number
m.mastlink=MASTLINK && This stores the actual linked number from MASTER to MYITEMS
tempfile=SYS(3)
SELECT * FROM MYITEMS WHERE MASTLINK=m.mastlink ORDER BY ;
MYORDER INTO TABLE tempfile+'.dbf'
* The linked items in tempfile+'.dbf' are then displayed in a grid on a form
I have been able to set up a small network in our office so when you run the program where the main files are stored it's quick, but when you run it from a laptop on the network it can take up to fifteen seconds to gather the information.
It all works but I was just wondering if the experts know of any quicker way to extract the information for those wishing to display it?
Thank you
Steve Williams
VFP9, SP2, Windows 10