Welcome To The Home Of The Visual FoxPro Experts  
home. signup. forum. archives. search. articles. downloads. faq. members. files. rss.
 From: Tore Bleken
  Where is Tore Bleken?
 Stokke
 Norway
 Tore Bleken
 To: Ahsan Rana
  Where is Ahsan Rana?
 Lahore
 Pakistan
 Ahsan Rana
Subject: RE: VFP generating Error
Thread ID: 439243 Message ID: 439288 # Views: 39 # Ratings: 0
Version: Visual FoxPro 9 SP2 Category: Databases, Tables and SQL Server
Date: Friday, August 19, 2016 3:45:46 PM         
   



> >
> > Read the error message! And check the syntax for ForcePath() in Help!
> >
> > There's a fine line between helping and adding to the confusion.
> >
> > How to create sample data
>
>
>
> Above code is working fine on No of PCS and Laptop but my PC is generating this error. On my own laptop with windows 10 there is no error at all with this code and my PC with Windows 7 is generating error since last 10-15 days and before this my PC was also working fine with this code.
>
> Rgds:
> Ahsan Rana

No way, the highlighted line gives an error because the syntax is wrong. This has nothing to do with Windows version, it's a syntax error. As I wrote earlier, check the syntax for ForcePath() in Help!

Try this line, which is the first part of the line giving error, in the command window, and see for yourself. It will give the error you showed because it's not correct.

?forcepath(sys(5) + sys(2003) + '\xl\')

There's a fine line between helping and adding to the confusion.

How to create sample data

ENTIRE THREAD

VFP generating Error Posted by Ahsan Rana @ 8/18/2016 6:25:44 PM
RE: VFP generating Error Posted by Borislav Borissov @ 8/18/2016 6:46:52 PM
RE: VFP generating Error Posted by Ahsan Rana @ 8/18/2016 7:43:43 PM
RE: VFP generating Error Posted by Tore Bleken @ 8/18/2016 9:47:58 PM
RE: VFP generating Error Posted by Ahsan Rana @ 8/19/2016 3:23:51 AM
RE: VFP generating Error Posted by David Kurniawan @ 8/19/2016 5:03:44 AM
RE: VFP generating Error Posted by Tore Bleken @ 8/19/2016 8:17:40 AM
RE: VFP generating Error Posted by Thierry Nivelet @ 8/19/2016 6:17:05 PM
RE: VFP generating Error Posted by Tamar Granor @ 8/18/2016 10:21:22 PM
RE: VFP generating Error Posted by Ahsan Rana @ 8/19/2016 3:25:53 AM
RE: VFP generating Error Posted by Ahsan Rana @ 8/19/2016 3:26:49 AM
RE: VFP generating Error Posted by David Kurniawan @ 8/19/2016 5:02:49 AM
RE: VFP generating Error Posted by Tore Bleken @ 8/19/2016 8:16:52 AM
RE: VFP generating Error Posted by Ahsan Rana @ 8/19/2016 12:47:40 PM
RE: VFP generating Error Posted by Tore Bleken @ 8/19/2016 3:45:46 PM
RE: VFP generating Error Posted by Ahsan Rana @ 8/19/2016 5:00:59 PM
RE: VFP generating Error Posted by Tore Bleken @ 8/19/2016 6:56:31 PM
RE: VFP generating Error Posted by Ahsan Rana @ 8/19/2016 7:18:50 PM
RE: VFP generating Error Posted by Tore Bleken @ 8/19/2016 7:28:41 PM
RE: VFP generating Error Posted by Tamar Granor @ 8/19/2016 10:13:32 PM