A1 Demo Code Snippet

From CDOT Wiki
Revision as of 15:38, 7 September 2012 by Peter.liu (talk | contribs) (Created page with '<pre> display("abcdefghijklmnopqrstuvwxyz (string)", 4, 5, 0); display( "display - field length: 5", 6, 10+5+7, 0); // field length (last parameter): 5, row: 7 …')
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

    display("abcdefghijklmnopqrstuvwxyz (string)", 4, 5, 0);
   
    display( "display - field length: 5", 6, 10+5+7, 0);

    // field length (last parameter): 5, row: 7
    display("abcdefghijklmnopqrstuvwxyz", 7, 5, 5);
   
    display( "display - field length: 15", 8, 15+7, 0);

    // field length: 15, row: 9
    display("abcdefghijklmnopqrstuvwxyz", 9, 5, 15);
   
    display( "display - field length: 26", 10, 15+7, 0);

    // field length: 0, row: 11
    display("abcdefghijklmnopqrstuvwxyz", 11, 5, 26);
   

    // row: 13, column: 5
    display( "edit - field length: 7; move the arrow keys; press END, HOME... ", 13, 5, 0);
    // field length (4th parameter): 5, row: 16, column: 5
    key = edit(str, 16, 5, 7, 80, &insert, &offset, &index);