VB7 and "Dim WebPublic" 
Author Message
 VB7 and "Dim WebPublic"

Looking over the (admittedly sketchy) VB7 announcements and listening
to the Ballmer presentation I see references to the new web integration
being enabled by adding a line to your code that reads:
  Dim WebPublic
Doing that, if I am reading it right, causes the compile to create the
necessary XML data to expose the public functions from the web server.

Is it me or does that not make sense?  Why would creating a Variant
variable with a specific name change the purpose of the module?
Wouldn't it make more sense to use almost any other syntax...
Option WebPublic
or...
#Const WebPublic=True
or...
WebPublic MySub()
or maybe add a new property to the module similar to Instancing or
Persistable...
Creating a variable of a specific name is totally non-intuitive.

--
Please reply via the newsgroup only

Sent via Deja.com http://www.*-*-*.com/
Before you buy.



Fri, 09 Aug 2002 03:00:00 GMT  
 VB7 and "Dim WebPublic"
Hi Bob:

Quote:
> Is it me or does that not make sense?  Why would creating a Variant
> variable with a specific name change the purpose of the module?

You have to remember Bob, this was only a demo of the planned functionality
and by no way was the functionality or syntax finalized.
I was at the demo in SF VBITS, and the individual who was doing the demo did
mention that the syntax was a quick fix for the compiler, made specifically
for the demo and that it would definitely change.

--
Doug Marquardt (VB MVP)



Fri, 09 Aug 2002 03:00:00 GMT  
 VB7 and "Dim WebPublic"


Quote:
> Hi Bob:

> > Is it me or does that not make sense?  Why would creating a Variant
> > variable with a specific name change the purpose of the module?

> You have to remember Bob, this was only a demo of the planned
functionality
> and by no way was the functionality or syntax finalized.
> I was at the demo in SF VBITS, and the individual who was doing the
demo did
> mention that the syntax was a quick fix for the compiler, made
specifically
> for the demo and that it would definitely change.

Thanks, I was hoping that was the case.  It'd be nice if they mentioned
it in the article as well since it looks really out of place.  Some of
the other syntax looked odd as well and I suspect a lot of it may
change.  That one was just so far out in left field it caught me by
surprise -- especially since they went out of their way to show how
easy it was to add the option just by adding the one line.

--
Please reply via the newsgroup only

Sent via Deja.com http://www.deja.com/
Before you buy.



Fri, 09 Aug 2002 03:00:00 GMT  
 
 [ 3 post ] 

 Relevant Pages 

1. dynamically dim a variable ie dim "variable"&n

2. "late" DIM statements

3. PROB with "dim as new ADODB...."

4. Problem with "Dim as Field"

5. "Un-dim" Array

6. PROB with "dim as new ADODB...."

7. What is "Dim X%"?

8. PROB with "dim as new ADODB...."

9. Problem with "Dim as Field"

10. *"*-.,._,.-*"* I"LL TRADE VISUAL C++ FOR VBASIC *"*-.,_,.-*"*

11. "Global db as database" vs Local "dim db as database"

12. Difference between "Private" and "Dim"

 

 
Powered by phpBB® Forum Software