Wrox Programmer Forums
|
Beginning VB 6 For coders who are new to Visual Basic, working in VB version 6 (not .NET).
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Beginning VB 6 section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old April 28th, 2004, 10:22 AM
Registered User
 
Join Date: Apr 2004
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Default Porting from VB 3

I am porting an application from VB3 to the Palm. I have the following line of code and was hoping that someone could explain to me why I was getting this error (Can't locate the subscripted variable name) on this line:

    m007A = Int(m007A * 100 + .5#) / 100

I am assuming that it is the # sign. What does that do in VB?

Thanks

Scott Toney
 
Old April 29th, 2004, 06:17 AM
Friend of Wrox
 
Join Date: Jun 2003
Posts: 1,212
Thanks: 0
Thanked 1 Time in 1 Post
Default

Its a data type shorthand, just says that .5 is of type Double. You can safely remove it, or change it to CDbl(.5).

Its a strange error though, I thought these # constructs were still valid in the latest versions of VB. Don't know anything about the Palm though...





Similar Threads
Thread Thread Starter Forum Replies Last Post
porting ch18 sample code to new kernels ninuzzo BOOK Beginning Linux Programming, 3rd Edition 1 February 12th, 2007 12:50 PM
Porting C++ winsock API application to ATL wambozi Visual C++ 1 September 11th, 2006 10:16 AM
Problem in Porting Data to Excel File ctranjith General .NET 0 August 1st, 2005 09:01 AM
Porting MSDE database to SQL server hgberman SQL Server ASP 2 January 23rd, 2005 08:03 PM
Porting simple code from Borland to VC++ david_2138 Visual C++ 1 December 18th, 2004 08:43 PM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.