ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   Setting several variables at the same time (https://www.excelbanter.com/excel-programming/357391-setting-several-variables-same-time.html)

BenderBender

Setting several variables at the same time
 
Hi, just wanted to find out if it is possible to set several integer or
string variables to the same value all at once? I know that they can
be declared on one line and was wondering if it is possible to do the
same with assigning a value, e.g. Zero.
Thx,
Bender


Jim Thomlinson

Setting several variables at the same time
 
To the best of my knowledge there is no way to set more than one vairable at
a time. When the variable is created however it is intialized to a default
value (0 for numbers), unlike C or C++ where the value of a variable that has
not been initialized is ???
--
HTH...

Jim Thomlinson


"BenderBender" wrote:

Hi, just wanted to find out if it is possible to set several integer or
string variables to the same value all at once? I know that they can
be declared on one line and was wondering if it is possible to do the
same with assigning a value, e.g. Zero.
Thx,
Bender




All times are GMT +1. The time now is 10:17 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com