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 John Tel on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How can you run multiple line of code from VFP command window ? 2

Status
Not open for further replies.

ramani

Programmer
Mar 15, 2001
4,336
AE
When you see a full form code or a full PRG in these FAQ section or in a thread or whereever, and you want to test it quikly without creating a PRG, you can follow the method described here.

1. Have the code selected and cut into your clipboard.
2. To identify the nnn number of lines starting position in the command window, simply type
******************** and press <CR>
3. Then Press Ctrl+C to copy the clipboard content into your VFP command window.

4. Now the trick is, dont press any <CR> or Enter Key.

Instead select the text you just copied.. for this.. as usual.. Hold down the ShitKey and Press the Uparrow
.. until you reach the demarcation line you made in step2.

5. Now simply press enter.

VFP will run all the codes one by one as if it is a PRG with these code.

This reads long... but quite simple to follow.
I will add this to FAQ section soon. Have a nice day :)
:)

ramani :)
(Subramanian.G)
 
ramani,

Good tip. To add to what ramani has said, you can highlight portions of your code in the command window or prg file and then right-click on the highlighted code and left-click on &quot;Execute Selection&quot; option that shows up in the context menu.

Slighthaze = NULL

[ul][li]FAQ184-2483
An excellent guide to getting a fast and accurate response to your questions in this forum.[/li][/ul]
 
Ramani, Slighthaze !
Thanks for this information, very helpful.

Regards from Monika (Warszawa - Poland)
(monikai@yahoo.com)
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top