Versions Compared
compared with
Key
- This line was added.
- This line was removed.
- Formatting was changed.
Info |
---|
The approach outlined in this document is deprecated. SharedFile is now implemented in C# as a gmAPI utility (gmSharedFile.exe) as described here. |
SharedFile Statement Summary
SharedFile is terminal, utility statement that can occur only in command scripts. It is used after a set of project files have been loaded with the SourceCode attribute turned on. It scans the loaded form, class, and module files to see if any are loaded by more that one project. It then reports the summary counts and gives a detailed listing of each shared file and the projects that use it.Code Block | ||||||
---|---|---|---|---|---|---|
| ||||||
|
<gmBasic>
<Storage Action="Create" Identifier="Shared" />
<Select Target="..." Local=".." System=".." />
<Load project="project(1).vbp" SourceCode="On" />
<Load project="project(2).vbp" SourceCode="On" />
.....
<Load project="project(n).vbp" SourceCode="On" />
<Output Status="New" Filename="SharedFile.out" />
<SharedFile />
<Storage Action="Close" />
</gmBasic>
|
Code Block | ||||||
---|---|---|---|---|---|---|
| ||||||
|
There were 94 Shared Files in this group of projects: Modules = 55, Forms = 2 Classes = 37
The Module file [module.bas] is shared by 258 projects
(1) project(i).vbp
(2) project(j).vbp
......
|
Code Block | ||||||
---|---|---|---|---|---|---|
|
<Registry type="SharedFile" Source="module1.bas" Target="project(i).vbp" />
<Registry type="SharedFile" Source="module2.bas" Target="project(k).vbp" />
<Registry type="SharedFile" Source="module3.bas" Target="project(k).vbp" />
.....
|
Panel | ||||
---|---|---|---|---|
| ||||
|