ciMultiStrInjector

<< Click to Display Table of Contents >>

Navigation:  Components >

ciMultiStrInjector

The ciMultiStrInjector is component to handle large strings collections. That is, you need to embed in your app a collection of strings (like SQL Scripts, HTML Pages, JS Libs etc) and they need to be associated to you application and not be left in folder at your computer or server.

 

Clip15

fig 1 - ciMultiStrInjector

 

This is just a string handler and container. You may use this component to keep all you files inside your app. You might use in conjuction with the other components in this package facilitating the handling of many files at the same time. There is no event associate to this component.

 

At MultipleStrings property, you may define your strings collection. This of it as a "files" like HTML, JavasScript code, CSS, SQL Scripts or whatever text content you need to manipulate with your application.  See picture below:

 

Clip16

fig2 - ciMultiStrInjector - Defining a Item collection.

 

 

To access a collection's item you might use the code as shown below referencing by its name:

 

Clip17

 

All methods and functions associated to TStrings object are applicable to the Item's Collection, since is just a TStrings object at the end.  

 

Warning: This component does not make macro substitutions. Is a solution for a frequently occurring problem: handling a lot of string files associate to a project keeping all inside it.