Alpha Software Mobile Development Tools:   Alpha Anywhere    |   Alpha TransForm subscribe to our YouTube Channel  Follow Us on LinkedIn  Follow Us on Twitter  Follow Us on Facebook

Announcement

Collapse

The Alpha Software Forum Participation Guidelines

The Alpha Software Forum is a free forum created for Alpha Software Developer Community to ask for help, exchange ideas, and share solutions. Alpha Software strives to create an environment where all members of the community can feel safe to participate. In order to ensure the Alpha Software Forum is a place where all feel welcome, forum participants are expected to behave as follows:
  • Be professional in your conduct
  • Be kind to others
  • Be constructive when giving feedback
  • Be open to new ideas and suggestions
  • Stay on topic


Be sure all comments and threads you post are respectful. Posts that contain any of the following content will be considered a violation of your agreement as a member of the Alpha Software Forum Community and will be moderated:
  • Spam.
  • Vulgar language.
  • Quotes from private conversations without permission, including pricing and other sales related discussions.
  • Personal attacks, insults, or subtle put-downs.
  • Harassment, bullying, threatening, mocking, shaming, or deriding anyone.
  • Sexist, racist, homophobic, transphobic, ableist, or otherwise discriminatory jokes and language.
  • Sexually explicit or violent material, links, or language.
  • Pirated, hacked, or copyright-infringing material.
  • Encouraging of others to engage in the above behaviors.


If a thread or post is found to contain any of the content outlined above, a moderator may choose to take one of the following actions:
  • Remove the Post or Thread - the content is removed from the forum.
  • Place the User in Moderation - all posts and new threads must be approved by a moderator before they are posted.
  • Temporarily Ban the User - user is banned from forum for a period of time.
  • Permanently Ban the User - user is permanently banned from the forum.


Moderators may also rename posts and threads if they are too generic or do not property reflect the content.

Moderators may move threads if they have been posted in the incorrect forum.

Threads/Posts questioning specific moderator decisions or actions (such as "why was a user banned?") are not allowed and will be removed.

The owners of Alpha Software Corporation (Forum Owner) reserve the right to remove, edit, move, or close any thread for any reason; or ban any forum member without notice, reason, or explanation.

Community members are encouraged to click the "Report Post" icon in the lower left of a given post if they feel the post is in violation of the rules. This will alert the Moderators to take a look.

Alpha Software Corporation may amend the guidelines from time to time and may also vary the procedures it sets out where appropriate in a particular case. Your agreement to comply with the guidelines will be deemed agreement to any changes to it.



Bonus TIPS for Successful Posting

Try a Search First
It is highly recommended that a Search be done on your topic before posting, as many questions have been answered in prior posts. As with any search engine, the shorter the search term, the more "hits" will be returned, but the more specific the search term is, the greater the relevance of those "hits". Searching for "table" might well return every message on the board while "tablesum" would greatly restrict the number of messages returned.

When you do post
First, make sure you are posting your question in the correct forum. For example, if you post an issue regarding Desktop applications on the Mobile & Browser Applications board , not only will your question not be seen by the appropriate audience, it may also be removed or relocated.

The more detail you provide about your problem or question, the more likely someone is to understand your request and be able to help. A sample database with a minimum of records (and its support files, zipped together) will make it much easier to diagnose issues with your application. Screen shots of error messages are especially helpful.

When explaining how to reproduce your problem, please be as detailed as possible. Describe every step, click-by-click and keypress-by-keypress. Otherwise when others try to duplicate your problem, they may do something slightly different and end up with different results.

A note about attachments
You may only attach one file to each message. Attachment file size is limited to 2MB. If you need to include several files, you may do so by zipping them into a single archive.

If you forgot to attach your files to your post, please do NOT create a new thread. Instead, reply to your original message and attach the file there.

When attaching screen shots, it is best to attach an image file (.BMP, .JPG, .GIF, .PNG, etc.) or a zip file of several images, as opposed to a Word document containing the screen shots. Because Word documents are prone to viruses, many message board users will not open your Word file, therefore limiting their ability to help you.

Similarly, if you are uploading a zipped archive, you should simply create a .ZIP file and not a self-extracting .EXE as many users will not run your EXE file.
See more
See less

