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>
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.