×
INTELLIGENT WORK FORUMS
FOR COMPUTER PROFESSIONALS

Contact US

Log In

Come Join Us!

Are you a
Computer / IT professional?
Join Tek-Tips Forums!
  • Talk With Other Members
  • Be Notified Of Responses
    To Your Posts
  • Keyword Search
  • One-Click Access To Your
    Favorite Forums
  • Automated Signatures
    On Your Posts
  • Best Of All, It's Free!

*Tek-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail.

Posting Guidelines

Promoting, selling, recruiting, coursework and thesis posting is forbidden.

Students Click Here

Edit Standard Text using Connector

Edit Standard Text using Connector

Edit Standard Text using Connector

(OP)
Has anyone appended new comments to an Ellipse Entity using a connector. I have no problems creating new comments using the STDTEXT.Create method but have not been able to figure out how to append new comments. Using Ellipse 5.2.3.7 WK3.

I would appreciate any help.

Tim

RE: Edit Standard Text using Connector

I managed to get it working. I was trying to use text to store date-related entries with most recent first. So I did ...

STDTEXT.GetHeading (to see if any already existed)
STDTEXT.GetText (to read all existing text and temporaily hold it)
STDTEXT.SetText (to load new lines, and reload temporarily held existing lines)

The tricky bit is that the text (attribute 'TextLine') is one big string which is comprised of 20 lines, each 160 chars long, so you need to manipulate appropriately. ie. Lots of the text in Ellipse is 60 chars long (so the lines are padded with 100+ blanks). Some other text in Ellipse is 80 chars long. You can check the allowable length of text per text type and setting are held on the "XC" type on MSF010.

From memory, I recall that the STDTEXT.SetText overwrites any text which may already exist. I think there is another method STDTEXT.Append which can probably be used to tack new text on the end of existing text.
 

Red Flag This Post

Please let us know here why this post is inappropriate. Reasons such as off-topic, duplicates, flames, illegal, vulgar, or students posting their homework.

Red Flag Submitted

Thank you for helping keep Tek-Tips Forums free from inappropriate posts.
The Tek-Tips staff will check this out and take appropriate action.

Reply To This Thread

Posting in the Tek-Tips forums is a member-only feature.

Click Here to join Tek-Tips and talk with other members! Already a Member? Login

Close Box

Join Tek-Tips® Today!

Join your peers on the Internet's largest technical computer professional community.
It's easy to join and it's free.

Here's Why Members Love Tek-Tips Forums:

Register now while it's still free!

Already a member? Close this window and log in.

Join Us             Close