| Author |
Message |
Terry W. Dotson
Guest
|
Posted:
Fri Apr 08, 2005 11:12 pm Post subject:
Getting the FieldCode String for a Table Cell |
|
|
I understand that I can set the FieldCode for a Table cell by setting
its text property to a field expression. However I want to be able to
get this string back later for possible modification. The only thing I
could find was GetFieldId(Row&, Col&) which returns a long. How would I
go about getting the (apparent) Mtext object it refers to?
Thanks in advance.
Terry
|
|
| Back to top |
|
 |
Joe Sutphin
Guest
|
Posted:
Sat Apr 09, 2005 12:31 am Post subject:
Re: Getting the FieldCode String for a Table Cell |
|
|
Public Sub GetTextInTable()
Dim oTable As AcadTable
Dim Point As Variant
ThisDrawing.Utility.GetEntity oTable, Point, "Select a table"
With oTable
'this displays the header row,column
Debug.Print .GetText(0, 0)
End With
End Sub
Joe
--
"Terry W. Dotson" <nospam@invalid.com> wrote in message
news:4256d78c$1_1@newsprd01...
| Quote: | I understand that I can set the FieldCode for a Table cell by setting
its text property to a field expression. However I want to be able to
get this string back later for possible modification. The only thing I
could find was GetFieldId(Row&, Col&) which returns a long. How would I
go about getting the (apparent) Mtext object it refers to?
Thanks in advance.
Terry |
|
|
| Back to top |
|
 |
Terry W. Dotson
Guest
|
Posted:
Sat Apr 09, 2005 1:55 am Post subject:
Re: Getting the FieldCode String for a Table Cell |
|
|
Joe Sutphin wrote:
| Quote: | Debug.Print .GetText(0, 0)
|
Fully aware of .GetText, that returns the string that the user sees.
I'm after the FieldCode, the field expression, such as:
%<\AcExpr (297494.78935545) \f "%lu2%pr2%th44">%
Terry
|
|
| Back to top |
|
 |
Paul Richardson
Guest
|
Posted:
Sat Apr 09, 2005 2:44 am Post subject:
Re: Getting the FieldCode String for a Table Cell |
|
|
someString = MyTable.GetText(1, 1)
Maybe?
"Terry W. Dotson" <nospam@invalid.com> wrote in message
news:4256d78c$1_1@newsprd01...
| Quote: | I understand that I can set the FieldCode for a Table cell by setting
its text property to a field expression. However I want to be able to
get this string back later for possible modification. The only thing I
could find was GetFieldId(Row&, Col&) which returns a long. How would I
go about getting the (apparent) Mtext object it refers to?
Thanks in advance.
Terry |
|
|
| Back to top |
|
 |
|
|
|
|