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

Dialog Form: Cannot Paste Data

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

    Dialog Form: Cannot Paste Data

    Hi:

    The president of my old computer club just advised me reference a problem he is having with an old application I wrote a couple of years ago. This is a unique little problem I never noticed before, but I'm confident someone on this board will provide a quick answer.

    I created a simple form based upon a One to One set so the user can enter data into MEMO fields. If one opens the form by itself, you can either type data and/or use Ctrl-V to PASTE data into the memo field.

    However, if he opens that same form via a button on the Membership form in "DIALOG" mode, the use can manually type new data into the memo field but he/she cannot PASTE data via Ctrl-V. Isn't that somewhat bizarre?

    Is there something about the built in properties of a dialog form that will allow manual data entry but will NOT allow the user to PASTE data?

    Thanks,
    Robert

    #2
    RE: Dialog Form: Cannot Paste Data

    Robert, you might be correct the Ctr-V doesn�t work in a dialog form but if the user would use the right click of the mouse they would be able to use the past option. It seems that using the Ctr key is one of the many limitations in a dialog form, in the other hand there are many Advantages to the dialog form

    Daniel Weiss
    Daniel Weiss
    EZ Link Software

    Comment


      #3
      RE: Dialog Form: Cannot Paste Data

      Robert, will Ctrl-V paste the text into the memo field after the user begins an edit to the current memo? I'm wondering if the memo field has focus, and is in change mode, when the user is trying to begin the paste?

      -- tom

      Comment


        #4
        RE: Dialog Form: Cannot Paste Data

        Hi Phorum,

        This question does not help Robert, but it is somewhat related. From
        time to time I see a negative attitude toward using memo fields. This
        is worrisome to me since I have 3 major apps that employ a memo field.
        None of them have extensive text but none the less are important. Can
        anyone explain the downside of a memo field to a novice such as me.
        Given the fact that they might be extremely counterproductive to the
        performance of the app, is there a way that I can construct an
        operation that will change them to a character field?

        As always .... many thanks for your time,
        efs

        Comment


          #5
          RE: Dialog Form: Cannot Paste Data

          Tom, I think the Ctr-V doesn�t work in any way in a memo field if the form was opened as a dialog but it works in any other fields in a dialog form.

          Daniel Weiss
          Daniel Weiss
          EZ Link Software

          Comment


            #6
            RE: Dialog Form: Cannot Paste Data

            Hello Tom:

            You can type new data into the memo field, you can edit and/or delete current information in the memo field, but you cannot paste new data. In other words, the form works as designed with that lone exception.

            Robert

            Comment


              #7
              RE: Dialog Form: Cannot Paste Data

              Hello Edward:

              I cannot speak for anyone else, but I've personally had problems wherein the memo file [FPT] grows exponentially in size. And I mean it becomes huge, far larger than one would expect in relation to the amount of data being stored.

              More importantly, if you try to import an Alpha Five data file as DBASE IV into Access 2000, you cannot do such until you delete the memo field.

              That's why when I decide that I need Memo fields in an application, they are not part of my main data tables any more. I instead use Memo fields as the child table in a One to One link [SET]. That's what I did in this case, when the user is on a Member's record, he/she clicks on a button that opens the memo field for that particular member, the form is linked by the Member_ID number. I've found this type of set up eliminates the two types of problems I described above.

              In sum, I keep all of the member data in the main data table [dbf file] while all pertinent data that belongs in the member's memo field [fpt], is kept in a totally separate file linked by Member_ID.

              Comment


                #8
                RE: Dialog Form: Cannot Paste Data

                Try this, add a separate table that holds the memo filed and attached it in a set to the parent table, on your entry set the memo field to read only, put a button on that form that opens a form in dialog mode that contains the memo field.
                Since I used this method I have no problems with memos at all
                The credit for this goes to Dr Peter Wayne, I followed his guidelines

                Here is an example script for the button
                dim mode as c
                mode = parentform.mode_get()
                if mode = "ENTER" .or. mode = "CHANGE"
                parentform.commit()
                if parentform.mode_get()"VIEW"
                ui_msg_box("Unable to save your changes","Please correct and save,
                or discard your changes", UI_STOP_SYMBOL)
                end if
                end if

                inv = inv_no.value
                if inv =""
                end
                end if

                tmemo = table.open("imemo.dbf")
                idx = tmemo.index_primary_put("invno")
                rec = tmemo.fetch_find(inv)
                if rec > 0
                goto openform
                else
                tmemo.enter_begin()
                tmemo.inv_no = inv
                tmemo.enter_end(.t.)
                end if
                tmemo.close()

                openform:

                DIM layout_ptr as P
                f = :Form.load("ENTER_IMEMO","dialog")

                f.index_set("invno")
                f.find(inv)
                f.activate()
                f.show()

                last_button = f.last_pressed()

                if last_button = "FINISH"
                f.close()
                end if
                inv_no.Activate()
                parentform.Resynch()
                end

                Daniel Weiss
                Daniel Weiss
                EZ Link Software

                Comment


                  #9
                  RE: Dialog Form: Cannot Paste Data

                  Hi Daniel:

                  I'm sorry, I inadvertently attached my reponse to your last message when it should have been attached to Edward's response. I think he was the guy who asked why some people are hesitant about using memo fields and I was merely trying to give him one person's experience plus a solution that at least works for me.

                  Thanks for your detailed response but I already do something very similar. As described in my previous message, I keep the member's memo field in a totally separate table that is part of a One to One set that is NOT in my current set, but is linked via the Member_ID field.

                  So far Daniel, I haven't found a specific need to include the aforementioned memo set as part of the same set where membership data is stored. I always prefer smaller sets to larger ones that slow down data entry.

                  Thanks,
                  Robert

                  Comment


                    #10
                    RE: Dialog Form: Cannot Paste Data

                    Ed,

                    There are two schools on Memos: With'em or agin'em. Some like me, have had no problems in ver4 and up. Others like Robert suggest the cautionary approach - linked "memo tables". Not a bad idea. Recently I saw a memo file flate to about a zillion GBs. But that was because I had removed the fpt file from the associated table (I was running a test). Really no problems in my humble experience - but, others have expressed some.

                    BUT REMEMBER! In any case, Alpha uses memo fields internally to store your reports, forms, scripts - whatever. That's what the ddm and sem files are! You really can't get away from them, even if you want to.

                    Peter
                    Peter
                    AlphaBase Solutions, LLC

                    [email protected]
                    https://www.alphabasesolutions.com


                    Comment

                    Working...
                    X