Bookshelf Home | Contents | Index | PDF |
Siebel VB Language Reference > Using Siebel VB > Declaring Procedures and Variables > Declaring a ProcedureThis topic includes information about how to use the Declare Procedure statement to declare a procedure in a module or in a dynamic link library (DLL). For more information about this statement and the format and arguments that you can use with it, see Declare Procedure Method. Specifying the Data TypeYou do one of the following to specify the data type for the value that a method returns:
Sequence Determines How You Must Declare CodeSiebel Tools compiles custom methods in alphabetical order. If you reference code in the current code before you define it, then you must use a declaration. For example, assume you create the following subroutines in the general declarations section: Sub B In this situation, compilation fails with the following message: If you add the following statement before Sub A, then the code compiles and runs properly: Calling External DLL CodeYou can use the Pascal calling convention to write code that calls external DLL code. Siebel VB pushes the arguments on the stack from left to right. It uses the Far reference to pass these arguments, by default. You can write code that uses the following keywords when it calls external DLL code:
If Siebel VB uses ByVal to pass a null string, then the external code receives a nonNULL character of 0. To send a NULL pointer, you must declare the argument as ByVal As Any, and then call the code with an argument of 0. |
Siebel VB Language Reference | Copyright © 2013, Oracle and/or its affiliates. All rights reserved. Legal Notices. | |