MS4BIĀ®

MS4BI HELP 2022

by MS4script
01-Introduction
Preface & Copyright
Getting started
Informations + Cmd/param Server
Demos Simple
02- Declarations
Structure
Type
03- Instructions
Conditions if,do,while..
Char/Text functions Char or Text..()
Get + Include functions Get, Include..
String functions String# (hashtag)
Date-Time Day, Time, Year.
Display
Call
Formulas Complex
04- Database
Connector Ado, Odbc, Dsn, SAP, Ms4
DB Connect Create, delete
Import DataSource Import, Consolidation
Administration Admin, User
05- Sql-Query
Sql
Query Form : BTS,Plus
Grid option
06- Charts
Forms Plus, Win, Image, Excel, Morris...
Pie Std, Donut, 3D...
Bar Std, Stack, Line, Area, Plot
Radar
QrCode, Gauge
Step, Stock...
,Google,Leaflet... GeoMap
,Gantt,Timeline,Org.
DrawWindow [web]
07- Dashboard
Form tab, no tab
Responsive UI
08- Report
Report Hierarchy
Report Design
09- Filters
Dialogue + Call
10- Menus
Menu Design
Menu Frameset
Menu Custom
11-UI : Responsive
Tables Responsive,Frame,position
List Group
Text
Panel Header, body, Footer
Button Button, Progress Bar
Icon & Button
Collapse Group, Panel
Notifications
12- Encryption
Encrypt
Decrypt
13- Windows
Dialogue
Picture, Frame, Button..
MsgBox
Grid

Designer

00-OverView
01-Transaction
02-Setting
05-Import
10-Formula
15-Report-Part1
16-Report-Part2
20-Query-Part1
21-Query-Part2
25-Report-Query-Style
30-QrCodeImage
31-Windows
32-Frame
40-TabStrip
50-Collapse
60-BeginForm
63-Input-SubmitBox
70-Input-Select
71-Input-Insert
72-Input-Update
73-Input-Delete
75-Input-Query
77-ListComBo
81-Button-Link
82-Button-DataList
86-Sticky-Label
91-Insert-PhpJsHtml
92-Insert-MS4script
15- Css, html, Php, js.
Insert Native language Begin_sw..End_Sw
16-Install + tools.
Installation & Configuration This Menu
Generate Native... Php, Html, js..
Code Generator Ms4 Script
MarkDown Ms4 Script
Source Code Menu Help This Menu
written with ms4script
      

BASIC HELP : MS4BI by MS4script

2022 version 1.10

Chapter 2: DECLARATION STRUCTURE

KEYWORD : none

Definition

Create a script with no program structure (optional)

Syntax

  
	 
			instructions ;
	 	
	

Example

  	
       	INTEGER :  i:=105 ;
		TEXT: stext1:= "MgPlanete";
		LONG : i2 :=2000000;
  
		display "  i :",i;
		display " stext1 :",stext1;
		display "  i2:",i2 ;
		enter;
	 	

Pre-requisites

none

Remarks

Not case sensitive



KEYWORD: BEGIN..END

Definition

Create a script with a simple blocked programming structure (optional)

Syntax

  
	       BEGIN
			  instructions.. 
	 	   END ; 
	

Example

  	
       	INTEGER :  i:=105 ;
		TEXT: stext1:= "MgPlanete";
		LONG : i2 :=2000000;
     BEGIN /* display bloc 1 ..*/
		display "  i :",i;
		display " stext1 :",stext1;
		display "  i2:",i2 ;
		enter;
	 END;	
	 	

Pre-requisites

None

Remarks

Not case sensitive



KEYWORD : BEGIN_Main END_Main

Definition

Create a structured MS4SCRIPT script: Call the following structures: global , begin_main , Function, Procedure.. (optional)

Syntax

  
	GLOBAL
	    declare..
	END_GLOBAL
	BEGIN_Main
        instructions..  	
	END_Main
	
	
	
	

Example

  	
    GLOBAL
    
		INTEGER :  i:=105 ;
		TEXT: stext1:= "MgPlanete";
		LONG : i2 :=2000000;
	END_Global

	BEGIN_Main
 
		display "  i :",i;
		display " stext1 :",stext1;
		display "  i2:",i2 ;
		enter;
	END_Main

   
	
	

Pre-requisites

Global .. End_global

Remarks

Not case sensitive



KEYWORD : FUNC(..)

Definition

Create a structured MS4SCRIPT script. Call the following structures: global, begin_main, Procedure.. (optional)

Syntax

  
	GLOBAL
	    declare..
	END_GLOBAL
	BEGIN_Main
        instructions..  
          function-name  return (var1,var2,varn..);		
	END_Main
	Func Name(var1,var2.. or void)
 
	begin_func
		local
			declare..
		end_local
			instructions..  
	 
	end_func
	
	
	

