ENs - FlatFile Tables
Emulator - being as EUO has no way to load and parse files so can only emulate database functions.
Debuggin this code gave me a serious migraine... but is dang useful. Use it as a called script, Set the path in %EN_Table
TABLE COMMANDS
set %EN_Table C:\easyuo/EUO , #spc , Scripts\ENs-Scripts\ENs-Subs-Tables.Txt
call %EN_Table EN_Table_Create ; %1=TableName , %2...%z Field Names
; ; Creates table and sets active table.
call %EN_Table EN_Table_Use ; %1=TableName (Sets active Table)
call %EN_Table EN_Table_Goto ; %1=RecordNum %2=Optional TableName - sets fields
call %EN_Table EN_Table_Next ; %1=Optional TableName - sets fields
call %EN_Table EN_Table_Prior ; %1=Optional TableName - sets fields
call %EN_Table EN_Table_Top ; %1=Optional TableName - sets fields
call %EN_Table EN_Table_Bottom ; %1=Optional TableName - sets fields
call %EN_Table EN_Table_isDeteled ; %1=Optional TableName - Returns #true/#false
call %EN_Table EN_Table_Detele ; %1=Optional TableName - Sets Deleted Flag
call %EN_Table EN_Table_Recall ; %1=Optional TableName - Undeletes Record
call %EN_Table EN_Table_Append ; Adds record to end of table *1
call %EN_Table EN_Table_Insert ; Inserts Record at position EN_RecordOn *1
call %EN_Table EN_Table_Update ; Updates Current Record *1
; *1 (Uses %EN_TableOn, EN_RecordOn)
call EN_Table_Load ;notdone yet
call EN_Table_Save ; notdone yet
EXPOSED VARIABLES
%EN_TableOn %EN_RecordOn
%TableName_ RecordCnt, FieldCnt, RecordOn, Deleted , Prior , Next , Top , Bottom
%TableName_ Fieldsnames...1...z (as defined on the table create command)
All the normal bs ENs disclaimers apply...
REMEMBER: Feedback is important... good bad or not comment all important if you download give feedback
(C) 2007 All Rights Reserved JosephAJ
Commercial usage requires written permission from the author
NOTE: My scripts or any derivative of them are *not* for use in other players script/s!