Thank you, Griff and Mike. Your info has been invaluable, as it helped me put in place two more pieces of the puzzle: the scope of variables and passing parameters.
I like doing things properly, i.e. I'll rewrite the code. Good I'm still at the beginning. Thanks again.
VFP 9.0 SP2 on XP SP3
Thank you, Griff and Mike for your replies.
Yes, you are right: LOCAL hides the variable from the called subroutine. I've had the misconception that initializing a variable by STORE or an '=' operator gives it a LOCAL scope.
Here are my next questions:
1. What type are variables initialized by...
This is not an actual problem, it’s about scope and naming conventions of variables and is related to good coding style and programming principles. (I’m posting this after having read thread184-1527177. I’m also familiar with Hungarian Notation and Naming Conventions).
Suppose you have the...
Thank you for your responses. The code at FAQ184-1214 is very helpful, indeed.
Eventually I solved my problem. The difference from the typical incremental search is that in my case it is performed without user interface and control. It's too simple to be worth sharing, but I would publish it...
I need to find words and phrases in a table (a dictionary) and am looking for a better algorithm. I will appreciate your input.
Variables: Word, Phrase
Table records:
...
in
in order
in order to
in spite
... etc.
I read each word sequentially from a text file. My difficulty is to find the...
This posting created a confusion, so here is the background:
At the end of my posting 'How to RETURN from a form' I made a detour to a new thread, since I wanted to reply to Mike Gagnon, but the topic was worth standing on its own: Step-by-Step Guide to VFP. The spark came from this thread...
VFP help is just a look-up resource, not a learning tool. (One cannot learn a language from a dictionary, can they?). If someone wants to learn VFP 9, they need a step-by-step guide how to start with version 9.0. This guide should contain
- the basic principles of programming under 9.0: what...
In addition to the previous links, here is my list of links I've found so far (most are for advanced users)
http://www.foxite.com/forum/
http://doughennig.blogspot.com/
http://www.vfug.org/ (VFP User Group)
http://www.vfug.org/ (German VFP User Group, in German)
http://portal.dfpug.de/dfpug/...
I am in the same position as you, an ex-Clipper user learning VFP9.0 objects.
Very helpful to me were the free downloadable videos from sweet potato software (http://www.sweetpotatosoftware.com/spsblog/2006/07/02/VisualFoxProVideos.aspx).
My favourite and most valuable resource is this forum...
Thanks, Mike. It works.
I am really ashamed when I see how stupid questions I ask. Anyway, this forum is a treasure, at least for me.
Thanks again.
VFP 9.0 SP2 on XP SP3
Hello again,
I have a main form (Form 1), displaying a text file. A menu command calls a procedure in an external file, which processes the text file. Sometimes the procedure displays Form 2 to accept user input (DO Form2 WITH Params), appends a record and is RELEASEd (THISFORM.Release). No...
Thank you, Tamar for this posting.
I guess I'd better install the PEM Editor, which includes the NewProperty and NewMethod replacement?
But the PEM Editor is already another topic.
VFP 9.0 SP2 on XP SP3
Yes, that's very clear, Mike. And thanks for the prompt reply.
Since I only show this parameter in a textbox and not use it any methods, I'll do the following (and hope it's OK).
DO FORM Form2 WITH lcWord
......
(in Form2.Init)
PARAMETERS tcAddWord
THISFORM.NewWord.Value = tcAddWord
VFP 9.0...
Hello and forgive my stupid question. I'm still struggling with the IDE in 9.0 :(
I need to add a property to a form to hold a value, which I'm going to pass as a parameter. (The Help for 'How to: Pass Parameters to a Form' says: 'Create properties on the form to hold the parameters...')
How...
Thank you, Mike, for your reply.
I've already solved this problem.
Yes, I am new to the IDE and I'm still learning. Now it's clear.
I prefer working programmatically because 1. I am new to the IDE; 2. debugging is easier; 3. tracing the code visually is easier for me (a habit from old...
Thank you, Mike and Tamar, for your responses.
Mike, I did try the container method (it IS described in VFP Help, too) but at runtime (i.e. by 'DO FORM...' command) I cannot reposition the superimposed controls.
A workaround I've found is:
1.(in the Command Window) CREATE CLASS test OF...
Thank you, guys, for your help. This forum is sooooo helpful and effective.
Yes, Tamar, EXACTLY! All I want is to insert a combo, a separator and another combo in my toolbar and I stopped at the second object.
I am now trying to implement Mike's advice and to insert the three objects...
JRB-Bldr, thanks for the advice and the provided information. No problems for me handling both monitors in Windows.
I was hoping to make things clearer for me if I step on each line in the debugger on the second screen, while watching the program's main screen (the form) develop. You know, I...
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.