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

How can I excute more lines of code from command wndow as if it is a PRG?

Tips -N- Tricks

How can I excute more lines of code from command wndow as if it is a PRG?

by  ramani  Posted    (Edited  )
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.
*********************************************
ramani
(Subramanian.G)
http://winnersoft.coolfreepages.com/
Register to rate this FAQ  : BAD 1 2 3 4 5 6 7 8 9 10 GOOD
Please Note: 1 is Bad, 10 is Good :-)

Part and Inventory Search

Back
Top