I'm using Dataflex 18.2. I have a model train database. Some of the engines have sound files. I want to add a datafile that will contain the sound file that is associated with each engine.
The sound file is for reference only. There can only be one sound file 'attached" to an engine. The user change the selected sound file. Note that the sound file must be "downloaded into the engine and the engine must be running to hear the sounds.

I have added a folder to the workspace and have a couple of "demo sound files" to test my logic.
There are 4 types of engines (Steam, Diesel, Electric, Motorized. the nested directory structure is:
SoundFilesDir
Steam
Diesel
Electric
Motorized

My problem is with reading the files. my logic

Move (Seq_New_Channel()) to iChannel
Direct_Input channel iChannel sWorkFolder
Repeat
Readln channel iChannel sline
Showln sline
Until (SeqEof)
Send Seq_Release_Channel iChannel

I keep getting fa file access violation, saying the file may be in use.
I want to read the sound file names into a grid, so the user may select the desired file. the selected file would be associated with the selected engine and saved in a data base.

Please help

Gail Thomas