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.

 

 

 

Num

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

 

Geo

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

 

Time

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

 

Value

Takes four parameters, FieldBase, Destination, Function, IfLenFld

 

Text

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.

 

RecoverHtml$

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

 

Similar$

Takes 2 parameters, pString1, pString2

 

Similar%

Takes 2 parameters, pNum1, pNum2

 

RecoverTmpl$

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

 

Right$

Takes two parameters, Source, Value

 

RecoverHtmlObj$

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

 

RecoverMOX$

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

 

LongDate$

Takes one parameter, a Date value

 

Lang$

Takes one parameter, Source

 

LastAny$

Takes two parameters, Source, Search

 

JsonEncode$

Has two parameters: Source, Options

 

JsonStream$

Has one parameter, Options

 

Len$

Takes one parameter, a Source value

 

Login$

Takes three parameters, Login, Password, bRememberMe

 

Left$

Takes two parameters, Source, Value

 

Len%

Takes one parameter, a Source value

 

TimeAdd$

Takes two parameters, Source, Value

 

LoadTabFile

Takes two parameters, FileName, bHasHeader

 

MergeRecords

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

 

FixFields

Takes one parameter, a single character

 

JsonEmbed

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

 

HtmlBlocks / End HtmlBlocks

Takes two parameters, Location, Mode

 

Lang

Takes four parameters, FieldBase, Destination, Source, IfLenFld

 

ParseRecords

Takes two parameters, WorkFieldBase + FieldToParse, Delimiter

 

SaveJsonFile

Takes two parameters, FileName, Options

 

WebSafe$

Takes one parameter, Source

 

HtmlBlock / End HtmlBlock

Takes two parameters, Location, Mode

 

TimeDif$

Takes two parameters, Source, Value

 

TimeSub$

Takes two parameters, Source, Value

 

PWHash

Takes three parameters, TableName, Alias, Password

 

Session

Takes two parameters, Name, Value

 

HttpCookie

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

 

Login

Takes three parameters, Login, Password, bRememberMe

 

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

Takes a variable number of conditional statements

 

Foreign

Takes a single parameter, a QueryName

 

Critical

Takes one parameter, the Name of the critical section

 

Macro

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

 

SaveFile

Takes two parameters, FileName, FileData

 

Return

Takes a variable number of parameters.

 

Prefix

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

 

CFPurge

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

 

Privacy Policy

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

 

 

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.

 

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.

 

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.

 

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 , or when troubleshooting server errors.

 

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.

 

InStr%

Takes two parameters, Source, Match

 

Http$

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

 

GeoDistance$

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

 

InStr$

Takes two parameters, Source, Match

 

IsGroupType$

Takes two parameters: Username, GroupTypes

 

InStrAny$

Takes two parameters, Source, Match

 

InStrAny%

Takes two parameters, Source, Match

 

FieldDef$

Takes one parameter, FieldName

 

[WQFieldList]

Has no parameters

 

Cloudflare Integration

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

 

Select / Case / End Select

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

 

ApplyLang$

Takes one parameter

 

ExtractAny$

Takes two parameters, Source , Search

 

CheckPw$

Takes two parameters, User and Password

 

CFApi$

Takes three parameters Method, URL, Body