Bookshelf Home | Contents | Index | PDF |
Siebel VB Language Reference > Methods Reference for Siebel VB > Code Setup and Control Methods > Declare Custom Data Type MethodThe Declare Custom Data Type method declares a custom data type. It does not return a value. For more information, see About Data Types. FormatType userType The following table describes the arguments that you can use with this method. UsageYou can use the following format to access the fields of a record: You can use the following format to access the fields of an array of records: You cannot specify an array in the field argument. Arrays of records are allowed. You cannot use the Type statement in a procedure definition. You must use it in the general declarations section. For example, see Set Array Lower Boundary Method. Siebel VB cannot pass a custom type to a COM function or subroutine. To declare a record variable, you can use the Declare Custom Data Type method in a Declare Variable method. Siebel VB does not allocate memory when you define a custom type. It only allocates memory if you use a Declare Variable method to declare a custom type. If you declare a variable of a custom type, then you are instantiating the type. For more information, see Declare Variable Statement. ExampleThe following example includes a Type statement and a Dim statement. You must define a record type before you can declare a record variable. The subroutine references a field in the record: Type Testrecord Sub Button_Click Related Topics |
Siebel VB Language Reference | Copyright © 2015, Oracle and/or its affiliates. All rights reserved. Legal Notices. | |