Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Navigator
Message
 
To
30/01/2001 10:54:01
Chuck Tripi
University of Wisconsin - Milwaukee
Milwaukee, Wisconsin, United States
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Title:
Miscellaneous
Thread ID:
00469698
Message ID:
00470186
Views:
45
Chuck,

I am lost. Let us start again.
If you are getting error "Record is out of range", first of all you should analyze on what line of code it happens.

For example, you may use:
on error wait wind prog()+chr(13)+str(line())

After you determine where it happens, use debug or suspend the program execution on the previous line of code. When suspended, activate screen and analyze what is your alias(), recc(), recn() and record# to which you want go to.

There could be various scenarious that cause the error: you are sitting on the not expected alias, or the #record number you want to go is greater then the recc(), or it is negative, ot it is zero, etc. And the solution depends on what you get.

So, please, try as I suggested, and post what you get.



>>>>>>>>>>>>>>>>>Previous messages below

Not to be rude, but this didn't help. I still need to know WHERE this should go. I did the SET STEP ON and followed it, the math and work area is correct, but it is the matter is WHERE this goes...

>Hope this will help.
>
>WHERE would that go? In the ClickEvents of all of the buttons (to ensure it is working)? I was hoping not having to repeat the coding (copy/paste it all over) or use it as a function? I have a parent table (person) and the child table (auth) is in the grid, with the relationship active.
>
>>>>>>>>>>>>>>>>>>Previous messages below
>>SELECT auth
>>COUNT FOR person.id = auth.id TO ct
>>SELECT person
>>IF ct > 0
>>ThisForm.Commandgroup2.Command2.ENABLED = .T. (via, the Edit button)
>>ThisForm.Commandgroup2.Command3.ENABLED = .T. (via, the Delete button)
>>ELSE
>>ThisForm.Commandgroup2.Command2.ENABLED = .F.
>>ThisForm.Commandgroup2.Command3.ENABLED = .F.
>>ENDIF
Today is tomorrow's yesterday.
Previous
Reply
Map
View

Click here to load this message in the networking platform