Tampilkan postingan dengan label code. Tampilkan semua postingan
Tampilkan postingan dengan label code. Tampilkan semua postingan

Taking Random Values in Corona

Posted by Unknown Rabu, 06 November 2013 0 komentar
Syntax for taking random numbers or values in corona has been given below.
Download the code and try it...

Syntax
        math.random() 
        math.random( m ) 
        math.random( m, n )

math.random() ---> a number between 0 and 1
math.random(m) ---> an integer between 1 and n (inclusive)
math.random(m,n) ---> an integer between m and n (inclusive)
 

math.random() ---> a number between 0 and 1
math.random(20) ---> an integer between 1 and 20 (inclusive)
math.random(20, 40) ---> an integer between 20 and 40 (inclusive)


Baca Selengkapnya ....

Using For Loops inCorona

Posted by Unknown Selasa, 05 November 2013 0 komentar
Using For Loops in corona is very eazy.Copy and try the code below..
 
for i=1,20 do
print(i)
end

Baca Selengkapnya ....

String Functions In Corona

Posted by Unknown Sabtu, 02 November 2013 0 komentar
Here is a list of string function which are very useful...

string.byte() Returns the internal numerical codes of the characters in a string.
string.char()Returns a string in which each character has the internal numerical code equal to its corresponding argument.
string.find() Looks for the first match of a pattern in a string. If found, it returns the indices where the occurrence starts and ends; otherwise, returns nil.
string.format()Returns a formatted string following the description given in its arguments.
string.gmatch()Returns a pattern-finding iterator.
string.gsub()Replaces all occurrences of a pattern in a string.
string.len()Returns the length of a string (number of characters).
string.lower()Changes uppercase characters in a string to lowercase.
string.match()Extracts substrings by matching patterns in a string.
string.rep()Replicates a string by returning a string that is the concatenation of n copies of a specified string.
string.reverse()Reverses a string.
string.sub()Returns a substring (a specified portion of an existing string).
string.upper()Changes lowercase characters in a string to uppercase.

Baca Selengkapnya ....

HTML Tags - Text

Posted by Unknown Senin, 26 Agustus 2013 0 komentar
<p>
This defines a paragraph.

 <h1>....<h6>
These are used to define html headings.<h1> defines the most important heading and <h6> defines the least important heading.

<strong>
This
defines the most important text.
 <em>
This defines a emphasized text or italic text.
 
<abbr>
This defines an abbreviation or an acronym.

<acronym>
This defines an
acronym.
<address>
This defines the contact information of the document.Mostly they produce italic text with line breaks.

<bdo>
This means bi-directional override.It is used to
override the current text direction.
<blockquote>
This defines a section that is quoted from another source.

<cite>
This defines the title of a work.

<q>
This defines a short quotation.

<code>
This is a phrase tag which defines a piece of computer code.

<ins>
This tag defines a text that has been inserted
into a document.
<dfn>
This
is a phrase tag which defines a definition term. 
<del>
This
tag defines text that has been deleted from a document. 
<pre>
This tag defines preformatted text
. 
<kbd> 
This is a phrase tag which defines keyboard input
 <samp>
 This is a phrase tag which defines sample output from a computer program. 
<var>
This tag defines variables.
 
<br>
This tag inserts a single line break.


 
<html>
<head>
<body>
HTML (Hypertext Markup Language) is the set of markup symbols or codes inserted in a file intended for display on a World Wide Web browser page.Each individual markup code is referred to as an element or called a tag .
Some simple things to remember


This a heading



This a heading



This a heading



This a heading



This a heading


This a heading

This is an important text
This is an italic text
WHO
Go through thisASAP

Angel Mark
for coderz
have a nice journey with html


This text will go right-to-left.


where you find everything on Android,corona,html and more

html tutorials by Angel Mark coding playground.
Angel Mark coding playground
A piece of computer code
My favorite color is blue red!
This is a preformatted text
</body> </head> </html>

Baca Selengkapnya ....

Show and Resume Android Soft-Keyboard

Posted by Unknown Rabu, 23 Januari 2013 0 komentar
Code to show keyboard:

InputMethodManager imm = (InputMethodManager)getSystemService(Context.INPUT_METHOD_SERVICE);
imm.showSoftInput(yourEditText,InputMethodManager.SHOW_IMPLICIT);
Code resume keyboard :

InputMethodManager imm = (InputMethodManager)gettSystemService(Context.INPUT_METHOD_SERVICE);
imm.hideSoftInputFromWindow(yourEditText.getWindowToken(), 0);

Baca Selengkapnya ....
Trik SEO Terbaru support Online Shop Baju Wanita - Original design by Bamz | Copyright of android populer.