Skip to content

Commit 69a16f3

Browse files
authored
Update script.gs
Add comma to getRow and getColumn mode for splitting each value when returning to the client.
1 parent be6e8a7 commit 69a16f3

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

script.gs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
/*
22
Author: Teeraphat Kullanankanjana
3-
Version: 0.0.3
3+
Version: 0.0.4
44
*/
55

66
function doGet(e) {
@@ -120,7 +120,7 @@ function doGet(e) {
120120

121121
var heading = "";
122122
for (var i = 0; i < values.length; i++) {
123-
heading += values[i] + " ";
123+
heading += values[i] + ",";
124124
}
125125

126126
var html = "<html><head><title>Get Row Data</title></head><body><h1>start</h1><h1>" + heading + "</h1><h1>finish</h1></body></html>";
@@ -134,7 +134,7 @@ else if (mode == "getColumn") {
134134
var values = range.getValues();
135135
var heading = "";
136136
for (var i = 0; i < values.length; i++) {
137-
heading += values[i] + " ";
137+
heading += values[i] + ",";
138138
}
139139

140140
var html = "<html><head><title>Get Column Data</title></head><body><h1>start</h1><h1>" + heading + "</h1><h1>finish</h1></body></html>";

0 commit comments

Comments
 (0)