Gmail Calendar Documents Reader Web more »
Recently Visited Groups | Help | Sign in
Google Groups Home
Copying a column block to lines
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
  4 messages - 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 3, 8:03 pm
From: "Larry" <hayes_sm...@hotmail.com>
Date: Tue, 3 Nov 2009 19:03:55 -0600
Local: Tues, Nov 3 2009 8:03 pm
Subject: Copying a column block to lines

Having nothing better to do, I sang a little song and did a little jig...

Sometimes, you want to copy or move a column block to a location where
you want it to push the below-cursor lines down, like copying a marked line
block. What usually happens is that the column block just pushes the text
below and to the right of the cursor to the right edge of the column block
rather than pushing the lines down the file.

This macro will make line-space below the cursor line and copy the marked
column block to the new empty lines.

Now, is there an easier or better way to do this?

// --- source starts here
// copy a column block like a line block

<ctrlshift x><c> execmacro("jigcopycolaslines")

proc main()

integer i=0
integer j=0

if isblockmarked()==_column_
  i=query(blockendline)-query(blockbegline)+1
  pushposition()
  for j=1 to i
    addline()
  endfor
  popposition()
  copyblock()
endif

end
// --- 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.
S.E. Mitchell  
View profile  
 More options Nov 7, 9:19 am
From: "S.E. Mitchell" <sammy.mitch...@gmail.com>
Date: Sat, 7 Nov 2009 09:19:39 -0500
Local: Sat, Nov 7 2009 9:19 am
Subject: Re: [TSE] Copying a column block to lines
Cool - this is something I frequently have to do manually.

I don't know if this is easier or better, but it is different - and
only slightly tested:

public proc copy_col_as_lines()
    if isBlockMarked() == _COLUMN_
        MarkLine(Query(BlockBegLine), Query(BlockEndLine))
    endif
    CopyBlock()
end

Thanks for sharing your macro!


    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.
Heijer, Rob den  
View profile  
 More options Nov 9, 5:02 am
From: "Heijer, Rob den" <rob.den.hei...@capgemini.com>
Date: Mon, 9 Nov 2009 11:02:41 +0100
Local: Mon, Nov 9 2009 5:02 am
Subject: RE: [TSE] Re: Copying a column block to lines
This looks different.
The first macro clears some space for the column block to be copied, then copies the column block only
The second one extends the column block to a line block, then copies the whole line-block - including any text right or left of the marked column...

cheers,
Rob.


    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.
S.E. Mitchell  
View profile  
 More options Nov 10, 4:39 pm
From: "S.E. Mitchell" <sammy.mitch...@gmail.com>
Date: Tue, 10 Nov 2009 16:39:05 -0500
Local: Tues, Nov 10 2009 4:39 pm
Subject: Re: [TSE] Re: Copying a column block to lines
Yikes!  You are right - the macros behave differently.
Sorry about that!

On Mon, Nov 9, 2009 at 5:02 AM, Heijer, Rob den


    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