メインのksfファイルと同一階層にある別のksfファイルに定義された関数を利用する方法
以下の例では、sample.ksfと同一階層にあるCommonUtils.ksfに定義したtestFunction関数を呼び出します。
| 
					 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23  | 
						Kf(_sample){ 	Pe{ 		/*キーステーションが最初に実行するキーセット*/ 		N(_main); 	} } K(_main){ 	U{ 		R(#label1) 		R(#label2) 		Pe{ 			/* 別のksfファイル(_commonUtil.ksf)を読み込む */ 			$this%demandKS("_CommonUtils"); 			/* _commonUtil.ksfにある関数を呼び出す */ 			#label1?=_CommonUtils%testFunction("Hello world"); 			/* 引数なしで呼出し */ 			#label2?=_CommonUtils%testFunction(); 		} 	} }  | 
					
| 
					 1 2 3 4 5 6 7 8 9 10 11 12 13  | 
						Kf(_CommonUtils){ 	/* 外部から使用可能な関数 */ 	/* 引数:文字列(初期値:No Parameter) */ 	/* 戻り値:文字列 */ 	Po((str)#testFunction,(str)in="No Parameter"){ 		(str)retStr="testFunction:"+in; 		/* 戻り値は()で記述する */ 		return(retStr); 	} }  | 
					
実行結果
