×
INTELLIGENT WORK FORUMS
FOR COMPUTER PROFESSIONALS

Contact US

Log In

Come Join Us!

Are you a
Computer / IT professional?
Join Tek-Tips Forums!
  • Talk With Other Members
  • Be Notified Of Responses
    To Your Posts
  • Keyword Search
  • One-Click Access To Your
    Favorite Forums
  • Automated Signatures
    On Your Posts
  • Best Of All, It's Free!

*Tek-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail.

Posting Guidelines

Promoting, selling, recruiting, coursework and thesis posting is forbidden.

Students Click Here

make library

make library

make library

(OP)
hi again..
sorry couldn't get the idea about the making libs..

i've a sample code:

start:
screen 0
width 80
cls

input "input sine to find alfa";sine
if abs(sine) > 1 then goto start

arcsine:
myangle=0
g=abs(sine)
if g=0 then myangle=0 : goto showresult
if g=1 then myangle=90 : goto showresult
c=0
while sine(c) < g
c=c+.1
wend

myangle=c


showresult:
if sine < 0 then myangle=myangle+180
? "sin(";myangle;") = ";sine

end

anyway....... the question is how can i make a library and recall my arcsine sub ?(this is not a sub here but i use it as a sub in my sources)
can you please answer it step by step because of my bad english..
i've tons of sub codes like arcsine and i want to put them in my library and just recall when i need.. please help !







RE: make library

(OP)
SORRY FOR WHILE SIN(C) ..... IT SHOULD BE WHILE SIN(C*PI)

RE: make library

(Requires QB45)
Step 1: Run>Make Library...
Step 2: Load QB with the Library... QB /L MyLib

You might have to declare your library functions in a program before calling them...

Good Luck,
Josh

Visit My Site
PROGRAMMER: (n) Red-eyed, mumbling mammal capable of conversing with inanimate objects.

RE: make library

Sorry, QB45 is short for Quick Basic 4.5 (old habbits die hard)

Visit My Site
PROGRAMMER: (n) Red-eyed, mumbling mammal capable of conversing with inanimate objects.

RE: make library

To make a library, do your program without main module code.
I.E. only subs and/or functions.

Save it.

select Run menu, choose make library, fill in the name of
the library and press enter.

This is the easiest way (making a library from a basic
program).

Then exit QuickBasic and restart quickbasic using /L librname

where librname is the name of your library.

Declare the subs/functions of you library in the new program
(or make an inc file with the declarations in it and use
the $include metastatement to include it.)

you should then be able to access the subs/functions of you library in any program you make (as long as the lib is loaded i.e. /L librname is used to start quickbasic)

It does require QuickBasic as mentioned in earlier posts,
Qbasic does not support libraries.

Red Flag This Post

Please let us know here why this post is inappropriate. Reasons such as off-topic, duplicates, flames, illegal, vulgar, or students posting their homework.

Red Flag Submitted

Thank you for helping keep Tek-Tips Forums free from inappropriate posts.
The Tek-Tips staff will check this out and take appropriate action.

Reply To This Thread

Posting in the Tek-Tips forums is a member-only feature.

Click Here to join Tek-Tips and talk with other members! Already a Member? Login

Close Box

Join Tek-Tips® Today!

Join your peers on the Internet's largest technical computer professional community.
It's easy to join and it's free.

Here's Why Members Love Tek-Tips Forums:

Register now while it's still free!

Already a member? Close this window and log in.

Join Us             Close