home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
OS/2 Shareware BBS: 10 Tools
/
10-Tools.zip
/
strgen.zip
/
README
< prev
next >
Wrap
Text File
|
1996-03-15
|
2KB
|
46 lines
NAME: STRGEN
COPYRIGHT:
----------
Copyright (C) International Business Machines Corp., 1991,1995.
DISCLAIMER OF WARRANTIES:
-------------------------
The following [enclosed] code is sample code created by IBM
Corporation. This sample code is not part of any standard IBM product
and is provided to you solely for the purpose of assisting you in the
development of your applications. The code is provided "AS IS",
without warranty of any kind. IBM shall not be liable for any damages
arising out of your use of the sample code, even if they have been
advised of the possibility of such damages.
DESCRIPTION:
Sample of using the IStringGenerator class for translating elements to IStrings
in the ICollectionViewListBox. This sample can also be used if you wish to
populate table records from DAX classes to the ICollectionViewListBox.
How to use it:
1) Modify MYSTRGEN.HPP:
- change the typedef to point to the object you want a string generated for.
In the sample, the object is the Customer.
- change the implementation for StrgenFn::stringFor() to return a string
for your object.
- replace the inclusion for Customer.hpp to the header file where you have
the class for your object declared.
2) Import mystrgen.vbe in Visual Builder or just load up mystrgen.vbb.
3) Specify MyStringGen() in the String generator field of the
ICollectionViewListBox or ICollectionViewComboBox settings notebook.
Any questions for this sample, drop a mail to BLUC@VNET.IBM.COM
Brian Luc, 03/15/96