![]() |
![]() |
declare i1 as binary-long
display i1
*> Optionally, the variables can be initialised inline
declare c2 as condition-value = true
display c2
declare string-list2 as string occurs 3 = table of string("Bill", "Ben", "LittleWeed")
ローカル変数のサンプルも参照してください。このサンプルは、[スタート > すべてのプログラム > Micro Focus Enterprise Developer > Samples > Visual COBOL Samples]、COBOL for .NET の場合の場合。 に用意されています。
変数に対して明示的な型が宣言されていない場合、値が整数以外の数値であれば (declare var1 = 1.23 など)、値は float-long 型であると見なされる。