LiveCode

LiveCode is a cross-platform rapid application development runtime environment that develops apps for several Unix-like OS including Linux, Raspbian, Solaris and BSD. It also develops apps for the Android, Windows 95 and up.
Unfortunately Apple does not allow opensource apps written under
the GPL (
General Public License) and requires a commercial license to be purchased to write iOS apps.

Functions

  • iComma() A function to insert commas into a number to separate it into groups of three.

  • hms() A function to convert seconds to display as Hours:Minutes:Seconds

  • isLeapyear() A function that determines if a year is a leap year.

  • getMonthLayout() A function to return the number of days in a month. It includes a leap year algorithm to determine if February has 28 or 29 days and a method for determining the offset for the 1st day of the month.

  • Simple Functions4U Some short functions:

    • isDiff () Compares two strings to return a true/false. It is case-sensitive so isDiff("Whatcha Doin" ,"whatcha doin" ) will return a true.

    • isLetter() Like the isNumber, it returns a true or false if a single character is a letter or not.

    • isAlpha() A function that individually tests each character in a string to determine if whole string is purely letters.

    • isSymbol() Returns true or false depending if a character is a symbol or not.

    • quote1() Encloses a string with single quotes.

    • quote2() Encloses a string with quotes.

    • ohmsLaw() A function for calculating Ohm's Law. Given two out of Volts, Amps and Ohms it will return the third.

Some Code Snippets


References