| Bookshelf Home | Contents | Index | PDF | ![]() |
|
Siebel VB Language Reference > Using Siebel VB > About Declaring Procedures and Variables > Declaring a ProcedureThis topic includes information about using the Declare Procedure statement to declare a procedure in a module or in a dynamic link library (DLL). For more information this statement and the format and arguments you can use with it, see Declare Procedure Method. Specifying the Data TypeTo specify the data type for a method return value, you do one of the following:
Sequence Determines How You Must Declare CodeBecause Siebel 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 CodeTo call external DLL code, you use the Pascal calling convention. Siebel VB pushes the arguments on the stack from left to right. By default, Siebel VB uses the Far reference to pass these arguments. You can use the following keywords when you call 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 © 2011, Oracle and/or its affiliates. All rights reserved. Legal Notices. | |