Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
101 VFP7 Things, Part 22, EditSource()
Message
From
16/02/2001 10:43:25
 
 
To
All
General information
Forum:
Visual FoxPro
Category:
Other
Title:
101 VFP7 Things, Part 22, EditSource()
Miscellaneous
Thread ID:
00476642
Message ID:
00476642
Views:
68
Hey everyone, been awhile, pretty busy. But I came accross this and thought it was nifty.

THere is an EditSource() function, that lets you open up a procedure for editing with more control. You can open PRG, MPR, QPR, TXT, SCX, VCX, FRX, LBX, MNX, DBC Stored Procedures, and "others" with it.

The syntax in help looks like "EditSource(cShortCutID | [ cFilename [, nLineNo] [, cClassName]
[, cMethodName|ProcName]] [, Flags])" though Flags isn't supported in the Tech Preview (which is what I have at work here). Here are some examples.
?EDITSOURCE('sysmain.prg', 10)
?EDITSOURCE('aapplication.vcx', 10, 'auser', 'Init')
The cShortCutID thing is for the Task manager. It returns a 0 if it was opened, or a number indicating why it failed.
Next
Reply
Map
View

Click here to load this message in the networking platform