Bookshelf Home | Contents | Index | PDF |
Siebel VB Language Reference > Methods Reference for Siebel VB > Variable Manipulation Methods > Assign Expression to Variable StatementThe Assign Expression to Variable statement is a predefined VB statement that assigns an expression to a Visual Basic variable. It does not return a value. You can use it to assign a value or expression to a variable that is of one of the following data types: If you use this statement to assign a value to a numeric variable or to a string variable, then Siebel VB applies the standard conversion rules. You can use this statement to assign a value to a field in a record or to assign a value to an element in an array. The Let keyword is optional. Let is different from Set because Set assigns a variable to a COM object. For example: FormatThe following table describes the arguments that you can use with this method. ExampleThe following example uses the Assign Expression to Variable statement for the sum variable. It calculates an average of 10 golf scores: Sub Button_Click Related Topics |
Siebel VB Language Reference | Copyright © 2013, Oracle and/or its affiliates. All rights reserved. Legal Notices. | |