Skip to content

Commit

Permalink
A few minor fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
MattFryer committed Feb 9, 2018
1 parent d17e307 commit f272116
Showing 1 changed file with 11 additions and 10 deletions.
21 changes: 11 additions & 10 deletions tools/test_script.qvs
Original file line number Diff line number Diff line change
Expand Up @@ -169,7 +169,8 @@ InDayToTime()
Index()
InLunarWeek()
InLunarWeekToDate()
InMonth InMonths()
InMonth()
InMonths()
InMonthsToDate()
InMonthToDate()
Input()
Expand Down Expand Up @@ -487,14 +488,10 @@ SQL SELECT * FROM table;
// Other Loads
//*************************************************************************

//UN-NAMED LOAD - This won't appear in the function list
LOAD *
FROM SQL SELECT * FROM MyTable;

//VARIABLES IN A LOAD
MyTable:
LOAD
text(Field1) & ' this string' AS Field1,
text(Field1) & ' this string' AS Field1,
Field2
RESIDENT MyMapTable;

Expand Down Expand Up @@ -588,7 +585,7 @@ CALL MySubroutine (100);
IF x=y AND a=b THEN
//Do something
LET a = b;
ELSEIF x>y THEN
ELSEIF x>y THEN
//Do something
LET a = b;
ELSE
Expand Down Expand Up @@ -625,11 +622,16 @@ NEXT

// Do While loop
SET a = 1;
DO WHILE a < 100 // Do something LET a = a + 1; LOOP // Do Until Loop SET a = 1; DO UNTIL a > 100
DO WHILE a = 100 // Do something LET a = a + 1; LOOP // Do Until Loop SET a = 1; DO UNTIL a > 100
// Do something
LET a = a + 1;
LOOP UNTIL a = 5

DO UNTIL a > b
// Do something
EXIT DO;
LOOP WHILE c = 100;

//*************************************************************************
// Other Statements
//*************************************************************************
Expand All @@ -639,15 +641,14 @@ DROP TABLE MyTable;
DROP TABLES MyTable, MyTable1, MyTable2;
DROP FIELD Field1;
DROP FIELDS Field1, Field2, Field3;
DROP FIELD Field1 FROM MyTable1;

// Rename Statements
RENAME TABLE MyTable TO MyTableX;
RENAME FIELD Field1 TO FieldX;

// Store Statements
STORE MyTable INTO qvds/MyTable.qvw (qvd);
STORE MyTable2
INTO qvds/MyTable2.qvw (qvd);
STORE MyTable_$(vMyVariable) INTO qvds/MyTable-$(vMyVariable).qvw (qvd);

// Qualify Statements
Expand Down

0 comments on commit f272116

Please sign in to comment.