Memo field manipulation

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    Memo field manipulation

    Is there a way to read up to 16 records (max length 250 characters) and concatenate them in such a way as to form a �paragraph� for printing?
    Currently these records are printed one after the other on the the report, whereas they are really all part of one paragraph of instructions. The records that are to be part of the paragraphs are selected from a much larger set of records, and the specific records are selected at the time of printing.
    I am not familiar with the variable �memo� and did not find any extensive write-up on its use and manipulation in my manual. How do I find memo use discussion in the event that this is a possible solution. On the �Board� in one place they were referred to as super-sized character fields

    #2
    Re: Memo field manipulation

    I don't think it can be done with action scripting, but it could be done with a custom script in xbasic.

    There are certain issues - like, how would you know which records to "append" to which record?

    Would any of the records to combine possibly have carriage returns at their end?
    Cole Custom Programming - Terrell, Texas
    972 524 8714
    [email protected]

    ____________________
    "A young man who is not liberal has no heart, but an old man who is not conservative has no mind." GB Shaw

    Comment


      #3
      Re: Memo field manipulation

      Ahhh, Yes, Memo fields, an interesting subject indeed. Memo fields have a lot of possibilities providing they are not used in reports. What you see on a form for data entry is not necessarily what you'll get in a report. So far, because of HTML and RTMF limitations for use in a report, I can only use a regular memo field which makes the narrative portion of A5 very elementary, to say the least.

      I agree with Martin. You first need a way to ID which sentences you will use. My thought is to use a particular word and then use a search string for that word. Next would be the way/where to place it which goes back to the word.

      Perhaps an easier way might be to use "canned paragraphs" which can be placed in a separate table and selected from a dropdown field. I'm doing that now with sentences. You could use "canned sentences" instead of paragraphs and select the sentences you will use by the use of a checkbox. In other words, say you have a dozen sentences, any number of which might form the paragraph. The sentences are in a separate table used as a lookup and when you enter the field which will display the accumulation of sentences, a browse appears in a popup window which shows the sentences and you select what you need by us of a checkbox. Of course, they need to be in the order in which they would appear in a paragraph.

      I have no idea how workable this will be but at least it's a concept that can be explored.

      kenn, will watch this thread with keen interest.
      TYVM :) kenn

      Knowing what you can achieve will not become reality until you imagine and explore.

      Comment


        #4
        Re: Memo field manipulation

        Ken, I use memos and RTF memos in reports - what difficulty do you have using them?
        Cole Custom Programming - Terrell, Texas
        972 524 8714
        [email protected]

        ____________________
        "A young man who is not liberal has no heart, but an old man who is not conservative has no mind." GB Shaw

        Comment


          #5
          Re: Memo field manipulation

          Originally posted by martinwcole View Post
          Ken, I use memos and RTF memos in reports - what difficulty do you have using them?
          My problem in this instance is located here: http://msgboard.alphasoftware.com/al...370#post552370

          If the RTMF is used on the Detail section of the main report, It's OK but in a sub-report, that's another story. Then again, I had to use a regular memo field in another report on the same app because RTMF issues.

          As fantastic as A5 is, it does have its issues. But then, what software doesn't??

          kenn
          TYVM :) kenn

          Knowing what you can achieve will not become reality until you imagine and explore.

          Comment


            #6
            Re: Memo field manipulation

            To answer some questions:
            The sentences are originally imported into a table from a text file, each sentence ending in <CR><LF>. ( I have no idea if the CR/LF is in the field since I ALLTRIM when I occasionally add an additional piece of related information by way of a calculated field.) As each sentence is imported it is assigned an index number that has a code imbedded in the eight character field.
            When the sentences are needed, they are �selected� by knowing the code in the index and then copied into a table with the code and the sentence. Currently, the coded index is subdivided into three parts so that each part is �related� to a table of identifications that are printed along with the sentences. In a paragraph form, only the lowest classification would accompany the sentence into the paragraph. The other two parts of the codes are nomenclature and are printed in their own fields to the left of the (hopefully) paragraph.
            Currently, this table of sentences is just printed line by line. The sentence field is in a Rich Text field to allow for expansion.
            Ken, I believe I�m now doing what you suggest, only different on assembling, but subject to the limit of 255 characters in the sentences (plus the related information which extends my limit of characters).
            Where do I read up on memo fields and RTMF?

            Comment


              #7
              Re: Memo field manipulation

              Sounds like "boilerplate"

              you could let a user select by either adding a field to the table containing the text 255 character field, like "selected, L" or marking the records they want to put together, and then having a special table for your report containing a memo field (think variable length field), that you would zap, and one by one add the text from the records to the memo field, and then edit it (if necessary), and add any crlf's needed, etc., and print it.

              are you at all familiar with doing things with xbasic?
              Cole Custom Programming - Terrell, Texas
              972 524 8714
              [email protected]

              ____________________
              "A young man who is not liberal has no heart, but an old man who is not conservative has no mind." GB Shaw

              Comment


                #8
                Re: Memo field manipulation

                Martin: I already have "you could let a user select by either adding a field to the table containing the text 255 character field, like "selected, L" or marking the records they want to put together, and then having a special table for your report containing." What I do not have is teh xbasic for use of the memo fields. I have been using xbasic in minor ways in apps I've worked on.
                So, how does one use xbasic to "stuff" the memo field with multiple "fields" of information? How does one represent that field on the report?

                Comment


                  #9
                  Re: Memo field manipulation

                  create a table that will be repopulated every time you print the report

                  lets call if c_report
                  give it one character field, and 1 memo field named "reporttext"
                  say the name of the table containg the records is "mytable," and say the name of the field containing the text you want to glue together is "myfield" -c,255

                  You didn't mention how you are "selecting" the records, but here is something you could try

                  Code:
                  t1=table.open("c_report")
                  t1.zap(.t.)
                  t1.close()
                  t1=table.open("c_report")
                  t2=table.open("mytable")
                  query.filter=""
                  query.order=""
                  query.options=""
                  query.filter="marked()" 'one possibility
                  idx=t2.query_create()
                  t2.fetch_first()
                  t1.enter_begin()
                  while .not. t2.fetch_eof()
                       temp=alltrim(t2.myfield)
                       t1.reporttext=t1.reporttext + temp + " " 'add a space between sentences
                       t2.fetch_next()
                  end while
                  t1.enter_end()
                  t1.close()
                  idx.drop()
                  t2.close()
                  one thing missing here is the order you want for selecting the text records. you could add a field to the table called "orderby" -n,3 and let the user number the order of the records, unless recor number order is satisfactory.

                  try this and see how well it works.

                  you may want other fields in the table, like client name, etc to use in the report, but hopefully this will give you an idea. you will end up with one record with a memo containing all the records glued together
                  Cole Custom Programming - Terrell, Texas
                  972 524 8714
                  [email protected]

                  ____________________
                  "A young man who is not liberal has no heart, but an old man who is not conservative has no mind." GB Shaw

                  Comment

                  Working...
                  X