Example

  	
GLOBAL
    
 	INTEGER :  i:=105 ;
	TEXT: stext1;
	LONG : i2 ;
END_Global

BEGIN_Main

	RanDomInt(void ) return  (i,stext1,i2);
  	display " ";
	display " return i :",i;
	display " return stext1 :",stext1;
	display " return i2:",i2 ;
	enter;
END_Main
 

func  RanDomInt(void)
begin_func
local
integer : y   :=99   ;
long : y2      :=4310212  ;
TEXT : localText :="MgPlanete" ;
end_local
  display "before Local y :",y ;
    y := Random();

    display "After Local y : ",y ;
    display "After Local localText : ",localText;
return y ,localText,y2; 
end_func

   
	
	

Pre-requisites

Global .. End_global begin_main..end_main or perform ..exit

Remarks

Not case sensitive. The Return instruction can return up to 99 variables of all types (char,integer, long..)



KEYWORD : PROC (..)

Definition

Create a structured MS4SCRIPT script. Call the following structures: global , begin_main , Function, Procedure.. (optional)

Syntax

  
	GLOBAL
	    declare..
	END_GLOBAL
	BEGIN_Main
        instructions..  
          proc-name  return (var1,var2,varn..);		
	END_Main
	PROC Name(var1,var2.. or void)
 	begin_proc
		local
			declare..
		end_local
			instructions..  
 	end_proc
	
	
	

Example

  	
 GLOBAL 
 	CHAR : Msgframe1:255,Msgframe2:255, Gnumber:6; 
	INTEGER :X,I,ystop;
    INTEGER : Inverse := 1,Noinverse :=0 ;
End_Global

Begin_Main
	Screen_PRESENTATION(Void) ;
End_Main

PROC Screen_PRESENTATION(Void)
begin_proc
	LOCAL
		CHAR  : PostalAddress:512 := " $n  $n   
        	$n Rue Robert Caumont Immeuble P
			$n Les bureaux du lac II   
        	$n 75001 Paris $n FRANCE  ";
		INTEGER : Exit_TRANS1 :=0; 
		LONG : Color1 ;
  
	End_Local
.. instructions..
end_proc
   
	
	

Pre-requisites

Global .. End_global begin_main..end_main or perform ..exit

Remarks

Not case-sensitive RETURN instruction not permitted
Returns nothing


KEYWORD : PERFORM ....EXIT ;

Definition

Create a structured MS4SCRIPT script: Call the following Perform...Exit : Function, Procedure..

Syntax

  
	    instructions.. 
       PERFORM func or PRoc(var1,var2.. or void)..		
		instructions.. 
			EXIT ;
			
	PROC or FUNC Name(var1,var2.. or void)
 	begin_...
		local
			declare..
		end_local
			instructions..  
 	end_...
	
	
	

Example

  	
    Perform InsertTable(void);
	Exit ;
	
	proc InsertTable(void)
	begin_proc	
	** For example !
  
		DBconnect{Ms4DB}(LEnvDemoExcelDB); 
		TableExist{ms4db}("TABEXAMPLE") Return  ( msgsql) ; /* 2 return codes : TRUE or FALSE */
	 		if ( msgsql = TRUE) then Ms4_sql{ms4db} ( " Drop  Table  [TABEXAMPLE] "); end_if ;
	
		Ms4_SQL{ms4DB}("CREATE TABLE [TABEXAMPLE] "+ 
		"(      [INDEXID] TEXT,"+ 
		"       [LONGSTRING] char(1024),"+ 
		"       PRIMARY KEY (`INDEXID`) )");  
 
		Ms4_SQL{ms4DB}("INSERT INTO TABEXAMPLE VALUES('INDEX0','%s')",GeoMapRef[0].stringval);
		Ms4_SQL{ms4DB}("INSERT INTO TABEXAMPLE VALUES('INDEX1','%s')",GeoMapRef[1].stringval);
		Ms4_SQL{ms4DB}("INSERT INTO TABEXAMPLE VALUES('INDEX2','%s')",GeoMapRef[2].stringval);
	  ...
	 end_proc 
   
	
	

Pre-requisites

none

Remarks

Not case sensitive



Interested in joining us? contact@mgplanete.com
The Mg Planete team


Copyright 2022 by Mandragore Planete

the official sites :
mgplanete.com
getms4bi.com
demos.ms4bi.com
help.ms4bi.com
ms4script.com

Download

official site :
getms4bi.com

Our purpose : Keep it simple !


written with ms4script
  • help 01.010.2022.8

MS4BI in 5 minutes