Answer Questions
Glenn Qiu Working Folder
With VFP 3.0 I always checked whether the EXE folder sys(16,0) existed in the same folder as the current working folder set("default") + curdir() . If they did not match then I knew that CONFIG.FPW would not be read. So I would exit and display a message telling the user to modify their shortcut. Is there any way in VFP 6.0 and newer to make sure CONFIG.FPW is read regardless of the current folder or method used to start the program ======= ...Show All
Peter Evans VFP 8.0 and Acrobat PDF Writer
Hi, We have an application developed in VFP 8.0. Our clients are having a problem while printing reports to normal printer AFTER they have printed to an Acrobat PDF writer and created a PDF file. The reports print fine when they send it to a normal printer without sending it to a PDF writer. Subsequent to sending it to a PDF writer and creating a PDF file, the reports throw an error saying "File Not Found" when printed to a normal printer. This ...Show All
milocr APP_GLOBAL
I found this object ( ) in a project file and also there were a couple of posts in the NG mentioning it briefly. I remember one of the experts said that he had never heard of it. It reminds me of a very useful object in VdBase: _app. It is a global object and you can attach anything to it to be used in any part of the program. I usually define all my queries as children of this object. Anyway the command window in VFP does not recognize it. Help ...Show All
lvance1611 Help with - "Do you want fries with that?"
Hi I wrote an app a long time ago that looked perfectly suited for a touch screen display. The user could choose the item or items that they want to enter into a POS terminal and could enter the cash or check transaction and generate a receipt. I just realized after installing a touchscreen that I never programmed the buttons with the numbers 0-9 or the decimal point to replace their keyboard equivalents. Does anyone know what code ...Show All
barloworld Visual Foxpro tables locked by aspnet_wp.exe process
Hi! I'm currently using Visual Foxpro 9.0, .NET Framework 1.1, Visual Studio 2003 (VB) for web development. Everything's fine except this little 'quirk'. When i'm doing some testing, and try to open a table with VFP, i have the following message :File access is denied .... with the path of the table. The first solution i found (not very practical in a running environment) is to run a cmd-line and type iisreset to release any ...Show All
Barry.Kelly VFP linked server issue
We're using SQL Server for the majority of our applications, but our accounting package is still in VFP 8.0. I need to make some costing adjustements from our inventory program. I have linked the VFP database to SQL Server just fine and, using OPENQUERY, I can SELECT data without a hitch. Performing an UPDATE or INSERT, however, is a different story. I get the following error: "Server: Msg 7301, Level 16, State 2, Line 1 ...Show All
Evan_Chang MSComctlLib.TreeCtrl.2 Problem
Working with the treeView Control I ran into an unexpected problem. It appears to be impossible to collapse a node branch programmatically. Collapse is an event, not a method and when I tried to use it as a method I could not get anywhere. I also tried to employ DblClick with the same negative result--the tree does not budge. Aside from Collapse I will need Expand as a method not event, although I am using it as even already. The expansion ...Show All
SamSL editbox programmatic change
I am looking for an easy way to determine if I've made interactive change in an editor box. The issue is that there are about 16 controls on a container, they are initialized from a table record thus their values at activate time generally are not trivial default. I have to save the changes with a SAVE button if I made any but I want this button's click method to quickly determine which control values have been changed. I do not want to do REPLA ...Show All
BAMoreno a bug or i miss something?
This is how it goes, i make a prg with this coding below; lcdir=GETDIR() SUSP IF !DIRECTORY(lcdir) //some code here ENDIF then I run the prog, it works fine, the window that shows the directory tree pop-ups, then I click the button SELECT, the window's gone,but instead of the debugger will comes-up next or I will select the debugger from the menu, the wi ...Show All
Handofphate Visual Foxpro Book Recommendations?
All, Can anyone recommend a good book for learning VFP 6.0 from scratch I've looked at SPECIAL ADDITION USING VISUAL FOXPRO 6 but it's not really helping me so far. All I am trying to do is create a simple .exe that will read amd update some records from a .dbf and insert those records into a MS SQL table. All the books on Amazon have gotten terrible reviews and MSDN has little to no info on doing thi ...Show All
Abdul Wasie designing query in foxpro
After creating a query using vfp6.0 and when i re-open the query the database is unable to locate the tables. 'errors: tablename.dbf does not exist'. The query is not executed. The design is as follows: I have 5 tables which are located in different folders, i.e, table A,B,C - folder1 and table C,D - folder2 I have created a database in another folder, say c:/database, and i have added a local view. The view has to join all the tables d ...Show All
topmar How to open a form each time w/different random image
Greetings everyone, Each time the form is called it should display a different .bmp. The filename+number allows selection via a random number generator. =Rand(-1) & seed the random number generator once only gnLower=2 gnUpper=7 store INT((gnUpper - gnLower + 1) * RAND() + gnLower) to value store "randomPic" + alltrim(str(value ...Show All
Rich1212 foxpro dos to visual foxpro 9 conversion
I am trying to convert an existing application I created many years ago in foxpro 2.5 for dos, but when I try to run my programs I get this error: File 'get_last_key.prg' does not exist. Can anyone help me. I'm completely new to visual foxpro any help will be greatly appreciated. Thanks, bertle Thanks for your response.The conversion is from a foxpro dos 2.5 application with a couple of reports and lables mos ...Show All
ArqAngel Using Text To Speech With Visual Foxpro 8 & 9
I am writing an application in VFP9 that I want to read a field from a Foxpro table and read this information the user. I have had success using the speech5.1 SDK, but only with VB or C#. This application must be written using foxpro. The problem I am having is that I cannot insert the activeX control (OLE object) into my foxpro form. The Insert Object window will not allow me to add sapi.dll to my form. Any ...Show All
Cocktail runtime output is misplaced
I have never seen it anywhere before. When I use a command "hello world" issued MANUALLY at the command wiindow I find the output string in the right place, I think you call it VFP output panel: it is white and vast. When I use a similar command inside of a user defined procedure which I call from inside my form (I use such commands for debugging) the output appears on the FACE of the form. I cannot even see all the lines since I covered the for ...Show All
