Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Hellooooooooo I STILL need help with this!!!!
Message
 
 
To
30/11/2000 10:31:53
Chuck Tripi
University of Wisconsin - Milwaukee
Milwaukee, Wisconsin, United States
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00447316
Message ID:
00447473
Views:
15
Chuck,
>I didn't mean to insult you. I am just frustrated with my limited understanding on how to code this simple jumping up and down navigator. yes, I know it is my fault and my problem. I created a form with the VFP wizards and only found that it is more work to mess around with codings there and there. So, I am starting all over, hoping I could do a better job. I just would like help on this. When somebody says, 'oh, put that in there', I don't get where is 'there' and not only that, I could (and do) be missing that there would have to be something else to operate such (like differances between the 'Activate' and the form's 'Add/Edit Property' or a code needs to be somewhere else).

You didn't insult me so I don't want you to think you did. Sometimes things can get confusing; I've been there and I'm still trying to get back. The point I wanted to make to you and anyone else lurking was you just can't post those words. While it may be true that a lot of people do cut and paste examples posted here, the examples were probably provided without solicitation.

*snip*
>So, may I ask if you could help me with what's wrong with this coding below? Please? What I like to do is DISABLE the button(s) when the record pointer goes to the top and ENABLE those button(s) when the 'Next' (or 'Previous' or so on) is clicked.
>

Check out the _DataNavBtns class in the FFC class library _DataNav. The EnableDisableButtons method has a good example of what you need to check on every button click after you have first moved the record pointer with your navigation button.

>I also have another issue that in my main.prg, I have the SET RELATION in the correct order, yet, the grid does not operate that way? But, I need to be nice and ask one question at a time. This is why I asked if I could email the whole project (32KB zip), that way, hopefully you can see where I am making the mistake, not just to have you do the work for me.
>

Honestly, I don't have a lot of extra time to review code. It is much more efficient for me to review code snippets here with an explanation attached than to dig around in someone else's code even if it is well documented.

That said, does the grid have its LinkMaster property set. You don't have to use SET RELATION, you can use the LinkMaster, ChildOrder and RelationalExpr properties and have the grid itself take care of this behvior.

In the Grid Init
With THIS
   .ChildOrder = "MyParentTableFK"
   .LinkMaster = "MyParentTable"
   .RelationalExpr = "MyParentPK"
Endwith
This assumes all these tables are already open before the Grid Init.
Larry Miller
MCSD
LWMiller3@verizon.net

Accumulate learning by study, understand what you learn by questioning. -- Mingjiao
Previous
Reply
Map
View

Click here to load this message in the networking platform