Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

ZLOC in _clipboard

Status
Not open for further replies.

154868

Programmer
Dec 5, 2003
23
Hi,

If you write ZLOC in a edit-window so you get a popup-list of all local variables.
How can I put this popup-list in the _clipboard ?
Any idea ?

VFP 8.0 SP1 / WIN XP prof.

Andreas

Andreas
DataBit GmbH
Switzerland
 
Andreas,

One way to do that would be to modify the Intellisense code which pops up the list of locals.

To do so, first back up your FOXCODE.DBF table (to find the location, look in _FOXCODE). Then open the table, browse down to the record whose Abbrev field contains ZLOC, and edit its Data memo field.

That field will contain the code of the ZLOC function. I can't see off hand how to modify it to put the result string in the clipboard, but it shouldn't be too hard to figure out.

Mike




Mike Lewis
Edinburgh, Scotland

My Visual Foxpro web site: My Crystal Reports web site:
 
.. very interesting.

but I had a misunderstanding about ZLOC.

realy I'm looking for a tool to analyse a program
code and give me back a string with all local variables in the clipboard, and so I can put it into LOCAL ....

Andreas

Andreas Wichmann
DataBit GmbH
Switzerland
 
Andreas,

No, Intellisense won't help you there. I don't know any existing tool that does what you want. Perhaps you should write one.

One problem would be that you would have no way of distinguishing local variables from other identifiers. There would be no way of knowing if it was a local, private, public or field name.

Still, might be worth persuing.

Mike


Mike Lewis
Edinburgh, Scotland

My Visual Foxpro web site: My Crystal Reports web site:
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top