Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How do I reopen an SCX file.
Message
 
To
28/10/1998 11:37:16
George Lee
Microcomputer Engineering Services, Llc
Huntington Beach, California, United States
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Miscellaneous
Thread ID:
00151660
Message ID:
00151753
Views:
16
Hi George,

>I;m curious if there is any way to re-open the SCX file when the file is already open. Also I wanted to know if you have selected text in a method during design time, is there a way to determine what text you have selected. I know how to get the currently selected object your working on, but I can't see a way to get a hold of the selected text.

Unfortunately you can't open a SCX file anymore when the designer is open. It used to be possible in FP 2.x and it's still possible for a VCX based form. If you for example want to get the method code of an object you can use GETPEM().

Do determine the selected text you can keybopard Ctrl+C. In VFP 5 you can also call SYS(1500) with the copy menu option. And finally of course you can use the _EDxxx functions in FoxTools.Fll. I think the later are particulary interesting for you, since you can determine the current cursor position in any method editing window and get the text around that position like the current method name, no need for highlighting the methodname first. This would allow hyperlinks like the one you're are talking about by just issueing MODIFY FORM METHOD again. All _Ed functions are described in the help file for VFP.

One problem, though, remains. I suppose you determine the current object with ASELOBJ(). But the method window must not match the currently selected object. Some more information can be received from the title, that's what SuperClass from Ken Levy is using. But the problem starts when the current object doesn't match the one in the method window and you have several objects with the same name. There are some techniques you can use to figure out which object is actually meant, but there's no 100% secure way to figure out to which object a method window really belongs.

Anyway, your tool sounds really usefull. Do you plan to load it into the library when you're done? If you need a beta tester... :)

Christof
--
Christof
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform