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

Expressions for extracting character strings

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

    Expressions for extracting character strings

    Does anyone use or have some expressions which would extract Address & Telephone Info from a memo field and place it in an address & telephone field in the same database? I do have the Jeff Benson book & also the "FE" evaluator & it's a little fuzzy to me and doesn't specifically address my situation. I also have A5v4 with the latest patches etc so I could use this if it would be easier to work with. I'd be really grateful for any help with this!
    Thanks,
    Hal Smith

    #2
    RE: Expressions for extracting character strings

    This may give you a jump start. I used A4V6.2

    Record Layout:

    NAME C 20
    ADDRESS C 20
    CSZ C 10
    NOTES M 10

    Memo field contained:

    GARY SMITH
    41 HAMPSHIRE WAY
    SCHENECTADY, NY 12309

    Using the default form, I played a script that contained the following code:

    {*Change mode*}
    C
    {*Copy Name*}
    {ENTER:3}{ALTM}{F4}C{END}{ENTER}{F10}{ENTER}{SPACE}{BKSP}{ALTF6}
    {*Copy Address*}
    {ENTER:3}{ALTM}{DN}{F4}C{END}{ENTER}{F10}{ENTER:2}{SPACE}{BKSP}{ALTF6}
    {*Copy CSZ*}
    {ENTER:2}{ALTM}{DN:2}{F4}C{END}{ENTER}{F10}{ENTER:3}{SPACE}{BKSP}{ALTF6}
    {*Save record*}
    {F10}

    Comment


      #3
      RE: Expressions for extracting character strings

      Hi Gary:
      Thanks for the speedy reply! By the way I grew up in Westmere, NY Zip 12203. Went to Siena College and now living in Phoenix, AZ. I have a bunch of relatives still there. We could be related! I like the idea of using a script to accomplish this task. I usually work with Global Field updating & Expressions. I'm working with about 2500 records and my data in the memo field looks like this:

      1000 North Alma School Number 5 City: Chandler State: AZ Zip: 85224-4354 Phone: (480)961-5800 Fax: (480)961-5737 Membership Status: Fellow

      Is it possible to have this script repeat on all 2500 records without having to manually invoke it for each record?

      Thanks again for your help!
      Hal Smith

      Comment


        #4
        RE: Expressions for extracting character strings

        Hi Hal,

        If you add the code below to the code in Gary�s script, you should be able to change all records with the script.


        (Add this before Gary�s code)

        V
        {CTLHOME}
        {SET %rec_num, RECCOUNT()}
        {:A}





        (Gary�s code)

        {*Change mode*}
        C
        {*Copy Name*}
        {ENTER:3}{ALTM}{F4}C{END}{ENTER}{F10}{ENTER}{SPACE}{BKSP}{ALTF6}
        {*Copy Address*}
        {ENTER:3}{ALTM}{DN}{F4}C{END}{ENTER}{F10}{ENTER:2}{SPACE}{BKSP}{ALTF6}
        {*Copy CSZ*}
        {ENTER:2}{ALTM}{DN:2}{F4}C{END}{ENTER}{F10}{ENTER:3}{SPACE}{BKSP}{ALTF6}
        {*Save record*}
        {F10}



        (Add this after Gary�s code)

        {DN}
        {LOOP :A, %rec_num}


        Good Luck,

        Keith (Cornwall UK)

        Comment


          #5
          RE: Expressions for extracting character strings

          Hal,
          I graduated from Siena in '76 and again in '84.
          Live 2 miles from Albany Int'l Airport.

          The contents of your memo field present a challenge. I'll have to give it some more thought.

          Comment


            #6
            RE: Expressions for extracting character strings

            Play the READMEMO script. Hope this helps.

            Comment


              #7
              RE: Expressions for extracting character strings

              Hi Keith:
              Thanks for this great tip! I really appreciate your input. This will save me many thousands of keystrokes & many hours of work cutting and pasting the data into the appropriate fields. My data doesn't lend itself perfectly to Gary's script insofar as each field's data is not on a separate line in the memo field. Fortunately each record does contain some repeating field identifiers preceding the actual data that may allow for extraction into separate fields. The first part of each memo field, up to the word "City:" contains the street address. After the "City:" of course is the "City" data. Then this is followed by "State:" , "Zip:" , "Phone:" , "Fax:" & "Membership Status:" all followed by the respective data. I'll have to defer to someone with a lot more knowledge of Functions & Expressions or scripting than I have. Again, many thanks for your help,
              Best Regards,
              Hal Smith

              Comment


                #8
                RE: Expressions for extracting character strings

                Hi Gary!
                I just received your READMEMO script message! I'll work with it & let you know how it goes! I am in awe of you and this forum. I have used Alpha4 & then Alpha 5 for several years but not this message board. I never realized there was this quality of help available. I can't thank you enough! This will save me many hours of cutting and pasting!

                I graduated from Siena in 1973 BS/Marketing! Charley Haynes, Doc Buff and many others I remember well! I actually started in 1963 after graduating from Cardinal McCloskey in 1962 & serving time in the Army Reserve for training at Fort Dix, NJ etc. Two years full time & 8 years night school they finally decided I had had enough. :-)

                I have a large number of relatives still in the area. The closest "Smith" to you would be my cousin Paul Smith! He went to Colonie Central & played basketball! I've heard he is a local basketball ref. He's a few years younger than I am.

                Thanks again for all your help, Gary! If I can return the favor, let me know!

                Best Regards,
                Hal Smith


                Comment

                Working...
                X