How to move string index on TextBox?

When calling focus on TextBox, key input cursor is located at first index on string.
TextBox.Focus(FocusState.Programmatic);
i want to move the key input cursor at last index on string.

That link is for WPF, not  for Windows Store apps. While the basic concepts are the same pointing to WPF solutions can be confusing in the long run.
Estmob, you can set the selected range with
TextBox.Select(start, length). New text entered will replace the selection so this acts as the input cursor. With a zero length the selection and the cursor are essentially the same.
To place the cursor at the end set start to the TextBox.Text's length and length to 0:
myTextBox.Select(myTextBox.Text.Length,0);

Similar Messages

  • How to move only subset of data from one database to another?

    Both source & destination are Oracle11g databases.
    The requirement details are as below,
    1) The database contains static as well as transactional data for telecom domain.
    2) We have to move region-wise data from one database to another.
    3) There are around 10 regions.
    4) The region wise data extraction from source db is based on around 40 to 50 tables. Rest of the tables contains
    static data & it will not change.
    5) The volume is around 1 million subscribers per region.
    6) The migration is required because
    a) The client is upgrading its base product which uses this database
    b) There is a change in structure of static tables
    c) Hardware upgrade
    d) The client want to start with single region on new database & rest of the regions will be operated from old
    database.
    7) Keep execution time to very minimum.
    I am thinking to have solution as below,
    1) Create destination database with upgraded db structure (as mentioned in 6b)
    2) Create database links to access source db in destination db.
    3) Write SQL queries to fetch data from all the respective tables for a specific region
    4) Write separate PL/SQL blocks for each table to fetch data from source db & insert into respective table in
    destination db
    a) Use FOR ALL & bulk collect to improve the performance
    b) Divide table data into multiple chunks & execute parallel batches (around 10) to insert the data
    5) Validate pre & post counts to verify the success of migration
    Is there any other better way?
    Regards,
    Sandeep

    How to move only subset of data from a partiular table by using transportable tablespace?
    E.g. SUB table using SMP_SUB tablespace contains subscriber data in source database.
    The indexes defined on SUB table are under SMP_IDX_SUB tablespace
    The subscribers data can be categorized by different regions, say region_id column. Then how to move data & indexes of SUB table from source db to destination db?
    any specific example would be helpful.

  • Move an index

    Hi,
    Do you know how to move an index from a tablespace in another tablespace?
    Thank you,
    Mihaela

    Whom are you asking?
    Me?
    alter index <indexname> rebuild tablespace <TBSNAME>
    Oh sorry
    I havent refreshed
    Message was edited by:
    Maran Viswarayar

  • How to move index

    Hi;
    The senerio is i have one table in schema A, i want to move this table to schema B (yesterday i had this question answer). Now i move my table (in schema A) to schema B... Question is:
    1. If i move table to schema B, should i move to table's index to schema B too? If answer NO, it can be couse any problem
    2. If i move table to schema B how i can move its index too?
    3. If one index created in schema A how i can move it schema B? Same way like questin 2?
    Thanks a lot
    Edited by: aaaaa on Oct 7, 2009 12:06 AM

    aaaaa wrote:
    Thanks for quick replay;
    In my case table is schema A and this tables's index is created Schema B, Should i move index to schema A? Is it neccessary?
    Yes because 2 tables in 2 differents schemas are independant objects.
    Index are only created automatically by Oracle at table creation if index are used by table constraints (primary key or unique).
    The best way is index and table in same schema?Yes.
    If i move index other schema should i give any grant?
    No if the index is created in the table schema.
    Thanks a lot

  • BigString to Big String - how do I detect index of upper case?

    bigString to Big String - how do I detect index of upper
    case?
    Is there a way to detect, insert space and replace the upper
    case letters in a string?

    Something like this?
    <CFOUTPUT>#REReplace("bigString", "[A-Z]"," "&
    Mid("bigString", REfind("[A-Z]", "bigString"),
    1))#</CFOUTPUT>
    This will at least give you a break at the first upper case
    letter. You can then replace the first character in the result with
    an upper case as well, which I didn't do, since I figured that you
    knew how to do that.
    Phil

  • How to move a button in gird layout(16-block game)?

    I am designing a 16-block puzzel game and don't have any idea about how to move buttons in a grid on mouse click.

    This is the code now me help me to solve this problem.
    import java.awt.*;
    import javax.swing.*;
    import java.awt.event.*;
    import java.util.*;
    public class Puzzel extends JFrame {
              JButton[] arr = new JButton[15];
              String[] add = {"1.jpg","2.jpg","3.jpg","4.jpg","5.jpg","6.jpg","7.jpg","8.jpg","9.jpg","10.jpg","11.jpg","12.jpg","13.jpg","14.jpg","15.jpg"};
              int X;
              int Y;
              public Puzzel(){
                        Image image;
                        Toolkit toolkit= Toolkit.getDefaultToolkit();
                        image=toolkit.getImage("icon.jpg");
                        ImageIcon icon=new ImageIcon("icon.jpg");
                        setIconImage(image);
                        setTitle("Puzzal");
                        JMenuItem pic = new JMenuItem("Solved");
                        pic.setMnemonic('a');
                        JPanel jp = new JPanel(new GridLayout(4,4));
                        ArrayList list = new ArrayList();
    MouseListenerClass M1 = new MouseListenerClass();
                           for(int x = 0; x < arr.length; x++)
                               arr[x] = new JButton(add[x], new ImageIcon(add[x]));
                               getContentPane().add(arr[x]);
                              list.add(arr[x]);
                        Collections.shuffle(list);
                        for(int x = 0; x < list.size(); x++)
                              jp.add((JButton)list.get(x));
                            getContentPane().add(jp);
                                 pack();
                                 setSize(427,427);
                                        setResizable(false);
                        /*for(int x=0;x<arr.length;x++){
                             arr[x].addSelectionListener(new SelectionAdapter());
                   public void widgetSelected(SelectionEvent event){System.out.println("IN");
                        if (event.getSource().getClass().equals(Button.class)){
                             Button button = (Button) event.getSource();
                             if (button.getText().equals("") )
                                  Toolkit.getDefaultToolkit().beep();
                                  else
                                       this.swapPlaces(((Integer) button.getData()).intValue());
                   public void widgetDefaultSelected(SelectionEvent event){
                                  System.out.println("Widget was defaultselected: " + event.getSource());
               for(int x = 0; x < arr.length; x++)
              arr[x].addMouseMotionListener(M1);
              private class MouseListenerClass extends MouseMotionAdapter
                   public void mouseDragged(MouseEvent E)
                   X=E.getX();
                   Y=E.getY();
                   for(int x = 0; x < arr.length; x++)
                        arr[x].setBounds(X,Y,100,100);
    public static void main(String[] args){
                    new Puzzel().setVisible(true);}
         }

  • How to move table from one tablespace to other tablespace?

    how to move table from one tablespace to other tablespace?

    887274 wrote:
    how to move table from one tablespace to other tablespace?
    alter table <table_name> move  tablespace <new_tablespace_name>;
    Rebuild the indexes; alter index <index_name> rebuild <new_tablespace_name> online;Example;:
    SQL> create table ttt( ID NUMBER PRimary key);
    Table created.
    SQL> insert into ttt values (1);
    1 row created.
    SQL> commit;
    Commit complete.
    SQL> select index_name, status  from dba_indexes where table_name='TTT';
    INDEX_NAME                 STATUS
    SYS_C0010863                 VALID
    SQL> alter table ttt move tablespace users;
    Table altered.
    SQL> select index_name, status  from dba_indexes where table_name='TTT';
    INDEX_NAME                 STATUS
    SYS_C0010863                 UNUSABLE
    SQL> alter index SYS_C0010863 rebuild tablespace users online;
    Index altered.
    SQL> select index_name, status  from dba_indexes where table_name='TTT';
    INDEX_NAME                 STATUS
    SYS_C0010863                 VALID
    SQL>

  • How to move cursor from one textfield to another textfield byusing enterkey

    hii all,
    I have a problem in java script.
    To move cursor from one textbox to another text box ,I have take the length of the textboxes of the first column.I used onkeyDown event .
    in the function ,firest i checked the condition like
    for(i=0;i<form1.box.length;i++) //box is the name of the textboxes
    if(event.keyCode==13)
    form1.box[i+1].focus();
    return false;
    by using this the cursor is moving from first text box to secon textbox and stops.
    if i use event.returnValue=false; instead of return false ,then the cursor automatically going to the laxt textbox of the column.
    my problem is how i can focus the cursor from one textbox to another textbox one after the other till the end.
    if any one has solution please help me.
    also if we can do in another way also,please help me.
    thanx.>

    try the following code :
    <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
    <HTML>
    <HEAD>
    <TITLE> New Document </TITLE>
    <META NAME="Generator" CONTENT="EditPlus">
    <META NAME="Author" CONTENT="">
    <META NAME="Keywords" CONTENT="">
    <META NAME="Description" CONTENT="">
    </HEAD>
    <SCRIPT language="Javascript">
    function fnTest(str)     {     
              if(event.keyCode==13)          {
                   if(str == 4)     {
                        formHeader.box[0].focus();
                   else     {
                        formHeader.box[parseInt(str)+1].focus();
                   return false;
    </SCRIPT>
    <BODY>
    <FORM name="formHeader">
    <CENTER>
    <INPUT TYPE="TEXT" name="box" value="" onKeyDown="javascript:fnTest('0');">
    <br>
    <INPUT TYPE="TEXT" name="box" value="" onKeyDown="javascript:fnTest('1');">
    <br>
    <INPUT TYPE="TEXT" name="box" value="" onKeyDown="javascript:fnTest('2');">
    <br>
    <INPUT TYPE="TEXT" name="box" value="" onKeyDown="javascript:fnTest('3');">
    <br>
    <INPUT TYPE="TEXT" name="box" value="" onKeyDown="javascript:fnTest('4');">
    </CENTER>
    </FORM>
    </BODY>
    </HTML>
    ----------------------------------------------

  • How to move up within a URL path?

    Recently started using URLs in my programs. Works great. However, all the
    time I have been wondering how to move up in that URL path. For example,
    if my url1=("http://www.something.com/") I normally end up at the index.html.
    But how could one set up a relative url reaching a file or directory at the same
    level as that index.html? I suppose one should go up onel level and then
    specify the name of the required file.
    I tried to use things like url2= new URL(url1,"../myfile") but that doesn't seem
    to work.
    Anybody has an idea? Thanks in advance.
    Dirk

    martin@work wrote:
    Hi,
    you can't, if your web server provides the minimum of security. In the web server configuration you normally map a base url to a physical directory on the server and the web server does its very best to assure that you can only access files in that physical directory and below, and that all other files on the server in any upper or parallel directories are not accessible.
    If you want to access files in a parallel directory then you have to create a further mapping in the web server which maps another base URL to that directory.
    Martin To reinforce what Martin says: if you cannot do this with your web browser, don't expect to do it with Java.
    On the other hand, if you can do it in your web browser, we misunderstood your question and please
    reformulate it using actual URL's (or at least the portion following the host name).
    Edited by: baftos on Apr 25, 2008 9:28 AM

  • I have powerpoint for Mac on my imac.  I can't seem to get the active text box function to work like it did on my PC.  How can I insert an active textbox into a presentation that will allow me to type while presenting?

    I have powerpoint for Mac on my imac.  I can't seem to get the active text box function to work like it did on my PC.  How can I insert an active textbox into a presentation that will allow me to type while presenting?

    I've gotten a little further on this. The dynamic select is
    working fine. It's the "a href" code that isn't. I'm wondering if
    someone can look at this line and tell me if it's okay to build the
    query string this way. The storeid comes through fine but I'm still
    not getting the employeeid value to pass. Here's line that's not
    working:
    td><a href="registerStoreCust.php?storeid=<?php echo
    $row_storeRS['storeid']; echo "&employeeid="; echo
    $_GET['employeeLM']; ?>">Register
    Customer</a></td>

  • How to move E-Business from HP-UX to AIX

    Do you have any reference on how to move E-Business suite to different operating systems or more specifically from HP-UX to AIX? Thx.

    We have done the platform move and upgrade at the same time :
    From: To:
    RHEL 2.1 -> AIX 5.3
    DB 9.2 -> DB 10.2
    eBS 11.5.9 -> eBS 11.5.10.CU2
    High level steps where :
    1. take a copy of the 9i database to a staging area (using data guard etc)
    2. upgrade database to 10g to get datapump capabilities (we had to upgrade to 10.1 since 10.2 was not certified on RHEL 2.1)
    3. datapump export all metadata and data
    4. create fresh eBS install on target platform, then delete all database objects
    5. Create new database,
    6. datapump import (from step 3) and recreate indexes
    7. upgrade database to 10gR2
    8. upgrade apps to 11.5.10CU2
    9. re-install upgraded CEMLI components
    10. validate and reconcile data
    We are preparing presentation for AUOUG that will describe this in more details, we are happy to share this as soon as it is ready.
    If you are not doing and upgrade (of DB and eBS) at the same time as migration your process can be simplified.
    Usage of the 10g datapump export / import was essentiall part of our strategy.
    We have decided not to use Transportable tablespacess as there is no documented way how to do this with 11i DB, (System tablespace is not transportable which causes number of problems with AQ, etc ).
    If you are moving to another platform that has the same endian format (AIX and HPUX are both big endian), and you are on DB 10.2 (or ready to upgrade to 10.2) you can use Transportable Database
    Transportable Database is a new feature in Oracle Database 10g Release 2 (10.2) that is the recommended method for migrating an entire database to another platform that has the same endian format. The principal restriction on cross-platform transportable database is that the source and destination platform must share the same endian format. For example, while you can transport a database from Microsoft Windows to Linux for x86 (both little-endian), or from HP-UX to AIX (both big-endian), you cannot transport a whole database from HP_UX to Linux for x86 using this feature.
    More info on http://download.oracle.com/docs/cd/B19306_01/backup.102/b14191/dbxptrn002.htm#sthref1397
    For the 11i middle tier, safest and easiest way is to re-install it from CD, and then add you custom CEMLI bits.
    Regards,
    Radomir

  • How to get the index of a h:column element?

    Hi!
    I'd like to know how to get the index of a <h:column> element.
    Here is the code of what I'm trying to do:
    <h:column>
         <a:commandLink
              value="#{familyAction.familyDocsByPrj}"
              action="#{homeAction.search(ROW_INDEX)}"
              reRender="rightAppPanel" />
    </h:column>When clicking a row, I'd like to make a "search" depending on the selected row.
    Does anybode know how to do that?
    Thanks a lot :)

    Thanks a lot for all your answers! :)
    I finally got to do something with my little knowledge =P
    I created a new class containing all the data needed for the dataTable (including a "String id").
    And that's what I get:
    <h:column>
         <a:commandLink
              value="#{familyAction.familyDocsByPrj.name}"
              action="#{homeAction.search(familyAction.familydocsByPrj.id)}"
              reRender="rightAppPanel" />
    </h:column>

  • How to move the script around inside the page?

    Hello, I put script inside slideshow div but it's stuck on the header and I would like to know how to move it and center it in the page, can I put the script inside div tag?
    <script type="text/javascript">
    var o=String.fromCharCode(60);var c=String.fromCharCode(62)
    document.write(o+'iframe sr'+'c="http://slideful.com/v20140709_1945184890217241_ijf.htm" frameborder="0" sty'+'le="border:0px;padding:0px;margin:0px;width:960px;height:211px;" allowtransparency="true"'+c+o+'/iframe'+c)
    </script>

    Sometimes javascript should run above the HTML it acts upon and sometimes it should run after. Although you can put the script within a div element, mixing up your HTML and your scripts is considered messy, but if you have a reason to to it you can.
    HTML is run sequentially, but (usually) javascript sits in memory until it is called. I think your problem is not the placement of your javascript, but the HTML around your slideshow.
    If the slideshow is "stuck on the header" then try putting <br style='clear:both'/> right before the div that contains the slideshow. If that doesn't help, show us more of the code involved.

  • IDOCs (Multiple Types) Collection in BPM---string index out of range

    Hi
    I am following this weblog
    IDOCs (Multiple Types) Collection in BPM
    1.
    In Step 4
    Below mapping is for N:1 transformation. (Here input will be having three different types of Abstract IDOCs and target will be having Abstract Target File type)
    (iv) MM_ISU_UKGAS_NOM_to_NOM_ABS"
    when I tried to 3 idoc as sender and My Message Type as the receiver
    I am getting the following error message
    String index out of range: 0
    so how can I do this message Mapping
    2.
    and in Step 3.
    I have just mapped
    Source Idoc 1 with Source Idoc 1
    Source Idoc 2 with Source Idoc 2
    Source Idoc 3 with Source Idoc 3
    is it right way ?
    thanks
    manian
    Edited by: manian on Dec 8, 2008 10:49 AM

    Manian,
    Multiline option should be on for receiver message .
    Mapping seems to be o.k.
    Regards,

  • Curve 8310 error Unc.Exception: string index out of range: 0

    I'm getting the following error message: "Uncaught Exception: string index out of range: 0" and no way to clear that message.
    Could someone help me to fix it? Actually the only way to get BB-8310 back working is remove the battery.
    Thanks in adavance
    Solved!
    Go to Solution.

    Hi and Welcome to the Community!!
    There's pretty much no diagnosing those -- they are the equivalent of the random errors in Windows for which tracing the root cause is fruitless. Basically, these are the last out in the programming code -- some event occurred for which there is no handler in the code. The fix is a code update that handles the event...but, again, knowing what the event is is pretty much impossible. So, there are a few things to try:
    Sometimes, the code simply becomes corrupt and needs to be refreshed -- just like a reboot:
    Anytime random strange behavior or sluggishness creeps in, the first thing to do is a battery pop reboot. With power ON, remove the back cover and pull out the battery. Wait about a minute then replace the battery and cover. Power up and wait patiently through the long reboot -- ~5 minutes. See if things have returned to good operation. Like all computing devices, BB's suffer from memory leaks and such...with a hard reboot being the best cure.
    If it won't boot up cleanly, then you may need to try Safe Mode:
    KB17877 How to start a BlackBerry smartphone in safe mode
    There might be an updated code set from the carrier -- check them via this portal:
     http://na.blackberry.com/eng/support/downloads/download_sites.jsp
    The toughest possible cause is a badly behaving app. To find it, there are a couple of options. One is to see if you can read the log file:
    Go to the home screen. Hold down the "alt" key and type 'lglg'. (You will not see anything while you type).This will bring up the log file. Scroll down (probably many pages) untill you see a line that says 'uncaught execption'. Click on this line. The name of the app will be in the info. Alternative methods for bringing up the logs are in this KB:
    KB05349How to enable, access, and extract the event logs on a BlackBerry smartphone
    The other method is to remove apps one at a time, waiting a while in between (I usually recommend a week), until the problem ceases...thereby discovering the offending app. Still another method is to reload the BB OS cleanly, leaving some time between adding other apps onto the BB so as to be able to determine exactly which one is the cause.
    Good luck and let us know!
    Occam's Razor nearly always applies when troubleshooting technology issues!
    If anyone has been helpful to you, please show your appreciation by clicking the button inside of their post. Please click here and read, along with the threads to which it links, for helpful information to guide you as you proceed. I always recommend that you treat your BlackBerry like any other computing device, including using a regular backup schedule...click here for an article with instructions.
    Join our BBM Channels
    BSCF General Channel
    PIN: C0001B7B4   Display/Scan Bar Code
    Knowledge Base Updates
    PIN: C0005A9AA   Display/Scan Bar Code

Maybe you are looking for