Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations wOOdy-Soft on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Bandit Libraries 1

Status
Not open for further replies.

Elkari

Programmer
May 1, 2001
144
US
Does anybody out there use Bandit as a report writer for their Clipper applications?

My problem is that the one of my customers wish to print date fields as YYYY/MM/DD. Bandit has ten date formats to choice from, but nothing like what the customer wants. I found where the formats for fields of various types are defined, in the FORMATS.PRG program file. However, I believe the PRG files, that came with Bandit, are part of the two Bandit libraries. What I need to know is - 1) which PRG files go with which library? and 2) a refresher on how to compile libraries instead of executables.

Any help would be appreciated.
 
I think there are specific programs used to build LIB files, referred to as library managers.
If the code in FORMATS.PRG looks like Clipper code, you may try to compile and link it into your exe; or just copy the particular function you want from it and add it to an existing PRG. If you have the variables defined, it should work.
Good luck.
 
There are a simply way to resolve this:
create a calculated field in the report painter, with the following statement:

str(year(date()))+'/'+str(month(date()),2)+'/'+str(day(date()),2)

You could replace date() with a date field from any table.

If you have the strzero() function can you use it in lieu of str() for month and day, to display 01 instead of 1, 02 etc.

To build a library file (.lib) you need a librarian manager (funcky has a very good one) or use the lib program that comes with MS C or MASM. The NG documentation of BandIt has info about of rebuilding the libs.

Bandit2 contains the user interface of the report painter, the BanditI2 contains the database manipulation, the generation engine, and the format funtions.

If you need more assistance with it, can you reach me at
pablormc@yahoo.com

;)
 
Thanks to both of you for your help.

circes9 - I tried compiling in the PRG file directly, but got a duplicate function declared error.

mxPavel - There's a function RZERO I have that does the same thing as STRZERO.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top