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 John Tel on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How to build a file with extention lib or plb

Status
Not open for further replies.

tonni

Programmer
Feb 20, 2000
11
ID
I want put my procedure in a file with extention lib or plb, so in my program I can set library to ......<br>
Please help me if that is possible...
 
Been there, done that, I recommend you do not do that. Procedures are much easier to maintain if they are in seperate files.<br>
<br>
But if you insist<br>
Just make a file with whatever name you want to use. (ie Procedure.plb)<br>
separate the routines inside the procedure file with a couple of blank line. (for your sake not the computers)<br>
<br>
Procedureno1<br>
lines of code<br>
lines of code<br>
return<br>
<br>
<br>
Procedureno3<br>
lines of code<br>
lines of code<br>
return<br>
<br>
<br>
Procedureno3<br>
lines of code<br>
lines of code<br>
return<br>
<br>
<br>
Inside your program close to the very top and before you make calls to anyother program, add this line.<br>
set procedure to procedure.plb
 
Hi dgrewe,<br>
I didn't meanning just change the file extention to lib or plb, but I mean that how I building a library just like novell library in foxpro.<br>
So when I want to use the function or procedure in the library file, I must use the command set library to in my program. <br>
for example:<br>
set library to netware.lib<br>
=rollback()<br>
not use the set procedure to<br>
as you describ in your comment, but how ever thank you very much your help<br>
If you know the way how to building a libary file, please help me. <br>

 
Sorry, I read the word library but thought procedure. <br>
<br>
There are 2 types of library files. <br>
1. One built from a foxpro project manager that is used to make calls into an application you wrote. The procedures above still apply.<br>
<br>
2. One written in another langauge like c, basic, java (etc) for you to make calls into other programs. In this case an external library file is a collection of source code that is not native Foxpro commands. The file has been run throught a compiler that changes it into machine code that foxpro can read. So to add a routine to a library you have to have the other langauge source code and the compiler. <br>
<br>
Which type of library do you want to use/build? <br>
<br>
You can e-mail me <br>
<A HREF="mailto:dave@internationalbid.net">dave@internationalbid.net</A>
 
Tonni<br>
All the Email I'm sending you is coming back as undeliverable after 5 days.<br>

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top