Skip to main content

Posts

Showing posts with the label Table

Tables In Corona

The table constructor is written using braces (curly brackets) as in { } t = {} -->create a table k = "x" t[k] = "tabvalue" --new table entry, -->with key="x" and value=2.4 print( t[k] ) --> 2.4 print( t["x"] ) --> 2.4 print( t.x ) --> 2.4 t[2] = "tabval2" --new table entry, -->with key=2 and value="tabval2" t[3]= 2.4 print( t[2] ) --> "tabval2" print( t[3] )

HTML Tag - Tables

<table> This defines the HTML table.This tag has elements like <tr>,<th>,<td>. <tr> This defines a row in the HTML table. <td> This defines a cell in the HTML table. <tbody> This tag is used to group the body content in a HTML table. <thead> This tag is used to group header in an HTML table <tfoot> This tag is used to group footer content in an HTML table. <col> This tag specifies properties for each column within a <colgroup> element. <colgroup> This tag specifies a group of one or more columns in a table for formatting <caption> This tag defines a table caption. <html> <body> 1 2 Sum $180 Day Events Monday conference Wednesday meeting </body> </html>

Types and Values In Corona

Lua is a dynamically typed language. This means that variables do not have types; only values do. There are no type definitions in the language. All values carry their own type. All values in Lua are first-class values. This means that all values can be stored in variables, passed as arguments to other functions, and returned as results. nil   — it usually represents the absence of a useful value. boolean   — represents two conditions 'false' or 'true' number   — represents real (double-precision floating-point) numbers. string   — represents arrays of characters. Lua is 8-bit clean: strings can contain any 8-bit character,   including embedded zeros. function   — click here to get more details table   — the sole data structuring mechanism in Lua.