代码说明:
PBShareMap is an easy-to-use component that uses file-mapping to let 2 or more applications share a TStringList and thereby all variables that can be converted to text (use the Name=Value approach). Default property Values makes it easy to store and access variables. It is used like this: PBShareMap1['MyVar'] := MyVar; and accessing: MyVar := PBShareMap['MyVar']; The applications can be instances of the same application or different applications (each with PBShareMap component). Set 'AutoSynchronize' to true and changing the list in one application automatically updates the other(s). 'ExistsAlready' can be used to limit your application to one instance. Multiple PBShareMaps can be on one Form. Applist automatically holds the handles of all Owner-forms using the same map. Context-sensitive help is included.
【立即下载】
|