CreateFileArray(#File, ArrayName$(Row,Col)) and more !
Posted: Sun Aug 21, 2011 11:52 pm
New !!!
If you have...
Dim ArrayName$(Row,Col) or Dim ArrayName.s(Row,Col)
And you write data into the array, the most useful to write on disk is !!!
(I Have encontred something similar many year ago (SBasic) on Flex OS... It was very convenient and was lost as a lot of other very useful thing
)
; ----------------------------------------------- --------------------------------------------------
CreateFileArray(#File, ArrayName$(Row,Col))
ReadFileArray(#File, Row, ArrayName$()); Read Row only
ReadFileArray(#File, ALL, ArrayName$()) ; Read All the ArrayName$()
WriteFileArray(#File, Row, ArrayName$()) ; Write the Row only...
WriteFileArray(#File, ALL, ArrayName$()) ; Writes the entire ArrayName$()
And why not...
DeleteFileArray(#File, ROW, ArrayName$()) ; Delete the ROW only
InsertFileArray(#File, ROW, ArrayName$()) ; Insert the ROW only (After the last Read...)
Note : The ROW=0 wil be reserved for the header of the COL...
Wath you thing about that ?
I now, we can do that with some Lib... But I think it would be quite native in PB ???
Tanks for all !
If you have...
Dim ArrayName$(Row,Col) or Dim ArrayName.s(Row,Col)
And you write data into the array, the most useful to write on disk is !!!
(I Have encontred something similar many year ago (SBasic) on Flex OS... It was very convenient and was lost as a lot of other very useful thing

; ----------------------------------------------- --------------------------------------------------
CreateFileArray(#File, ArrayName$(Row,Col))
ReadFileArray(#File, Row, ArrayName$()); Read Row only
ReadFileArray(#File, ALL, ArrayName$()) ; Read All the ArrayName$()
WriteFileArray(#File, Row, ArrayName$()) ; Write the Row only...
WriteFileArray(#File, ALL, ArrayName$()) ; Writes the entire ArrayName$()
And why not...
DeleteFileArray(#File, ROW, ArrayName$()) ; Delete the ROW only
InsertFileArray(#File, ROW, ArrayName$()) ; Insert the ROW only (After the last Read...)
Note : The ROW=0 wil be reserved for the header of the COL...
Wath you thing about that ?

I now, we can do that with some Lib... But I think it would be quite native in PB ???
Tanks for all !