Edit Proper Indent

From MCS Wiki AVR
Jump to: navigation, search

This option will properly indent your code.

 

Indention is used to make code better readable.

Every structure will be indented. And nested will increase indenting.

 

 

 

This code :

 

 For C = 0 To 100

  B = A(c)

  Print "Read " ; C ; ":" ; B ; "/" ; Hex(b)

  Waitms 4

Next

 

 

Will be transformed into :

 

 For C = 0 To 100

    B = A(c)

    Print "Read " ; C ; ":" ; B ; "/" ; Hex(b)

    Waitms 4

 Next

 

 

And this is a sample with nesting :

 

Do

 Input "Data to write ? (0-255)" , D

 

 Print "Reading content of EEPROM (via ERAM Byte)"

 For C = 0 To 100

    B = A(c)

    Print "Read " ; C ; ":" ; B ; "/" ; Hex(b)

    Waitms 4

 Next

Loop


When indenting does not work you need to check your code for mistakes. For example for endif instead of End If.


Languages   English  
Personal tools
Namespaces
Variants
Actions
Navigation
Language
Database error - MCS Wiki AVR

Database error

Jump to: navigation, search
A database query syntax error has occurred. This may indicate a bug in the software. The last attempted database query was:
(SQL query hidden)
from within function "". Database returned error "1020: Record has changed since last read in table 'avr_page' (localhost)".
Personal tools
Namespaces
Variants
Actions
Navigation
Language