I have 8 table in one document and has been point cursor to one of the table
by bookmark.

How do i determine the table index of current cursor position ?

RE: VBA in VFP, how to determine the selected table index by Leemi

Leemi
Wed May 11 13:53:34 CDT 2005

Hi tsair:

Have you looked at the CDX(), SYS(14), and TAG() functions?

I hope this helps.

This posting is provided "AS IS" with no warranties, and confers no rights.

Sincerely,
Microsoft FoxPro Technical Support
Lee Mitchell

*-- VFP9 HAS ARRIVED!! --*
Read about all the new features of VFP9 here:
http://msdn.microsoft.com/vfoxpro/

*--Purchase VFP 9.0 here:
http://www.microsoft.com/PRODUCTS/info/product.aspx?view=22&pcid=54787e64-52
69-4500-8bf2-3f06689f4ab3&type=ovr

Keep an eye on the product lifecycle for Visual FoxPro here:
http://support.microsoft.com/default.aspx?id=fh;[ln];lifeprodv
- VFP5 Mainstream Support retired June 30th, 2003
- VFP6 Mainstream Support retired Sept. 30th, 2003

>I have 8 table in one document and has been point cursor to one of the
table
>by bookmark.

>How do i determine the table index of current cursor position ?


Re: VBA in VFP, how to determine the selected table index by Cindy

Cindy
Wed May 11 16:40:57 CDT 2005

Hi Tsair,

I'm confused. Are you looking for the name/number of a cell in an Excel
spreadsheet? You can use oExcel.ActiveCell.Column (or Row) and get the
numeric position of the cell.

If this isn't what you're after, try posting a little of the code you are
using and we can see what you're doing.


--
Cindy Winegarden MCSD, Microsoft Visual Foxpro MVP
cindy_winegarden@msn.com www.cindywinegarden.com
Blog: http://spaces.msn.com/members/cindywinegarden


"tsair" <tsair@myjaring.net> wrote in message
news:uwVBksgVFHA.3760@TK2MSFTNGP15.phx.gbl...
>I have 8 table in one document and has been point cursor to one of the
>table by bookmark.
>
> How do i determine the table index of current cursor position ?
>
>



Re: VBA in VFP, how to determine the selected table index by tsair

tsair
Thu May 12 21:04:58 CDT 2005

Thank for reply Lee Mitchell and Cindy Winegarden

I am working in Microsoft Word tables.
I have 8 tables in Word. I use word bookmarks point to the table and would
like to manipulate the pointed table. So i need to get a table object from
my current selected table.

Any idea ?

Thank you



Re: VBA in VFP, how to determine the selected table index by Bernhard

Bernhard
Fri May 13 05:56:19 CDT 2005

Hi tsair

> I am working in Microsoft Word tables.
> I have 8 tables in Word. I use word bookmarks point to the table and would
> like to manipulate the pointed table. So i need to get a table object from
> my current selected table.
>
> Any idea ?

Form VBA you do it like this as long as your table is the only or first on in
the range of Your_Bookmark:
ActiveDocument.Bookmarks("Your_Bookmark").Range.Tables(1).Cell(1,1).Range.Text="some_text"

How to get access to your word document from foxpro you can read in this
newsgroup quite often.

Regards
Bernhard Sander

Re: VBA in VFP, how to determine the selected table index by tsair

tsair
Sun May 15 21:06:13 CDT 2005

Thank you, I got it


"Bernhard Sander" <fuchs@individsoft.de> wrote in message
news:um2Tlp6VFHA.2960@TK2MSFTNGP15.phx.gbl...
> Hi tsair
>
>> I am working in Microsoft Word tables.
>> I have 8 tables in Word. I use word bookmarks point to the table and
>> would like to manipulate the pointed table. So i need to get a table
>> object from my current selected table.
>>
>> Any idea ?
>
> Form VBA you do it like this as long as your table is the only or first on
> in the range of Your_Bookmark:
> ActiveDocument.Bookmarks("Your_Bookmark").Range.Tables(1).Cell(1,1).Range.Text="some_text"
>
> How to get access to your word document from foxpro you can read in this
> newsgroup quite often.
>
> Regards
> Bernhard Sander