式中関数:str FILEREAD(str filename, int record, int field)
同名の命令と同じです。CSVフォルダ以下にあるCSVファイルの記述を直接呼び出してその値を返します。
filenameでファイル名(拡張子は含まない)、recordでレコード(行)、fieldでフィールド(列)を指定します。
行列はそれぞれ0から始まり、存在しない位置の項目が指定された場合は""を返します。
************** Exception Text **************
System.ArgumentOutOfRangeException: Index was out of range. Must be non-negative and less than the size of the collection.
Parameter name: index
at System.ThrowHelper.ThrowArgumentOutOfRangeException(ExceptionArgument argument, ExceptionResource resource)
at System.ThrowHelper.ThrowArgumentOutOfRangeException()
at MinorShift.Emuera.GameView.EmueraConsole.OnPaint(Graphics graph)
at MinorShift.Emuera.MainWindow.mainPicBox_Paint(Object sender, PaintEventArgs e)
at System.Windows.Forms.Control.OnPaint(PaintEventArgs e)
at System.Windows.Forms.PictureBox.OnPaint(PaintEventArgs pe)
at System.Windows.Forms.Control.PaintWithErrorHandling(PaintEventArgs e, Int16 layer, Boolean disposeEventArgs)
at System.Windows.Forms.Control.WmPaint(Message& m)
at System.Windows.Forms.Control.WndProc(Message& m)
at System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message& m)
at System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m)
at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)