<< Click to Display Table of Contents >> Navigation: Components > ciFileStrInjector |
The ciFileStrInjector allows the loading of an external file into your application and proceed with macro substitution or perform any related operation to it. It also allows to save the file to disk with another name than the original content or expanded content, meaning with the content processed with macro substitution.
fig 1- ciFileStrINjector at the Object Inspector
The main properties here are FileName and SaveFileName. Define the file to be load and save. They can be different to not perform accidentally an overwriting of the same file. In resume, this component behaves like the original ciMacroStrInjector. With this component you can get a HTML file, manipulate and then pass to any other process, in uniGUI, attribute to a uniURLFrame or uniHTMLFrame component. Is very useful in this sense.
Some events maybe perform before and after loading the file to the strings property. You might predefine the macros in design time to manipulate the file to be loaded in runtime.
fig 2 - ciFileStrInjector events at Object Inspector