Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

SET EXCLUSIVE OFF

Status
Not open for further replies.

einsteinco

Programmer
Aug 4, 2003
3
HK
I am running Foxpro 2.6 in XP.
When I SET EXCLUSIVE OFF to run in network.
I can APPEND but I cannot EDIT the records.
Anybody can tell me why ?
 
Check for when you append records with USE mydbf and when you edit records with USE mydbf [NOUPDATE] clause added ? You will have to check your code. Why don't you try simple code if it is working then your code should work.
*****************
set excl off
use customer
browse
*****************
With this code press Ctrl+N to add records and edit already added records on Network.
and save by Ctrl+W

check attrib for file. Accept DBF all files should be read only

 
It works with simple EDIT or BROWSE without FORMAT.
If I SET FORMAT TO XXX before EDIT.
It does not work.
 
Do you have a predefined format file named XXX?
SET FORMAT is used to apply a 'template' to your browse.
You should probably be using something like:
Code:
BROWSE FIELDS ;
   cname         :25 :H="Report Name",;
   ctimestamp    :25 :H="Time Started",;
   xstatus       :14 :H="Status",;
   filesize      :10 :H="Size"    :p="@RJZ999,999", ;
   xferred      = ;
      IIF(xferred, "Yes", IIF(EMPTY(lpr.prtfilname), '', 'No')) ;
         :15 :H="Transferred" ;
   IN WINDOW mybrow

Where:
:25 is column width
:H="Report Name" is Column header
:p="@RJZ999,999" is Picture format




-Dave S.-
[cheers]
Even more Fox stuff at:
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top