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!

Error 2005 error loading file 1

Status
Not open for further replies.

Parkflyer

MIS
Apr 2, 2010
3
US
I am working on updating our PRO50. In doing this I have to convert the program to VFP 7.

I am entering an invoice and when I click on line items it gives me an error 2005 error loading file.

Also some of the screens if I try to MODI FORM AR\AR??? it gets a record number problem.

Their was no project file with the installation (we have and paid for the source code). Does anybody have a standard project file so I can build from that.

Thanks.
 
What is the SBT version you moved into?

From Sage Accpac 6.x, screens must be open as a class, so you should try modi class command instead of modi form.

Programming style is also different, so you should be trainned before you enter to make modifications.


 
Thanks for the reply. To clarify our situation.

We have SBT pro50. It was compiled in an earlier version of Foxpro (5 I believe). I am trying to make some changes unit prices to 4 decimials and 6 line addresses being the most pressing.

For example if I
MODI FORM \PRO50\AR\ARLIST it errors out with error loading file .... class def sbtform. How can I avoid that?

And how can I tell what file it is unable to load when I get a 2005 I can send screen shots if you need.

Thanks.




 
You have to modify the data dictionary and then update from data dictionary. You find those funtion in the system manager section.
 
I would guess that you need to set you Default Directory first. The icons and ancestor classes are stored with relative paths.

So, SET DEFAULT TO F:\PRO50
Then: MODIFY FORM AR\ARLIST

If you make changes to any compiled code in a version of VFP higher than 5, then you will need to re-compile everything. And that might make the SBTW executable no longer work. You can't re-compile that easily.
Also, I think there may be issues with the way VFP7 and higher deal with Windows Themes.
I would recommend any changes be done in VFP5 to avoid disappointment.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top