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

 

Json$

Has two parameters: Source, Name

 

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

 

Similar$

Takes 2 parameters, pString1, pString2

 

TimeAdd$

Takes two parameters, Source, Value

 

TimeDif$

Takes two parameters, Source, Value

 

Right$

Takes two parameters, Source, Value

 

Shell$

Takes two parameters Command, Options

 

Similar%

Takes 2 parameters, pNum1, pNum2

 

Left$

Takes two parameters, Source, Value

 

Len%

Takes one parameter, a Source value

 

LastAny$

Takes two parameters, Source, Search

 

JsonStream$

Has one parameter, Options

 

Lang$

Takes one parameter, Source

 

Len$

Takes one parameter, a Source value

 

LongDate$

Takes one parameter, a Date value

 

RecoverHtml$

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

 

Login$

Takes three parameters, Login, Password, bRememberMe

 

JsonEncode$

Has two parameters: Source, Options

 

JsonDecode$

Has two parameters: Source, Options

 

LoadTabFileWS

Takes two parameters, FileName, bHasHeader

 

MergeRecords

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

 

LoadTabFile

Takes two parameters, FileName, bHasHeader

 

LoadJsonFile

Takes two parameters, PathToFile, Options

 

LoadPipeFileWS

Takes two parameters, FileName, bHasHeader

 

HtmlForm

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

 

Lang

Takes four parameters, FieldBase, Destination, Source, IfLenFld

 

HtmlBlocks / End HtmlBlocks

Takes two parameters, Location, Mode

 

ParseRecords

Takes two parameters, WorkFieldBase + FieldToParse, Delimiter

 

SaveJsonFile

Takes two parameters, FileName, Options

 

JsonStream

Takes two parameters, Data, Options

 

HttpCookie

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

 

HttpHeader

Takes two parameters, name, value

 

HtmlBlock / End HtmlBlock

Takes two parameters, Location, Mode

 

TimeSub$

Takes two parameters, Source, Value

 

WebSafe$

Takes one parameter, Source

 

FixFields

Takes one parameter, a single character

 

JsonEmbed

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

 

Session

Takes two parameters, Name, Value

 

Login

Takes three parameters, Login, Password, bRememberMe

 

PWHash

Takes three parameters, TableName, Alias, Password

 

IsGroupType$

Takes two parameters: Username, GroupTypes

 

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

Takes a variable number of conditional statements

 

Macro

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

 

File

Takes 3 parameters, Destination, Action, Source

 

Foreign

Takes a single parameter, a QueryName

 

OnError / End OnError

Takes one parameter, Control

 

SaveFile

Takes two parameters, FileName, FileData

 

Select / Case / End Select

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

 

Prefix

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

 

Return

Takes a variable number of parameters.

 

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.

 

 

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.

 

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

 

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.

 

LoadPipeFile

Takes two parameters, FileName, bHasHeader

 

Cloudflare Integration

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

 

Http$

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

 

HttpHeader$

Has one parameter

 

FieldDef$

Takes one parameter, FieldName

 

GeoDistance$

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

 

HttpHeaders$

Has no parameters

 

InStrAny%

Takes two parameters, Source, Match

 

InStrAny$

Takes two parameters, Source, Match

 

InStr%

Takes two parameters, Source, Match

 

InStr$

Takes two parameters, Source, Match

 

ExtractAny$

Takes two parameters, Source , Search

 

[WQFieldList]

Has no parameters

 

ApplyLang$

Takes one parameter

 

Moxie.cfg Config

The Moxie.cfg file is read on server start and controls aspects that cannot be changed while the server is running.

 

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.

 

Bom$

Takes one parameter

 

CheckPw$

Takes two parameters, User and Password

 

ETag$

Takes one parameter, Source

 

BomToUtf8$

Takes one parameter

 

CFApi$

Takes three parameters Method, URL, Body