Jump to content

replace text in a text frame - onRecordStart


ilona

Recommended Posts

Hello!

Does anyone know if there is an FP rule that replaces text in a text frame?

Here is what I'm trying to accomplish:

 

op1=Field("xyz");

 

if (op1!="")

{

FindTextFrame("abc").value=op1;

}

 

I was hoping that the above would replace the "value"(the actual text) in the frame with whatever is in op1, but it doesn't... I wonder what the "value" property of a text frame is then...

I can't use a simple return statement. This rule is in onRecordStart, and it's more complex than the above, but it's essentially what I need.

Any ideas?

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...