Welcome to Pauls PureProject
 Home Online Reference Guide duplicated from http://cvs.purebasic.com  
 Online Resources
   · Reference

 Libraries
     2DDrawing
     Billboard
     Camera
     CDAudio
     Cipher
     Clipboard
     Console
     Database
     Date
     Desktop
     Engine3D
     Entity
     File
     FileSystem
     Font
     Gadget
     Help
     Image
     ImagePlugin
     Joystick
     Keyboard
     Library
     Light
     LinkedList
     Material
     Math
     Memory
     Menu
     Mesh
     Misc
     Module
     Mouse
     Movie
     Network
     OnError
     Packer
     Palette
     Particle
     Preference
     Printer
     Requester
     Sort
     Sound
     SoundPlugin
     Sprite
     Sprite3D
     StatusBar
     String
     SysTray
     Terrain
     Texture
     Thread
     Toolbar
     Window

 CallFunction

Syntax

Result = CallFunction(#Library, FunctionName$ [,Parameter1 [, Parameter2...]])
Description
Calls a function in the specified library, which must have previously been opened with the OpenLibrary() command, by using its name.

Any number of parameters can be specified but it must fit the number of parameters required by the function. For example, if a function needs 2 parameters, then 2 parameters must be passed, even if the 2 values are null.
Note: Currently the maximum number of parameters is 20.

Parameters

#Library - The numeric identifier of the library you want to call a function from. This must be the same number that you use when you called OpenLibrary().

FunctionName$ - A string containing the name of the function you want to call.

Parameter1, Parameter2, ... - The parameters for the function you are calling. You should use the correct number of parameters here, as described in the developer documentation for the library you are using.

Return value

Result - The result of the library function you have called.

Supported OS

Windows, AmigaOS, Linux

<- CallCFunctionFast() - Library Index - CallFunctionFast() ->



Hosted by Reel Media Productions Copyright©2001-2004 All Rights Reserved