Thanks Mike. I am curious though. If I explicitly open the tables in the load event what is the advantage of using the data environment in the first place?
I am working on a function which will allow my users to deploy their data to an alternate directory. The problem I am having is that once I move the data I am unable to get my program to use the deployed data. Everything I have tried makes it look as though I have set the database properly but...
Maybe my debugging skills are the problem.
If I create a new form and I want to debug the VALID event for a text box I copy the code into a prg and run that in the debugger. If the event calls an object created outside of the event I get errors like c:\...\investor_data.scx does not exist.
I...
Hi,
I'm just starting to really get my feet wet with VFP7. I have been using the form designer to create forms because it seems much easier.
I notice that in the code examples here people are often using code to create their forms.
Can someone discuss the pros and cons of each approach?
I...
I agree, my topic was off the mark. The point I was trying to make was that there may be some other certifications that would have more career value or at least wider application in the industry.
As I said, I'm just looking for opinions.
I'm just curious. I am learning VFP because I happened to get a project at work that needs it but I don't see all that much opportunity beyond what I am doing now.
I've been looking at learning the language as something I must do for this job. Don't get me wrong I think n FoxPro is a good tool...
Thanks for the advice.
I looked at enternam_sort's data environment and it contains no tables. All this form does is store a user input character string to a variable.
The first form does use a private DE and enternam_sort was using the default DE. So...
Just for the heck of it I changed the...
Does any one know which events cause a form's data environment to open/close?
I ran into a problem where the lostfocus event of a txtfield on form1 called a form2 and when form1's activate event fired again the form1 data environment was no longer open.
Here is the code in the lostfocus event...
I have discovered that if I take out all the WAIT WINDOWS the code executes properly.
Strange that WAIT WINDOW would change the currently selected database.
There is a huge amount of code but I really think that all you need is this piece. Of course there is an ENDDO but the problem presents itself long before you ever reach it.
Something very strange is happening when I use SELECT...
Here is a portion of the code:
*******************************************************
SELECT deduc
SET FILTER TO deduc.loan_no = ALLTRIM(macct1)
GOTO TOP
WAIT ALIAS() WINDOW
DO WHILE !EOF()
WAIT ALIAS()WINDOW...
Cool!!!
Thanks to everyone who responded. I learned way more than I expected to.
But...
I'm trying to make the INIT event as generic as possible. If I use the code suggested it works great but only for that one particular instance.
I'd rather pass variables to the form and have the INIT...
Thanks, but since I am new to this it isn't obvious from your reply what I need to do. So I'll give more detail about how I am approaching this. I have a program that takes a user entered string (a name) and searches a table for that string. If the string is found the following code is executed...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.