[dba-VB] Which version of Visual Studio

Stuart McLachlan stuart at lexacorp.com.pg
Tue Nov 15 16:07:45 CST 2011


I did it in PowerBasic.

On 15 Nov 2011 at 17:34, Gustav Brock wrote:

> Hi Stuart
> 
> You could but you didn't as that would have been sloppy code ...
> 
> In VB(A) it would have self corrected; in Access Basic your variable would have been renamed to strmonth; in Visual Studio intellisense would have warned you.
> 
> /gustav
> 
> 
> >>> "Stuart McLachlan" <stuart at lexacorp.com.pg> 14-11-2011 23:50 >>>
> Me too.   I wrote something like this just yesterday:
> 
> strMonth  = Left$(Date$,2)
> lngMonth = Val(strMonth)
> ......
> 'lots of  addition code using one or other of the above variables depending on context.
> ....
> 
> It makes the code very easy to follow. 
> And I could have written it as:
> strMonth  = Left$(Date$,2)
> lngMonth = Val(strmonth)
> 
> without any problem  :-)
> 
> -- 
> Stuart
> 
> 
> _______________________________________________
> dba-VB mailing list
> dba-VB at databaseadvisors.com
> http://databaseadvisors.com/mailman/listinfo/dba-vb
> http://www.databaseadvisors.com
> 
> 






More information about the dba-VB mailing list