Cut and Paste & Clearing a table

Discussion in 'Questions (Windows Mobile)' started by bish0p, Aug 31, 2008.

  1. bish0p

    bish0p Member Licensed User

    I have been diging around and for the most part the forums have been great for answering all of the questions I have about Basic4PPC. I must say the more I use it the more I love it.

    I do however have a couple of questions.

    1) how do I activate the system Cut/Paste Menu in my App
    2) I am using a Table to load some XML I am parsing (a GPX file) then loading it into a SQL table. Is there a quick way to clear out the table, 1000's of rows of data, so that the user can load another?

    Thanks in Advance.
  2. Erel

    Erel Administrator Staff Member Licensed User

  3. bish0p

    bish0p Member Licensed User

    Thanks for the quick reply I have found those, I was wondering if the little menu that pops up in other apps is part of the mobile windows API or something they added?

  4. Erel

    Erel Administrator Staff Member Licensed User

    I think you are referring to a Context menu. This menu appears when you tap and hold over a control (same as right click).
    See the TextEditor example for such implementation.
  5. Cableguy

    Cableguy Expert Licensed User

    You can also see the context menu in action in my INI editor, available in the "share your creations" sub-forum...
  6. bish0p

    bish0p Member Licensed User

    Thanks Erel,

    Worked like a charm, is there a away to overload the code so that I do not have to create those three functions for every text field I want a menu for?
  7. Erel

    Erel Administrator Staff Member Licensed User

    This kind of modularity is exactly suited to the new modules feature.
    You will need to wait to the release of version 6.50 or if you like you I can send you a link to the beta version.

    It is very simple to use it:
    - Add the attached module to your project.
    - Add references to Formlib and Hardware / HardwareDesktop (this step will not be required in the stable version).
    In your code you should add something like:
    Sub Globals

    End Sub

    Sub App_Start
    End Sub

    Attached Files:

  8. bish0p

    bish0p Member Licensed User

    See it just keeps getting better, this is the exact reason I like this platform more and more as I use it.

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice