Tom
 
To copy, set up a procedure containing the command
RUN MENU COMMAND M_EDIT_COPY or 203
 
To paste do likewise with
RUN MENU COMMAND M_EDIT_PASTE or 204
 
Associate these procedures with your buttons and that should be it.
 
For other actions that work like this look at the MENU.DEF file.
 
Ian
 
 

>>> "Tom Halbrook" <[EMAIL PROTECTED]> 29/08/2006 14:00:37 >>>

I am still learning Map Basic and trying to write a program to copy a record in a row in one table and paste it into a row in another table.

 

Here’s my scenario. Each week I update changes in a telephone customer database. I get a file from my Service Center that has all the moves, disconnects, and adds that have occurred in the previous week. I convert the file into a MapInfo table and update my MapInfo Customer Locator program. 

 

Example: On a number change I presently select the telephone in the new table, hit ctrl C, and then select the telephone number field in the old table and hit ctrl V.

(A lot of repetitive key strokes)

 

The procedure I am striving for would be; 1. Select the record in the first table, click on a pushbutton (to copy the selection) Then 2. Select the record in the second table, click on another pushbutton (to paste the copied record into the second table)

 

I can build the program to create the button pads etc. But I can’t seem to find any MapBasic command that is equivalent to “Copy & Paste”

Can anyone give me the Map Basic Commands or Statements that would be equivalent to “Copy and Paste” action in MapInfo?

 

Thanks, Tom Halbrook

_______________________________________________
MapInfo-L mailing list
[email protected]
http://www.directionsmag.com/mailman/listinfo/mapinfo-l

Reply via email to