This shows you the differences between two versions of the page.
| Both sides previous revision Previous revision Next revision | Previous revision | ||
|
tutorial:variableandconstant [2018/12/26 09:08] admin |
tutorial:variableandconstant [2019/01/04 16:06] (current) admin [การประกาศ Variables/Constants] |
||
|---|---|---|---|
| Line 15: | Line 15: | ||
| var a:byte; | var a:byte; | ||
| b:integer; | b:integer; | ||
| - | c:real; | + | c:real; |
| d:double; | d:double; | ||
| e:boolean; | e:boolean; | ||
| - | f:char; | + | f:char = 'A'; //Initial Value |
| - | g:string; | + | g:string = 'Hello'; //Initial Value |
| - | + | ||
| begin | begin | ||
| // Assign value: | // Assign value: | ||
| Line 34: | Line 34: | ||
| \\ | \\ | ||
| - | =====Data Types===== | ||
| - | Data Types สำหรับ FPC มีหลักๆดังนี้ | ||
| - | *Integer | ||
| - | *Real | ||
| - | *Boolean | ||
| - | *Char | ||
| - | *String | ||
| - | *Boolean | ||