Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
S
sdkjs
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Boris Kocherov
sdkjs
Commits
8ecfbee5
Commit
8ecfbee5
authored
Jul 28, 2017
by
GoshaZotov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
check errors for textjoin formula
parent
b0742732
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
42 additions
and
23 deletions
+42
-23
cell/model/FormulaObjects/parserFormula.js
cell/model/FormulaObjects/parserFormula.js
+18
-3
cell/model/FormulaObjects/textanddataFunctions.js
cell/model/FormulaObjects/textanddataFunctions.js
+24
-20
No files found.
cell/model/FormulaObjects/parserFormula.js
View file @
8ecfbee5
...
...
@@ -2483,16 +2483,31 @@ parserHelp.setDigitSeparator(AscCommon.g_oDefaultCultureInfo.NumberDecimalSepara
arg
=
arg
.
getMatrix
();
for
(
var
i
=
0
;
i
<
arg
.
length
;
i
++
)
{
for
(
var
j
=
0
;
j
<
arg
[
i
].
length
;
j
++
)
{
if
(
cElementType
.
error
===
arg
[
i
][
j
].
type
){
res
=
arg
[
i
][
j
];
break
;
}
else
{
res
.
push
(
getValue
(
arg
[
i
][
j
]));
}
}
}
}
else
if
(
cElementType
.
array
===
arg
.
type
){
arg
.
foreach
(
function
(
elem
)
{
if
(
cElementType
.
error
===
elem
.
type
){
res
=
elem
;
return
;
}
else
{
res
.
push
(
getValue
(
elem
));
}
})
}
else
{
if
(
cElementType
.
error
===
arg
.
type
){
res
=
elem
;
return
;
}
else
{
res
.
push
(
getValue
(
arg
));
}
}
return
res
;
};
...
...
cell/model/FormulaObjects/textanddataFunctions.js
View file @
8ecfbee5
...
...
@@ -1816,8 +1816,11 @@
var
ignore_empty
=
argClone
[
1
].
toBool
();
var
delimiter
=
argClone
[
0
];
var
delimiterArr
=
this
.
_getOneDimensionalArray
(
delimiter
);
var
delimiterIter
=
0
;
var
delimiterArr
=
this
.
_getOneDimensionalArray
(
delimiter
);
if
(
delimiterArr
instanceof
cError
){
return
this
.
value
=
delimiterArr
;
}
var
concatString
=
function
(
string1
,
string2
){
var
res
=
string1
;
...
...
@@ -1841,28 +1844,29 @@
var
arg0
=
new
cString
(
""
),
argI
;
for
(
var
i
=
2
;
i
<
this
.
argumentsCurrent
;
i
++
)
{
argI
=
arg
[
i
];
if
(
argI
instanceof
cArea
||
argI
instanceof
cArea3D
)
{
argI
.
foreach2
(
function
(
elem
)
{
arg0
=
new
cString
(
concatString
(
arg0
.
toString
(),
elem
.
toString
()));
});
}
else
{
argI
=
argI
.
tocString
();
if
(
argI
instanceof
cError
)
{
return
this
.
value
=
argI
;
}
else
if
(
argI
instanceof
cArray
)
{
argI
.
foreach
(
function
(
elem
)
{
if
(
elem
instanceof
cError
)
{
arg0
=
elem
;
return
true
;
if
(
argI
instanceof
cArea
||
argI
instanceof
cArray
||
argI
instanceof
cArea3D
){
if
(
argI
instanceof
cArea
||
argI
instanceof
cArray
)
{
argI
=
argI
.
getMatrix
();
}
else
if
(
argI
instanceof
cArea3D
)
{
argI
=
argI
.
getMatrix
()[
0
];
}
for
(
var
n
=
0
;
n
<
argI
.
length
;
n
++
)
{
for
(
var
j
=
0
;
j
<
argI
[
n
].
length
;
j
++
)
{
if
(
cElementType
.
error
===
argI
[
n
][
j
].
type
){
return
this
.
value
=
argI
[
n
][
j
];
}
else
{
arg0
=
new
cString
(
concatString
(
arg0
.
toString
(),
argI
[
n
][
j
].
toString
()));
}
}
}
arg0
=
new
cString
(
concatString
(
arg0
.
toString
(),
elem
.
toString
()));
});
}
else
{
argI
=
argI
.
tocString
();
if
(
arg0
instanceof
cError
)
{
return
this
.
value
=
arg0
;
}
}
else
{
}
else
{
arg0
=
new
cString
(
concatString
(
arg0
.
toString
(),
argI
.
toString
()));
}
}
...
...
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