Visual Basic 6 question 
Author Message
 Visual Basic 6 question

Is it possible to write a function with the name 'open'?

Public Function open() as Long
    ...
End Function



Wed, 14 Jul 2004 01:50:20 GMT  
 Visual Basic 6 question
No. Open is a reserved word in VB.


Quote:
> Is it possible to write a function with the name 'open'?

> Public Function open() as Long
>     ...
> End Function



Wed, 14 Jul 2004 02:47:10 GMT  
 Visual Basic 6 question
Hi,

Open is a resevered word.  So, "No."  Use OpenSomething (or similar).

--
Richard Grier  (Microsoft Visual Basic MVP)
Hard & Software
12962 West Louisiana Avenue
Lakewood, CO  80228
303-986-2179 (voice)
303-986-3143 (fax)
Leave voice mail or fax that I can receive as email at 303-593-9315
Author of Visual Basic Programmer's Guide to Serial Communications, 2nd
Edition ISBN 1-890422-25-8 (355 pages).
For information look on my homepage at http://www.hardandsoftware.net.
Use the Books link to order.  For faster service contact the publisher at
http://www.mabry.com.



Wed, 14 Jul 2004 02:46:29 GMT  
 Visual Basic 6 question
there was a related discussion here :
http://news.devx.com/cgi-bin/dnewsweb.exe?utag=&group=vb.oop&xrelated...
cmd_related.x=76&cmd_related.y=15

--
Van den Driessche Willy
For a work in progress :
http://users.skynet.be/wvdd2/index.html

Quote:
> Is it possible to write a function with the name 'open'?

> Public Function open() as Long
>     ...
> End Function



Fri, 16 Jul 2004 16:51:35 GMT  
 
 [ 4 post ] 

 Relevant Pages 

1. Basic (No Pun Intended) Visual Basic.Net Questions

2. Basic Visual Basic/Macro questions

3. Visual Basic command question

4. Visual Basic Install Question

5. visual basic .Net question

6. Visual Basic Simple Question

7. Visual Basic 5 Question?

8. Visual Basic 5.0 question

9. Simple Visual Basic file question

10. QuickBasic to Visual Basic conversion question

11. Modules In Visual Basic -- Simple Question

12. Visual Basic 3.0 Question

 

 
Powered by phpBB® Forum Software