Jump to content
Fred Rogers

Numbering Paragraphs

Recommended Posts

I am trying to add a feature to number the paragraphs in a text field. 

Has anyone dose this before?

 

Thanks!

Share this post


Link to post
Share on other sites

Numbering paragraphs is not very difficult - see: 
http://www.briandunning.com/cf/941

The real problem is renumbering the paragraphs when the text is edited. You could use a calculation field to display the numbered paragraphs, and edit the original text if and when necessary. Or you could get more ambitious and have the custom function remove the existing numbering and number the paragraphs anew - see:
http://www.briandunning.com/cf/677

Consider also the option of keeping the paragraphs as separate records in a related table. Then numbering becomes trivial - and perhaps other things may become simpler too.

 

Share this post


Link to post
Share on other sites

Thank you! You are absolutely correct, the issue will be when the user wants to add a paragraph in the middle of the document. 

I think I will play around with an interface to break every paragraph in to a separate record. 

 

-=fred=-

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now


  • Who Viewed the Topic

    1 member has viewed this topic:
    Lee Smith 
×

Important Information

By using this site, you agree to our Terms of Use.