Difference between revisions of "A1 Demo Code Snippet"

From CDOT Wiki
Jump to: navigation, search
(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 …')
 
Line 21: Line 21:
 
     // row: 13, column: 5
 
     // row: 13, column: 5
 
     display( "edit - field length: 7; move the arrow keys; press END, HOME... ", 13, 5, 0);
 
     display( "edit - field length: 7; move the arrow keys; press END, HOME... ", 13, 5, 0);
 +
 
 
     // field length (4th parameter): 5, row: 16, column: 5
 
     // field length (4th parameter): 5, row: 16, column: 5
 
     key = edit(str, 16, 5, 7, 80, &insert, &offset, &index);
 
     key = edit(str, 16, 5, 7, 80, &insert, &offset, &index);
 
      
 
      
 
</pre>
 
</pre>

Revision as of 15:40, 7 September 2012


    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);