#VFP CLIPTEXT CODE#Now enter ? _CLIPTEXT in the Command window and you'll see that the line of code you highlighted is printed on the screen. To demonstrate, highlight a line of code in the Command window and press Ctrl+C to save it to the clipboard. It's a two-way variable that you can take advantage of at design time and even at runtime within your application. You can use it to set other information based on what's in the clipboard, and you can use it to define what's in the clipboard. This contains the contents of the VFP clipboard. The first extra is a system variable called _CLIPTEXT. This is great when you're copying code from a program or when you're creating a giant SELECT statement that you want to be able to wrap. This is really more of a "hidden gotcha" than a "hidden secret"!Īnother thing you can do in the Command window is use the semicolon ( ) as a continuation character just as you do in code. This means that variables can go out of scope after the chunk of code has been run. When multiple lines of code are executed, a temporary program is created and then run. But did you know that you can highlight multiple lines of code and execute them at once? However, you have to realize how this works or you might not get the expected results. Many people already know that you can highlight a line of code in the Command window, right-click, and choose Execute Selection to execute the highlighted code. Here are some tips that can be used in the Command window as well as some lesser-known secrets about some of VFP's commands. The Command window is another place we spend a lot of our day. In this article, I'll reveal secrets of the Command window, several commands, and wrap up with a potpourri of hidden secrets. Then I revealed some secrets of IntelliSense as well as several tools and utilities included with Visual FoxPro. In the first part, I discussed various designers, a few controls, the Property Sheet, the Document View, and the Find Dialog. This is the second of two articles where I've been exposing several unknown secrets of the VFP IDE. Even experienced developers are bound to learn something new. You'll learn several different ways to improve your productivity. How many times have you looked over the shoulder of another developer and said, "Hey! How did you do that?" In this article Cathy Pountney uncovers many ways to work within the IDE, especially those that aren't so obvious or aren't documented. FoxPro has always had several different ways to do the same thing.
0 Comments
Leave a Reply. |
Details
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |