Gmail Calendar Documents Reader Web more »
Recently Visited Groups | Help | Sign in
Google Groups Home
copy line block to column location
There are currently too many topics in this group that display first. To make this topic appear first, remove this option from another topic.
There was an error processing your request. Please try again.
flag
  1 message - Collapse all  -  Translate all to Translated (View all originals)
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
Larry  
View profile  
 More options Nov 10, 11:46 am
From: "Larry" <hayes_sm...@hotmail.com>
Date: Tue, 10 Nov 2009 10:46:15 -0600
Local: Tues, Nov 10 2009 11:46 am
Subject: copy line block to column location

/***
Just to complete the circle, this macro will convert a line block into a
column block and copy it to the cursor position, even if the cursor is
in another file.

The block-copy is the normal column block 'push' copy.

As an example, say you have 10000 lines containing something or other in
a column, but you only want to copy 5000 lines to another file at a
column location. With this macro, you can use the easy line-block to
mark those 5000 lines of column data without having to manually find the
longest line in the marked block, place the cursor at the desired
location, execute the macro, and those 5000 lines will smoothly fit into
the column position at that location.

Of course, you can always adapt it to 'move' and/or 'overwrite'.
***/

// macro source starts here
// jigcopyline2col.s - copies a line block to a column block

<ctrlshift x><l> execmacro("jigcopyline2col")

/***
This macro will convert a line block into a column block
and copy it to the cursor position.
***/

proc main()

integer ll=0
integer bl=query(blockbegline)
integer el=query(blockendline)

if isblockmarked()==_line_
  pushposition()
  gotoblockbegin()
  pushposition()
  createtempbuffer()
  copyblock()
  ll=longestlineinbuffer()
  abandonfile()
  popposition()
  markcolumn(bl,1,el,ll)
  popposition()
  copyblock()
else
  sound(60,40)
  warn("No Line Block Marked. Ending.")
  goto ending
endif
sound(9000,40)

goto ending
ending:

end
// macro source ends here


    Reply    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
End of messages
« Back to Discussions « Newer topic     Older topic »

Create a group - Google Groups - Google Home - Terms of Service - Privacy Policy
©2009 Google