Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
_Screen and ActiveForm and SYS(1272)
Message
From
10/05/2001 12:38:21
Jay Johengen
Altamahaw-Ossipee, North Carolina, United States
 
 
To
10/05/2001 11:52:40
Cetin Basoz
Engineerica Inc.
Izmir, Turkey
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Miscellaneous
Thread ID:
00505800
Message ID:
00505828
Views:
25
>>>>I'm using SYS(1272) to return a reference to the current page in a pageframe. Then I store this in an array and try to use it to return to the last page (before the new current one). The problem I seem to be having is that SYS(1272) is returning "Form1.PageFrameA.PageA3" and any code I try when evaluating says that Form1 doesn't exist. Using "_Screen.Form1" or "_Screen.ActivePage" doesn't work either. If I check the Parent in the debugger it doesn't exist. I could do something pathetic like strip off the "Form1" from the returned string, but I just can't bring myself to do it yet. Can anyone give me some insight into working with hiarchy at these levels? Thanks!
>>>>
>>>>Regards, Renoir
>>>
>>>Renoir,
>>>sys(1272) always starts hierarchy with formName. If formname and scx name was same it would work for the 'first' instance of that form. But there what you need to have 'thisform', right ? So just stuff() it there :
>>>lcObject = sys(1272)
>>>lcRef = stuff(lcObject, 1, at('.',lcObject), 'thisform.')
>>>
>>>with eval(lcRef)
>>>...
>>>
>>>Cetin
>>
>>Ahhhh... I didn't understand about the form name and scx being different and how it would affect the hierarchy. It worked fine...Thanks!
>>
>>Renoir
>
>Renoir,
>You mean you fixed it by setting formname and SCXname to same ? If so don't do it IMHO. It would work till you have another instance of the same form.
>Cetin

No... I did what you said using the Stuff() command. I was just thinking outloud about understanding why it acts the way it does with the form name and scx name... Renoir
Previous
Reply
Map
View

Click here to load this message in the networking platform