Hi Jessie!
Basically, as I understand it, you want to run the menu command New Row (Ctrl+E) a number of times.
Try this:
Dim i, iter as Integer
For i=1 to iter 'here number variable from user input
Run Menu Command M_EDIT_NEW_ROW
Next
But you must first make sure a table is open and displayed in a browser which is the front window, and of course that the table is editable.
Else the menu command does nothing.
Hälsning / Best regards Mats.E
________________________
FB Engineering AB
Södra Förstadsgatan 26
211 43 Malmö
Tel: 040-660 25 50
Mobil: 0705-27 60 27
Fax: 040-660 25 99
[EMAIL PROTECTED]
www.fbe.se
"Jessie O. Floren"
<[EMAIL PROTECTED]>
Sänt av: [EMAIL PROTECTED] 2005-11-18 08:10 |
|
Thanks for the reply Paul, I would like to amend my query. I already have
an existing table with 3 columns, what i would like to happen is to add an a
multiple blank rows based on a user input. Thanks
-----Original Message-----
From: Paul Smith [mailto:[EMAIL PROTECTED]
Sent: Friday, November 18, 2005 2:52 PM
To: 'Jessie O. Floren'
Subject: RE: [MI-L] Adding Multiple Rows Code for MapBasic
Hi Jessie,
Off the top of my head,
I would get the number of columns from a dialog,
then use this figure as a max number of columns variable,
Firstly use the Create table statement to create a table with 1 Column,
then Use a Loop Statement and use the Alter Table Statement to add a column
per iteration of the loop until the max number of columns variable is
reached
Sorry I don't have a code example.
I hope this helps.
Paul
-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Jessie O.
Floren
Sent: Friday, 18 November 2005 4:27 PM
To: mapinfo-l@lists.directionsmag.com
Subject: [MI-L] Adding Multiple Rows Code for MapBasic
Hi all,
Am asking assistance on how to add multiple rows using mapbasic where the
no. of rows to be added is inputted from a user.
Thanks for any help.
Jess
---
Call the US and Canada FOR FREE! Go to www.mozcom.com for details
_______________________________________________
MapInfo-L mailing list
MapInfo-L@lists.directionsmag.com
http://www.directionsmag.com/mailman/listinfo/mapinfo-l
_______________________________________________
MapInfo-L mailing list
MapInfo-L@lists.directionsmag.com
http://www.directionsmag.com/mailman/listinfo/mapinfo-l
_______________________________________________ MapInfo-L mailing list MapInfo-L@lists.directionsmag.com http://www.directionsmag.com/mailman/listinfo/mapinfo-l