0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 3 years have passed since last update.

GenexusのプロシージャをJavaクラスように複数メソッドに分けて記載する方法

Posted at

GenexusのStubを使えば、プロシージャに複数メソッドが定義できる。

RulesでのParm定義が使えなくなるですが、下記のように定義できる。

サンプルコード Utlity.stubファイル

Utlity.stub
/************************************************/
//日付チェック

stub CheckDate(in:&date, out:&error)
    XXXXXXX:日付の有効チェック処理
EndStub

//桁数チェック
stub CheckLength(in:&value, out:&result)
   XXXXXXX:桁数の有効チェック処理
EndStub
/************************************************/

Webpanel、Procedureから呼び出す

HogeWebPanel
/************************************************/
Event 'SearchBtn' 
    //日付チェック処理
    Utlity.CheckDate(&date, &error)
    If Not &error.isEmpty
       MSG(&error.ToString())
    EndIf
    
    //桁数チェック処理
    ........
EndEvent
/************************************************/
0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?