Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Record pointer again
Message
From
06/10/1999 01:15:12
 
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00272774
Message ID:
00273061
Views:
35
Hi:

Thanks for your help with my record pointer...just have a little
snag.

I have set up Property on Form A(where grid is) - Currec
I have set up Property on Form B - Crec

In my command button to edit a record on FormA my code is:
select gidetail
thisform.currec = recno()
do formB with thisform.currec

In the init of FormB I have:
Parameter crecno
thisform.crec = crecno

Tracing through the debugger everything is working, it's passing
the correct value.

However, if I try to run the following code in any method(activate,
init,click etc...anywhere, i get a syntax error.

select gidetail
go thisform.crec
thisform.refresh()

I stuck a command button on FormB and pasted this code it and it works perfectly. If I select a record in my grid, hit my edit button
on FormA and then hit the command button on formb, everything's perfect.

But I need this to display without having to use a command button.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform