例えば スクリプトエディタで function hoge (var){ Logger.log(var) return var } と関数を作り、 セル内に =hoge(A1) と入力した場合、 A1は「hogehoge」という文字列が入ってます
function hogeを実行したところ ログはundifindとなります return varは「hogehoge」という値が格納されています
function内で引数の値を出力したいのですが どうしたら良いでしょうか、、、
hikochang
unread,
Jul 19, 2017, 8:37:10 AM7/19/17
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to Google Apps API Japan
念のため確認ですが行末にセミコロンが無いのは、投稿時のミスでしょうか?
よう
unread,
Jul 19, 2017, 8:47:59 AM7/19/17
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to Google Apps API Japan
ご連絡ありがとうございます。
;抜きとかは気にしないでください
2017年7月19日水曜日 21時37分10秒 UTC+9 hikochang:
念のため確認ですが行末にセミコロンが無いのは、投稿時のミスでしょうか?
よう
unread,
Jul 19, 2017, 9:00:09 AM7/19/17
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to Google Apps API Japan
いかがでしょうか?
hikochang
unread,
Jul 19, 2017, 10:13:33 AM7/19/17
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to Google Apps API Japan
varがダメなのでは? 以下だとどうですか?
function hoge (asdf){ Logger.log(asdf); return asdf; }
パソコン壊れているので、私は試せません。
hikochang
unread,
Jul 19, 2017, 10:22:19 AM7/19/17
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to Google Apps API Japan
補足すると以下の単語は変数名などに使用出来ないor使用しない方が良い です。
break
case
catch
continue
debugger
default
delete
do
else
finally
for
function
if
in
instanceof
new
return
switch
this
throw
try
typeof
var
void
while
with
class
enum
export
extends
import
super
implements
interface
let
package
private
protected
public
static
yield
よう
unread,
Jul 19, 2017, 9:11:25 PM7/19/17
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message