On Thu, 2006-17-08 at 03:28 +0000, Terry wrote:
> William Case <billlinux <at> rogers.com> writes:
> 
> > 
> > > You'll have to write the macro to do the comments thing, but then you 
> > > can add it to the BASIC IDE via either:
> > > - "Tools - Customise - Toolbars(tab)" in the BASIC IDE window, or
> > > - the appropriate toolbar drop menu itself (little down arrow at the far 
> > > right of each toolbar), choose "Customise Toolbar".
> > > 
> > > In the dialog, when you click on the Add button you can find your macro 
> > > in the Catagory list (under "OpenOffice.org Macros"). Once added to the 
> > > Toolbar Content list use the Modify button to pick an icon.
> > > 
> > > Ross
> > I just assumed that I would have to go through special contortions or
> > use another language to change the macro editor, but if not, that's
> > great advice.  I'll try it right now.
> 
> I'd be interested in seeing the macro you write.  What I've done in such a
> situation is excise the code I want to omit temporarily and paste it in a
> separate Sub with a name like Sub Temp or Sub Notes.  I then paste it back 
> piece
> by piece as I want to test it.
> 

I guess it's whatever you get used to.  I find commenting-out gives me
fewer opportunities to mess things up.  When I start cutting and pasting
code I find I leave it lying all over the place under all kinds of silly
names.

Well, to see if I can get it working I'll write something that goes
'Home' in the current cursor line and inserts "rem^"; then drops the
cursor down a line and goes 'Home' again.  That would be useful to
start.  The problem might be getting the macro to accept that it is
working in a macro editing page -- and maybe not.  

Once I get it stable I'll see if I can get it to search for selected
lines and add 'rem ' to each line.  When that's stable the macro should
be able to store the relative location (to allow for editing) of each
'rem ' it's added so it can later undo.  I guess I'll have to look at
lisp code to see how emacs does it.  Maybe just removing 'rem's from
selected lines will suffice.

This, of course, isn't a sample of the code, but it gave me an
opportunity to think some things through.

-- 
Regards Bill

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to