Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
H
hangzhoutd2bdsproject
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wangguangchao
hangzhoutd2bdsproject
Commits
443b6946
Commit
443b6946
authored
Oct 19, 2021
by
liushikai
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
cacheRead String类型方法修改
parent
3dbed902
Hide whitespace changes
Inline
Side-by-side
Showing
21 changed files
with
107 additions
and
35 deletions
+107
-35
stgmod.0004.script
script/stgmod.0004.script
+4
-1
stgmod.0005.script
script/stgmod.0005.script
+12
-4
stgmod.0006.script
script/stgmod.0006.script
+3
-1
stgmod.0008.script
script/stgmod.0008.script
+15
-5
stgmod.0011.script
script/stgmod.0011.script
+3
-1
stgmod.0014.script
script/stgmod.0014.script
+3
-1
stgmod.0016.script
script/stgmod.0016.script
+3
-1
stgmod.0021.script
script/stgmod.0021.script
+16
-5
svsmod.0004.script
script/svsmod.0004.script
+3
-1
sysmod.0106.script
script/sysmod.0106.script
+3
-1
sysmod.0110.script
script/sysmod.0110.script
+3
-1
sysmod.0111.script
script/sysmod.0111.script
+3
-1
sysmod.0120.script
script/sysmod.0120.script
+3
-1
sysmod.0177.script
script/sysmod.0177.script
+3
-1
sysmod.0190.script
script/sysmod.0190.script
+3
-1
sysmod.0259.script
script/sysmod.0259.script
+3
-1
sysmod.0285.script
script/sysmod.0285.script
+3
-1
sysmod.0299.script
script/sysmod.0299.script
+3
-1
sysmod.0336.script
script/sysmod.0336.script
+12
-4
syspth.0028.script
script/syspth.0028.script
+3
-1
syswrn.0019.script
script/syswrn.0019.script
+3
-1
No files found.
script/stgmod.0004.script
View file @
443b6946
...
@@ -4,7 +4,9 @@ void gridSetValues(IDatafield argstg,String argtds)
...
@@ -4,7 +4,9 @@ void gridSetValues(IDatafield argstg,String argtds)
//! ArgStg
//! ArgStg
//! ArgTds Tdsname to identify the configuration used to load the stream
//! ArgTds Tdsname to identify the configuration used to load the stream
String stgVal = "";
String stgVal = "";
Platform.cacheRead( stgVal, "stgmod", argtds, "StreamGridValues" );
Argument<String> stgValBox=new Argument<>("","");
Platform.cacheRead( stgValBox, "stgmod", argtds, "StreamGridValues" );
stgVal=stgValBox.value;
Platform.setFieldValue( argstg, stgVal );
Platform.setFieldValue( argstg, stgVal );
}
}
\ No newline at end of file
script/stgmod.0005.script
View file @
443b6946
...
@@ -7,13 +7,17 @@ String gridGetSql(String argtds,IModule argrec,String argaddtbl,String argcon,St
...
@@ -7,13 +7,17 @@ String gridGetSql(String argtds,IModule argrec,String argaddtbl,String argcon,St
//! ArgCon holds the condition to select the fitting entries
//! ArgCon holds the condition to select the fitting entries
//! ArgOrder holds an optional order specification as list of comma separated fieldinstances
//! ArgOrder holds an optional order specification as list of comma separated fieldinstances
String sqlFld = "";
String sqlFld = "";
Platform.cacheRead( sqlFld, "stgmod", argtds, "SqlSelectFields" );
Argument<String> sqlFldBox=new Argument<>("","");
Platform.cacheRead( sqlFldBox, "stgmod", argtds, "SqlSelectFields" );
sqlFld=sqlFldBox.value;
if( Platform.errorCode() > 0 )
if( Platform.errorCode() > 0 )
{
{
Platform.sysDump( Platform.formatText( "STGMOD.GridGetSql: tds id '$1' is not yet defined with GridCfgStore.", argtds ) );
Platform.sysDump( Platform.formatText( "STGMOD.GridGetSql: tds id '$1' is not yet defined with GridCfgStore.", argtds ) );
}
}
String sqlTbl = "";
String sqlTbl = "";
Platform.cacheRead( sqlTbl, "stgmod", argtds, "SqlSelectTables" );
Argument<String> sqlTblBox=new Argument<>("","");
Platform.cacheRead( sqlTblBox, "stgmod", argtds, "SqlSelectTables" );
sqlTbl=sqlTblBox.value;
String argTbl = NULLSTR;
String argTbl = NULLSTR;
if( ! Platform.isEmpty( argaddtbl ) )
if( ! Platform.isEmpty( argaddtbl ) )
{
{
...
@@ -34,7 +38,9 @@ String gridGetSql(String argtds,IModule argrec,String argaddtbl,String argcon,St
...
@@ -34,7 +38,9 @@ String gridGetSql(String argtds,IModule argrec,String argaddtbl,String argcon,St
String sql = "select " + sqlFld + " from " + sqlTbl + " ";
String sql = "select " + sqlFld + " from " + sqlTbl + " ";
String conDel = " where ";
String conDel = " where ";
String sqlCon = "";
String sqlCon = "";
Platform.cacheRead( sqlCon, "stgmod", argtds, "SqlSelectCondition" );
Argument<String> sqlConBox=new Argument<>("","");
Platform.cacheRead( sqlConBox, "stgmod", argtds, "SqlSelectCondition" );
sqlCon=sqlConBox.value;
if( ! Platform.isEmpty( sqlCon ) )
if( ! Platform.isEmpty( sqlCon ) )
{
{
sql = sql + conDel + sqlCon;
sql = sql + conDel + sqlCon;
...
@@ -56,7 +62,9 @@ String gridGetSql(String argtds,IModule argrec,String argaddtbl,String argcon,St
...
@@ -56,7 +62,9 @@ String gridGetSql(String argtds,IModule argrec,String argaddtbl,String argcon,St
int ignore = 0;
int ignore = 0;
if( Platform.isEmpty( sqlOrd ) )
if( Platform.isEmpty( sqlOrd ) )
{
{
Platform.cacheRead( sqlOrd, "stgmod", argtds, "SqlSelectOrder" );
Argument<String> sqlOrdBox=new Argument<>("","");
Platform.cacheRead( sqlOrdBox, "stgmod", argtds, "SqlSelectOrder" );
sqlOrd=sqlOrdBox.value;
ignore = Platform.errorCode();
ignore = Platform.errorCode();
}
}
if( ! Platform.isEmpty( sqlOrd ) )
if( ! Platform.isEmpty( sqlOrd ) )
...
...
script/stgmod.0006.script
View file @
443b6946
...
@@ -78,7 +78,9 @@ void gridEtyLoad(IStream argstg,String argtds,IModule argrec,String argetyins,St
...
@@ -78,7 +78,9 @@ void gridEtyLoad(IStream argstg,String argtds,IModule argrec,String argetyins,St
// reset MaxStepCount to old value
// reset MaxStepCount to old value
Platform.setContext( tdContextMAXSTEPCOUNT, -1, true );
Platform.setContext( tdContextMAXSTEPCOUNT, -1, true );
String pstFkt = "";
String pstFkt = "";
Platform.cacheRead( pstFkt, "stgmod", argtds, "Postprocessing" );
Argument<String> pstFktBox=new Argument<>("","");
Platform.cacheRead( pstFktBox, "stgmod", argtds, "Postprocessing" );
pstFkt=pstFktBox.value;
String modPth = NULLSTR;
String modPth = NULLSTR;
if( Platform.errorCode() != tdCacheNotFound )
if( Platform.errorCode() != tdCacheNotFound )
{
{
...
...
script/stgmod.0008.script
View file @
443b6946
...
@@ -53,15 +53,25 @@ void gridEtySelect(IModule argrec,String argtds,String argcon,String argorder)
...
@@ -53,15 +53,25 @@ void gridEtySelect(IModule argrec,String argtds,String argcon,String argorder)
grdTop = "";
grdTop = "";
grdLft = "";
grdLft = "";
grdWth = "";
grdWth = "";
Platform.cacheRead( grdHea, "stgmod", argtds, "FormCaption" );
Argument<String> grdHeaBox=new Argument<>("","");
Platform.cacheRead( grdHeaBox, "stgmod", argtds, "FormCaption" );
grdHea=grdHeaBox.value;
ignore = Platform.errorCode();
ignore = Platform.errorCode();
Platform.cacheRead( grdLft, "stgmod", argtds, "Grid-Left" );
Argument<String> grdLftBox=new Argument<>("","");
Platform.cacheRead( grdLftBox, "stgmod", argtds, "Grid-Left" );
grdLft=grdLftBox.value;
ignore = Platform.errorCode();
ignore = Platform.errorCode();
Platform.cacheRead( grdTop, "stgmod", argtds, "Grid-Top" );
Argument<String> grdTopBox=new Argument<>("","");
Platform.cacheRead( grdTopBox, "stgmod", argtds, "Grid-Top" );
grdTop=grdTopBox.value;
ignore = Platform.errorCode();
ignore = Platform.errorCode();
Platform.cacheRead( grdWth, "stgmod", argtds, "Grid-Width" );
Argument<String> grdWthBox=new Argument<>("","");
Platform.cacheRead( grdWthBox, "stgmod", argtds, "Grid-Width" );
grdWth=grdWthBox.value;
ignore = Platform.errorCode();
ignore = Platform.errorCode();
Platform.cacheRead( grdVal, "stgmod", argtds, "StreamGridValues" );
Argument<String> grdValBox=new Argument<>("","");
Platform.cacheRead( grdValBox, "stgmod", argtds, "StreamGridValues" );
grdVal=grdValBox.value;
ignore = Platform.errorCode();
ignore = Platform.errorCode();
que = Platform.promptStream( stgStm, grdHea, grdVal, Platform.parseInt( grdLft ), Platform.parseInt( grdTop ) );
que = Platform.promptStream( stgStm, grdHea, grdVal, Platform.parseInt( grdLft ), Platform.parseInt( grdTop ) );
if( Platform.isEmpty( que ) )
if( Platform.isEmpty( que ) )
...
...
script/stgmod.0011.script
View file @
443b6946
...
@@ -3,7 +3,9 @@ boolean gridIsConfigured(String argtds)
...
@@ -3,7 +3,9 @@ boolean gridIsConfigured(String argtds)
//! routine to check whether a tdsname is configured
//! routine to check whether a tdsname is configured
//! ArgTds Tdsname to identify the configuration used to load the stream
//! ArgTds Tdsname to identify the configuration used to load the stream
String stgVal = "";
String stgVal = "";
Platform.cacheRead( stgVal, "stgmod", argtds, "StreamGridValues" );
Argument<String> stgValBox=new Argument<>("","");
Platform.cacheRead( stgValBox, "stgmod", argtds, "StreamGridValues" );
stgVal=stgValBox.value;
if( Platform.errorCode() > 0 )
if( Platform.errorCode() > 0 )
{
{
return false;
return false;
...
...
script/stgmod.0014.script
View file @
443b6946
...
@@ -74,7 +74,9 @@ void gridCfgStore(String argtds)
...
@@ -74,7 +74,9 @@ void gridCfgStore(String argtds)
Platform.cacheWrite( conSql, "stgmod", argtds, "SqlSelectCondition" );
Platform.cacheWrite( conSql, "stgmod", argtds, "SqlSelectCondition" );
// check whether a default order is defined
// check whether a default order is defined
String defSrt = "";
String defSrt = "";
Platform.cacheRead( defSrt, "stgmod", argtds, "SqlSelectOrder" );
Argument<String> defSrtBox=new Argument<>("","");
Platform.cacheRead( defSrtBox, "stgmod", argtds, "SqlSelectOrder" );
defSrt=defSrtBox.value;
int max = 0;
int max = 0;
int idx = 0;
int idx = 0;
int fldIdx = 0;
int fldIdx = 0;
...
...
script/stgmod.0016.script
View file @
443b6946
...
@@ -5,7 +5,9 @@ void gridLoadLinks(IStream argstg,String argtds)
...
@@ -5,7 +5,9 @@ void gridLoadLinks(IStream argstg,String argtds)
//! ArgTds Tdsname to identify the configuration used to load the stream
//! ArgTds Tdsname to identify the configuration used to load the stream
// Execute access to defined link fields
// Execute access to defined link fields
String lnkTxt = "";
String lnkTxt = "";
Platform.cacheRead( lnkTxt, "stgmod", argtds, "SqlLinks" );
Argument<String> lnkTxtBox=new Argument<>("","");
Platform.cacheRead( lnkTxtBox, "stgmod", argtds, "SqlLinks" );
lnkTxt=lnkTxtBox.value;
int grdMax = 0;
int grdMax = 0;
IStream lnkStm = new StreamImpl();
IStream lnkStm = new StreamImpl();
int fldMax = 0;
int fldMax = 0;
...
...
script/stgmod.0021.script
View file @
443b6946
...
@@ -44,16 +44,27 @@ void gridEtySelectofBch(IModule argrec,String argtds,String argcon,String argord
...
@@ -44,16 +44,27 @@ void gridEtySelectofBch(IModule argrec,String argtds,String argcon,String argord
grdTop = "";
grdTop = "";
grdLft = "";
grdLft = "";
grdWth = "";
grdWth = "";
Platform.cacheRead( grdHea, "stgmod", argtds, "FormCaption" );
Argument<String> grdHeaBox=new Argument<>("","");
Platform.cacheRead( grdHeaBox, "stgmod", argtds, "FormCaption" );
grdHea=grdHeaBox.value;
ignore = Platform.errorCode();
ignore = Platform.errorCode();
Platform.cacheRead( grdLft, "stgmod", argtds, "Grid-Left" );
Argument<String> grdLftBox=new Argument<>("","");
Platform.cacheRead( grdLftBox, "stgmod", argtds, "Grid-Left" );
grdLft=grdLftBox.value;
ignore = Platform.errorCode();
ignore = Platform.errorCode();
Platform.cacheRead( grdTop, "stgmod", argtds, "Grid-Top" );
Argument<String> grdTopBox=new Argument<>("","");
Platform.cacheRead( grdTopBox, "stgmod", argtds, "Grid-Top" );
grdTop=grdTopBox.value;
ignore = Platform.errorCode();
ignore = Platform.errorCode();
Platform.cacheRead( grdWth, "stgmod", argtds, "Grid-Width" );
Argument<String> grdWthBox=new Argument<>("","");
Platform.cacheRead( grdWthBox, "stgmod", argtds, "Grid-Width" );
grdWth=grdWthBox.value;
ignore = Platform.errorCode();
ignore = Platform.errorCode();
Platform.cacheRead( grdVal, "stgmod", argtds, "StreamGridValues" );
Argument<String> grdValBox=new Argument<>("","");
Platform.cacheRead( grdValBox, "stgmod", argtds, "StreamGridValues" );
grdVal=grdValBox.value;
ignore = Platform.errorCode();
ignore = Platform.errorCode();
que = Platform.promptStream( stgStm, grdHea, grdVal, Platform.parseInt( grdLft ), Platform.parseInt( grdTop ) );
que = Platform.promptStream( stgStm, grdHea, grdVal, Platform.parseInt( grdLft ), Platform.parseInt( grdTop ) );
if( Platform.isEmpty( que ) )
if( Platform.isEmpty( que ) )
{
{
...
...
script/svsmod.0004.script
View file @
443b6946
...
@@ -50,7 +50,9 @@ String svsGetFieldContent(String fieldname,String savetype)
...
@@ -50,7 +50,9 @@ String svsGetFieldContent(String fieldname,String savetype)
**/
**/
fldPth = Platform.getAttributeText( field, tdAttrFullName );
fldPth = Platform.getAttributeText( field, tdAttrFullName );
fld = "";
fld = "";
Platform.cacheRead( fld, "DATMOD", Platform.getTransName(), Platform.toUpper( fldPth ) );
Argument<String> fldBox=new Argument<>("","");
Platform.cacheRead( fldBox, "DATMOD", Platform.getTransName(), Platform.toUpper( fldPth ) );
fld=fldBox.value;
if( Platform.errorCode() != tdCacheNotFound )
if( Platform.errorCode() != tdCacheNotFound )
{
{
content = "D" + Platform.format( date, "YYYY-MM-DD" );
content = "D" + Platform.format( date, "YYYY-MM-DD" );
...
...
script/sysmod.0106.script
View file @
443b6946
...
@@ -34,7 +34,9 @@ static String sdbEtyGetInsEtyFlg(IModule argrec,String argtbl)
...
@@ -34,7 +34,9 @@ static String sdbEtyGetInsEtyFlg(IModule argrec,String argtbl)
}
}
// preset the return value to empty
// preset the return value to empty
String rtn = "";
String rtn = "";
Platform.cacheRead( rtn, "sysmod.EtyFlg", tbl );
Argument<String> rtnBox=new Argument<>("","");
Platform.cacheRead( rtnBox, "sysmod.EtyFlg", tbl );
rtn=rtnBox.value;
String chk = NULLSTR;
String chk = NULLSTR;
IDatafield fld = null;
IDatafield fld = null;
if( Platform.errorCode() == tdCacheNotFound )
if( Platform.errorCode() == tdCacheNotFound )
...
...
script/sysmod.0110.script
View file @
443b6946
...
@@ -3,7 +3,9 @@ String getHlpTrn()
...
@@ -3,7 +3,9 @@ String getHlpTrn()
//! Function to return the contents of transaction name to be used on access to table HLP
//! Function to return the contents of transaction name to be used on access to table HLP
// return the ID in capital letters
// return the ID in capital letters
String trn = Platform.getTransName();
String trn = Platform.getTransName();
Platform.cacheRead( trn, "HLP.TRN" );
Argument<String> trnBox=new Argument<>("","");
Platform.cacheRead( trnBox, "HLP.TRN" );
trn=trnBox.value;
int ignore = Platform.errorCode();
int ignore = Platform.errorCode();
return Platform.toUpper( trn );
return Platform.toUpper( trn );
...
...
script/sysmod.0111.script
View file @
443b6946
...
@@ -2,7 +2,9 @@ String getHlpAddPfx()
...
@@ -2,7 +2,9 @@ String getHlpAddPfx()
{
{
//! Function to return the contents of an optional prefix to be used
//! Function to return the contents of an optional prefix to be used
String pfx = "";
String pfx = "";
Platform.cacheRead( pfx, "HLP.PFX" );
Argument<String> pfxBox=new Argument<>("","");
Platform.cacheRead( pfxBox, "HLP.PFX" );
pfx=pfxBox.value;
if( Platform.errorCode() == 0 )
if( Platform.errorCode() == 0 )
{
{
if( ! Platform.isEmpty( pfx ) && Platform.compareTo(Platform.mid( pfx, 1, 1 ), "\\") != 0 )
if( ! Platform.isEmpty( pfx ) && Platform.compareTo(Platform.mid( pfx, 1, 1 ), "\\") != 0 )
...
...
script/sysmod.0120.script
View file @
443b6946
...
@@ -52,7 +52,9 @@ static String getFieldDesc(String argfld,String argtbl,String arguil)
...
@@ -52,7 +52,9 @@ static String getFieldDesc(String argfld,String argtbl,String arguil)
seaPth = Platform.mid( seaPth, 1, beg - 1 ) + Platform.mid( seaPth, beg + len );
seaPth = Platform.mid( seaPth, 1, beg - 1 ) + Platform.mid( seaPth, beg + len );
}
}
String txt = "";
String txt = "";
Platform.cacheRead( txt, "FldDsc", uil, tbl, seaPth, fld );
Argument<String> txtBox=new Argument<>("","");
Platform.cacheRead( txtBox, "FldDsc", uil, tbl, seaPth, fld );
txt=txtBox.value;
IStream keyList = new StreamImpl();
IStream keyList = new StreamImpl();
int idx = 0;
int idx = 0;
String lin = NULLSTR;
String lin = NULLSTR;
...
...
script/sysmod.0177.script
View file @
443b6946
...
@@ -3,7 +3,9 @@ String getHlpPkg()
...
@@ -3,7 +3,9 @@ String getHlpPkg()
//! Function to return the contents of KEY1 (=Pakage) in table HLP
//! Function to return the contents of KEY1 (=Pakage) in table HLP
// return the ID in capital letters
// return the ID in capital letters
String pkg = "DOK";
String pkg = "DOK";
Platform.cacheRead( pkg, "HLP.PKG" );
Argument<String> pkgBox=new Argument<>("","");
Platform.cacheRead( pkgBox, "HLP.PKG" );
pkg=pkgBox.value;
int ignore = Platform.errorCode();
int ignore = Platform.errorCode();
return pkg;
return pkg;
...
...
script/sysmod.0190.script
View file @
443b6946
...
@@ -12,7 +12,9 @@ void dbCommitStateCheck()
...
@@ -12,7 +12,9 @@ void dbCommitStateCheck()
comStaOld = "";
comStaOld = "";
msg = "";
msg = "";
// reload the original commit state as on the call to DbCommitStateSave
// reload the original commit state as on the call to DbCommitStateSave
Platform.cacheRead( comStaOld, "SYSMOD_COMMIT", tdContextDBTransactionInfo );
Argument<String> comStaOldBox=new Argument<>("","");
Platform.cacheRead( comStaOldBox, "SYSMOD_COMMIT", tdContextDBTransactionInfo );
comStaOld=comStaOldBox.value;
if( Platform.errorCode() == tdCacheNotFound )
if( Platform.errorCode() == tdCacheNotFound )
{
{
msg = "DbCommitStateCheck: Check of the DB-transaction issued without previously saved status info.\nA call to DbCommitStateSave is missing";
msg = "DbCommitStateCheck: Check of the DB-transaction issued without previously saved status info.\nA call to DbCommitStateSave is missing";
...
...
script/sysmod.0259.script
View file @
443b6946
...
@@ -4,7 +4,9 @@ static String cacheIniRead(String ini,String sec,String entry)
...
@@ -4,7 +4,9 @@ static String cacheIniRead(String ini,String sec,String entry)
String iniNam = Platform.toLower( ini );
String iniNam = Platform.toLower( ini );
sec = Platform.toLower( sec );
sec = Platform.toLower( sec );
entry = Platform.toLower( entry );
entry = Platform.toLower( entry );
Platform.cacheRead( value, iniNam, sec, entry );
Argument<String> valueBox=new Argument<>("","");
Platform.cacheRead( valueBox, iniNam, sec, entry );
value=valueBox.value;
if( Platform.errorCode() > 0 )
if( Platform.errorCode() > 0 )
{
{
value = Platform.getIniStr( iniNam, sec, entry );
value = Platform.getIniStr( iniNam, sec, entry );
...
...
script/sysmod.0285.script
View file @
443b6946
...
@@ -4,7 +4,9 @@ static String cacheIniReadBlock(String ini,String sec,String entry)
...
@@ -4,7 +4,9 @@ static String cacheIniReadBlock(String ini,String sec,String entry)
String iniNam = Platform.toLower( ini );
String iniNam = Platform.toLower( ini );
sec = Platform.toLower( sec );
sec = Platform.toLower( sec );
entry = Platform.toLower( entry );
entry = Platform.toLower( entry );
Platform.cacheRead( value, iniNam, sec, entry );
Argument<String> valueBox=new Argument<>("","");
Platform.cacheRead( valueBox, iniNam, sec, entry );
value=valueBox.value;
if( Platform.errorCode() > 0 )
if( Platform.errorCode() > 0 )
{
{
value = Platform.getIniBlock( iniNam, sec, entry );
value = Platform.getIniBlock( iniNam, sec, entry );
...
...
script/sysmod.0299.script
View file @
443b6946
...
@@ -6,7 +6,9 @@ String getBchFields(String argfld,String whrsql)
...
@@ -6,7 +6,9 @@ String getBchFields(String argfld,String whrsql)
int err = 0;
int err = 0;
if( ! Platform.isEmpty( argfld ) )
if( ! Platform.isEmpty( argfld ) )
{
{
Platform.cacheRead( fldval, "BCHVALUE", argfld, "SQL", whrsql );
Argument<String> fldvalBox=new Argument<>("","");
Platform.cacheRead( fldvalBox, "BCHVALUE", argfld, "SQL", whrsql );
fldval=fldvalBox.value;
if( Platform.errorCode() > 0 )
if( Platform.errorCode() > 0 )
{
{
sql = "SELECT " + argfld + " FROM BCH " + whrsql;
sql = "SELECT " + argfld + " FROM BCH " + whrsql;
...
...
script/sysmod.0336.script
View file @
443b6946
...
@@ -46,13 +46,21 @@ event $sel order 1000
...
@@ -46,13 +46,21 @@ event $sel order 1000
grdLft = "";
grdLft = "";
grdWth = "";
grdWth = "";
grdVal = Platform.toString( stgStm1 );
grdVal = Platform.toString( stgStm1 );
Platform.cacheRead( grdHea, "stgmod", "SELGB", "FormCaption" );
Argument<String> grdHeaBox=new Argument<>("","");
Platform.cacheRead( grdHeaBox, "stgmod", "SELGB", "FormCaption" );
grdHea=grdHeaBox.value;
ignore = Platform.errorCode();
ignore = Platform.errorCode();
Platform.cacheRead( grdLft, "stgmod", "SELGB", "Grid-Left" );
Argument<String> grdLftBox=new Argument<>("","");
Platform.cacheRead( grdLftBox, "stgmod", "SELGB", "Grid-Left" );
grdLft=grdLftBox.value;
ignore = Platform.errorCode();
ignore = Platform.errorCode();
Platform.cacheRead( grdTop, "stgmod", "SELGB", "Grid-Top" );
Argument<String> grdTopBox=new Argument<>("","");
Platform.cacheRead( grdTopBox, "stgmod", "SELGB", "Grid-Top" );
grdTop=grdTopBox.value;
ignore = Platform.errorCode();
ignore = Platform.errorCode();
Platform.cacheRead( grdWth, "stgmod", "SELGB", "Grid-Width" );
Argument<String> grdWthBox=new Argument<>("","");
Platform.cacheRead( grdWthBox, "stgmod", "SELGB", "Grid-Width" );
grdWth=grdWthBox.value;
ignore = Platform.errorCode();
ignore = Platform.errorCode();
count = Platform.streamCount( stgStm );
count = Platform.streamCount( stgStm );
if( count > 100 )
if( count > 100 )
...
...
script/syspth.0028.script
View file @
443b6946
...
@@ -9,7 +9,9 @@ static String cacheGetIniStr(String argfil,String argsec,String arglab)
...
@@ -9,7 +9,9 @@ static String cacheGetIniStr(String argfil,String argsec,String arglab)
String fil = Platform.toLower( argfil );
String fil = Platform.toLower( argfil );
String sec = Platform.toLower( argsec );
String sec = Platform.toLower( argsec );
String lab = Platform.toLower( arglab );
String lab = Platform.toLower( arglab );
Platform.cacheRead( rtn, "SYSPTH.CacheGetIniStr", fil + "." + sec + "." + lab );
Argument<String> rtnBox=new Argument<>("","");
Platform.cacheRead( rtnBox, "SYSPTH.CacheGetIniStr", fil + "." + sec + "." + lab );
rtn=rtnBox.value;
if( Platform.errorCode() == tdCacheNotFound )
if( Platform.errorCode() == tdCacheNotFound )
{
{
rtn = Platform.getIniStr( fil, sec, lab );
rtn = Platform.getIniStr( fil, sec, lab );
...
...
script/syswrn.0019.script
View file @
443b6946
...
@@ -3,7 +3,9 @@ String internalGetArgs()
...
@@ -3,7 +3,9 @@ String internalGetArgs()
//! Function to return the type and group prefix of the currently removed group of entries
//! Function to return the type and group prefix of the currently removed group of entries
//! The returned text holds the typliste followed by "/" and the prefix
//! The returned text holds the typliste followed by "/" and the prefix
String dbg = "";
String dbg = "";
Platform.cacheRead( dbg, "SYSWRN", "ARGS" );
Argument<String> dbgBox=new Argument<>("","");
Platform.cacheRead( dbgBox, "SYSWRN", "ARGS" );
dbg=dbgBox.value;
if( Platform.errorCode() == 0 )
if( Platform.errorCode() == 0 )
{
{
return dbg;
return dbg;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment