Search Results for function

 

Function

A special type of Private Method, called a Private Function, that is intended to return a single value or multiple values simultaneously.

 

 

 

Geo

Takes nine parameters, FieldBase, Destination, Function, Source1, Source2, Source3, Source4, Options, IfLenFld

 

Num

Takes 6 parameters, FieldBase, Destination, Function, Source, Value, IfLenFld

 

Text

Takes six parameters, FieldBase, Destination, Function, Source, Value, IfLenFld

 

Value

Takes four parameters, FieldBase, Destination, Function, IfLenFld

 

Time

Takes six parameters, FieldBase, Destination, Function, Source, Value, IfLenFld

 

Simple To Do App with MEAN Stack Comparison

In this example, we use a plain old Moxie.Build system and compare it to the MEAN Stack equivalent by building two functionally equivalent versions of a fleshed out To Do List Application. Both versions utilize local user authentication, a relational database system and the security measures found in typical production-level applications on the web today.

 

RecoverTmpl$

Takes one parameter, EscapedTemplate, and returns the Unescaped Version of this string

 

RecoverMOX$

Takes one parameter, HtmlEscapedString, and returns the Unescaped Version of this string

 

RecoverHtmlObj$

Takes one parameter, EscapedHTMLString, and returns the Unescaped Version of this string

 

JsonEncode$

Has two parameters: Source, Options

 

TimeAdd$

Takes two parameters, Source, Value

 

TimeDif$

Takes two parameters, Source, Value

 

Similar$

Takes 2 parameters, pString1, pString2

 

Right$

Takes two parameters, Source, Value

 

Similar%

Takes 2 parameters, pNum1, pNum2

 

Len%

Takes one parameter, a Source value

 

Len$

Takes one parameter, a Source value

 

LastAny$

Takes two parameters, Source, Search

 

Left$

Takes two parameters, Source, Value

 

Login$

Takes three parameters, Login, Password, bRememberMe

 

JsonStream$

Has one parameter, Options

 

RecoverHtml$

Takes one parameter, EscapedHTMLString, and returns the Unescaped Version of this string

 

LongDate$

Takes one parameter, a Date value

 

Lang$

Takes one parameter, Source

 

TimeSub$

Takes two parameters, Source, Value

 

LoadTabFileWS

Takes two parameters, FileName, bHasHeader

 

MergeRecords

Takes 5 parameters, FieldBase, GroupBy, MergeField, Delimiter, bKeepBlanks

 

JsonStream

Takes two parameters, Data, Options

 

LoadTabFile

Takes two parameters, FileName, bHasHeader

 

ParseRecords

Takes two parameters, WorkFieldBase + FieldToParse, Delimiter

 

HtmlForm

Takes 6 parameters, Location, Mode, ActionLabel, ActionPath, Class, ActionMethod

 

Lang

Takes four parameters, FieldBase, Destination, Source, IfLenFld

 

SaveJsonFile

Takes two parameters, FileName, Options

 

HtmlBlocks / End HtmlBlocks

Takes two parameters, Location, Mode

 

HttpCookie

Takes 6 parameters, Name, Value, Path, Domain, Expires, Other

 

HttpHeader

Takes two parameters, name, value

 

WebSafe$

Takes one parameter, Source

 

HtmlBlock / End HtmlBlock

Takes two parameters, Location, Mode

 

Login

Takes three parameters, Login, Password, bRememberMe

 

FixFields

Takes one parameter, a single character

 

JsonEmbed

Has six parameters, UniqueParent, DestField, FieldBase, UniqueChild, EmbedFields, Options

 

PWHash

Takes three parameters, TableName, Alias, Password

 

Session

Takes two parameters, Name, Value

 

JsonDecode$

Has two parameters: Source, Options

 

Macro

A set of instructions that can be called with parameters to run in the current scope.

 

Prefix

Takes a single string as parameter, which is then appended to each line in the code block.

 

Foreign

Takes a single parameter, a QueryName

 

If (Not) / And / Or / ElseIf / End If

Takes a variable number of conditional statements

 

Select / Case / End Select

Takes a variable number of conditional statements to compare against a single source

 

Cloudflare Integration

Cloudflare is a first and foremost a Web Application Firewall and Content Distribution Network, among other additional services.

 

Return

Takes a variable number of parameters.

 

SaveFile

Takes two parameters, FileName, FileData

 

Critical

Takes one parameter, the Name of the critical section

 

Privacy Policy

This is our current Privacy Policy, last updated 2016-01-12.

 

Style Guide, Procedures and Code Documentation

In order for source code to be more readily readable across teams, it is recommended that your source code always be styled according to this style guide.

 

Get Started with Setting up the Development Environment

Developing in Moxie.Build on localhost give you the advantage of working with the template files natively. When working on procedures (MOX code) you need to access that through the Procedures page in the Admin area of a Moxie.Build system, if running the server on localhost or on a remote server. When running on a remote server, you can edit the template files via the Files page in the Admin area.

 

 

Remote Method

A Remote Method may be called by any other Moxie system. It can be used to divide up a large system among a number of backend servers, or as a public API for 3rd parties. In order to call a Remote Method from MOX, the Remote statement is used.

 

CFPurge

Takes one parameter, the URL to purge from CloudFlare's cache

 

MOX Coding and Programing Language Syntax Documentation

The MOX coding and programming language pays heritage to BASIC, but has been crafted for the specific type of work and environment that is demanded of Moxie.Build.

 

Folder and File Structure

Brief overview on the file structure and contents under Moxie. The files and folders discussed in this post are those that are essential when upgrading to the most recent version of Moxie.Build , or when troubleshooting server errors.

 

InStr%

Takes two parameters, Source, Match

 

InStr$

Takes two parameters, Source, Match

 

HttpHeader$

Has one parameter

 

HttpHeaders$

Has no parameters

 

IsGroupType$

Takes two parameters: Username, GroupTypes

 

Json$

Has two parameters: Source, Name

 

InStrAny%

Takes two parameters, Source, Match

 

InStrAny$

Takes two parameters, Source, Match

 

Http$

Takes 9 parameters, ServerName, Port, bSecure, Mode, Path, ContentType, extraHeader, body, rtnHeaders

 

ApplyLang$

Takes one parameter

 

CFApi$

Takes three parameters Method, URL, Body

 

Setup Table

The Setup Table controls aspects that can be changed while the server is running, and is intended to contain both Moxie.Build specific values as well as application specific.

 

[WQFieldList]

Has no parameters

 

FieldDef$

Takes one parameter, FieldName

 

GeoDistance$

Takes five parameters, Lat1, Long1, Lat2, Long2, Options

 

CheckPw$

Takes two parameters, User and Password

 

ExtractAny$

Takes two parameters, Source , Search