Function Reference

From Sputnik Wiki
(Difference between revisions)
Jump to: navigation, search
(Console Functions)
Line 97: Line 97:
 
* [[Core Function VarDump|VarDump( $variable, <newline> )]] -- Dumps information about a variable
 
* [[Core Function VarDump|VarDump( $variable, <newline> )]] -- Dumps information about a variable
 
* [[Core Function Assign|Assign( <varname>, <data>, <flag> )]] -- Assigns a variable by name with the data
 
* [[Core Function Assign|Assign( <varname>, <data>, <flag> )]] -- Assigns a variable by name with the data
 
===== Hash/Array =====
 
* [[Core Function Reset|Reset( $variable )]] -- Reset the current array pointer to the first element
 
* [[Core Function Next|Next( $variable )]] -- Set the array pointer to the next element
 
* [[Core Function Prev|Prev( $variable )]] -- Set the array pointer to the previous element
 
* [[Core Function Cur|Cur( $variable, <value> )]] -- Get/Set the array pointer
 
* [[Core Function Clr|Clr( $variable )]] -- Delete the array pointer and dispose all objects associated with it
 
  
 
===== Type Checking =====
 
===== Type Checking =====
Line 357: Line 350:
 
* [[Core Function Walk|Walk( <array>, <function> )]] -- Walk through the arrays items and execute a user defined function on each one
 
* [[Core Function Walk|Walk( <array>, <function> )]] -- Walk through the arrays items and execute a user defined function on each one
 
* [[Core Function Rev|Rev( <array> )]] -- Returns a new array consisting of the reverse of another array
 
* [[Core Function Rev|Rev( <array> )]] -- Returns a new array consisting of the reverse of another array
* [[Core Function Each|Each( <array> )]] -- Get hash key/value pair and return them as a 2 element array and each time the function is called get the next key/value pair
 
 
* [[Core Function IsKeySet|IsKeySet( <array>, <key> )]] -- Check if given key exists within an array
 
* [[Core Function IsKeySet|IsKeySet( <array>, <key> )]] -- Check if given key exists within an array
 
* [[Core Function Keys|Keys( <array> )]] -- Create an array containing all KEYS from an array
 
* [[Core Function Keys|Keys( <array> )]] -- Create an array containing all KEYS from an array

Revision as of 09:51, 1 September 2013

Contents

Function Reference

How to create a Function

To create your own funtions see the Function page.

Core Functions

If a link is red (unclickable) the function either doesnt exist yet and is pending creation or it has been created but does not yet have a page/example.

Language Features

Console Functions

Multi-Threading Functions

Variable Type Conversions

Common Variable Functions

Misc
Type Checking
Get Type Directly

Binary Data Management Functions

Binary Memory Stream Management Functions

Math Functions

String Functions

Array Functions

Enum Functions

Process Functions

Environment Management

File Functions

File Create/Read/Write Functions
Misc
Dialogs

Directory Functions

Dialogs

Path Functions

Network Functions

HTTP Functions
MySQL Functions
Sputnik Client/Server Functions (This is just for connecting Sputnik Clients to Sputnik Servers nothing else)
Raw Sockets (TCP/UDP etc)
Misc Network Functions

Memory Functions

Clipboard Functions

Registry Functions

GUI Functions

Dialog Creation Functions
Control Creation Functions
NOT AVAILABLE YET
Window/Control Properties Get/Set Functions

Note - Any options not here are most likely found using GUIGetProp and GUISetProp the bulk of all props can be found/used in them 2 funtions however anything special and not generic will go in the functions below.

Common Dialog/Control Properties Get/Set Functions
GUI Link (Event) Functions
Other GUI Functions

Bitmap Functions

Keyboard Control Functions

Mouse Control Functions

Window Management Functions

(For info on using <title>, <text> See Window Titles and Text (Advanced) )

Controls

(For info on using <title>, <text> See Window Titles and Text (Advanced) )

NOT AVAILABLE YET

Graphics/Pixel Functions

Misc Functions

User Defined Functions

These functions are created using Sputnik and are not part of the Sputnik core language.

Personal tools
Namespaces
Variants
Actions
Navigation
Toolbox