I have managed to save all the project files to DB.
Now I have a need to load the project in IDEEngine and run it.
Currently
I am trying to pass the ProjectFile to the IDE Engine with the hope
that it will fire the LaodFile Event and the code in the LaodFile event
will load rest of the files associated with the project.
But nothing is happening... meaning it gives Error.
That's the idea, if you call TIDEEngine.LoadProject, it would fire the OnLoadFile events. But we can only guess, can you provide more info, code, error messages, etc.?
Calling TIDEEngine.LoadProject fires the LoadFile event but it only firest event to load the module files (.psc). It does fire the event to load associated Form files (.sfm).
Here is the code:
In Button Click event:
ProjectFileCnt := 0; //This is Module level variable used in LoadFile event RecID := GetCurrRecID();
Calling TIDEEngine.LoadProject fires the LoadFile event but it only fires event to load the Module files (.psc). It does NOT fire the event to
load associated Form files (.sfm).
The IDE Engine decides if a form must be loaded or not by checking if the form file exists. When you are using events, you must set OnCheckValidFile event, and return a valid flag for the passed file if it should load a form.