Access VBA 質問スレ Part2 (788レス)
Access VBA 質問スレ Part2 http://mevius.5ch.net/test/read.cgi/tech/1544620479/
上
下
前次
1-
新
通常表示
512バイト分割
レス栞
抽出解除
レス栞
708: デフォルトの名無しさん [sage] 2023/10/05(木) 01:14:56.61 ID:6f6nA7M7 >>706 CurrencyかDecimalでべき乗する関数ってどのような? http://mevius.5ch.net/test/read.cgi/tech/1544620479/708
709: デフォルトの名無しさん [sage] 2023/10/05(木) 04:00:15.23 ID:xIPl72Do >>708 こまかい条件省くとこんな感じじゃね Function pow(x As Currency, y As Integer) As Variant Dim i As Integer Dim ret As Variant ret = CDec(x) For i = 1 To y - 1 ret = ret * CDec(x) Next pow = ret End Function Decimalは直接定義できないからVariantで宣言してる http://mevius.5ch.net/test/read.cgi/tech/1544620479/709
メモ帳
(0/65535文字)
上
下
前次
1-
新
書
関
写
板
覧
索
設
栞
歴
スレ情報
赤レス抽出
画像レス抽出
歴の未読スレ
AAサムネイル
Google検索
Wikipedia
ぬこの手
ぬこTOP
1.282s*