Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Refreshing the editor window (code dissappears!)
Message
 
À
28/02/2002 13:35:54
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Divers
Thread ID:
00625954
Message ID:
00628044
Vues:
16
Tamar,

Ok, now I know why I was confused. I usually block code that is to be modified with a "*{ 01/01/02 fj " and end the block with the same thing except I use a closing brace "*} 01/01/02 fj"

What I am trying to do is to select a block of code and when I press a function key, it will copy the selected text to the clipboard, put in my comments, then insert the text from the clipboard back into the editor. This way, I now have the code I am going to edit nicely marked.

The chg approach works fine for a standard comment, but I can't figure out how to set it so that it will mark a given block of text. I can select the text first, but I still don't know how to proceed from there.

One option may be to use both. A function key that will copy the selected text to a clipboard, then enter in something like chg which will then let intellisense do the rest. And then I will have a way to reference the editor and tell it to refresh itself....

Thanks,

Fletcher

>>Ok, stupid question. I have used Intellisense for keyboard shortcuts, etc. that respond to the keys I type. I first tried Intellisense, but couldn't figure out how to get it to work in this particular situation. In this case, I wanted to select some text, then press a key that would put comment blocks around that text. In my case, the code in the function key was:
>
>Open the IntelliSense Manager. Click on the Custom tab. In the Replace textbox, type the text string you want to trigger the behavior. For example, I have the script I posted set to "chg".
>
>Click Add to add the record. Now click Script and put your script in the window that appears. When you close the window, it's saved.
>
>Tamar
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform