変数に関数を入れる方法を教えてください。

お世話になっております。初心者です。
清算処理に、事前に作った変数(数字)を”+1”の数字を作成したいのですが、書き方を教えてください。例えば下記のような変数の部分にどのように編集でしょうか。お願いいたします。
例:請求書支払いの件 2024年<[請求書発行月.ToString]>月分

Hi @j-zhang

Can you try below

InvoiceMonth = 6
InvoiceMonth = InvoiceMonth+1
ResultString = “Invoice payment <2024 [” + InvoiceMonth.ToString + “] months>”

Regards,

1 Like

こんにちは

変数は請求書発行月でしょうか?

以下試してもらえますでしょうか?

拡張エディタで以下の式になります。

$"請求書支払いの件 2024年{請求書発行月加算1}月分"
1 Like

@Yoichi ありがとうございました。おかげさまで解決できました。

1 Like

@lrtetala Thank you for your advices. It is very helpful.

This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.