Open main menu

CDOT Wiki β

A1 Demo Code Snippet

Revision as of 19:13, 9 September 2013 by Peter.liu (talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

    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);
   
    // str: "abcdefghijklmnopqrstuvwxyz"   
    // row: 16, column: 5, field length (4th parameter): 7   
    key = edit(str, 16, 5, 7, 80, &insert, &offset, &index);