Re: Finding block begin/end in VBScript
From: Scott M. (s-mar_at_nospam.nospam)
Date: 12/24/04
- Next message: Bob Barrows [MVP]: "Re: Finding block begin/end in VBScript"
- Previous message: Scott M.: "Re: Finding block begin/end in VBScript"
- In reply to: Bob Barrows [MVP]: "Re: Finding block begin/end in VBScript"
- Next in thread: Bob Barrows [MVP]: "Re: Finding block begin/end in VBScript"
- Reply: Bob Barrows [MVP]: "Re: Finding block begin/end in VBScript"
- Reply: Mikhail Arkhipov (Microsoft): "Re: Finding block begin/end in VBScript"
- Messages sorted by: [ date ] [ thread ]
Date: Fri, 24 Dec 2004 11:43:11 -0500
>I would think that if the user gets prompted for the arguments for MsgBox
>that would answer Scott's question. so I tried it.
Isn't MsgBox supported in VB.NET...I think it is.
>
> After I added a vbscript script block, I typed Msg and hit ctrl-space, and
> sure enough, the autocomplete completed the MsgBox word. Good sign. So I
> hit space, and sure enough, i was prompted for the arguments. I entered
> the prompt text, typed a space, expecting to see a dropdown containing the
> vbscript constants for the buttons. However, it did not appear. However, I
> typed vb and pressed ctrl-space, at which point I got a dropdown allowing
> me to select from a lot of choices, unfortunately many of which were not
> applicable. However, this is the same behavior seen in VI6, so I don't see
> any lost functionality here.
>
> I aslo tested InStr and got the same behavior.
What I'm saying is that VS.NET is reacting to those various functions and
keywords because they are a part of the VB.NET language, not because they
are part of VBScript.
I just don't see anything in VS.NET that provides VBScript support. I onlly
see VS.NET jumping to attention when a VB.NET keyword is used. You,
yourself mentioned that VBScript specific items (like constants) are not
provided, while elements that are part of VB.NET are recognized.
>
> Bob Barrows
>
> Mikhail Arkhipov (Microsoft) wrote:
>> But it is not quite 'just color coding' right? ;-) It works like
>> intellisense, it looks like intellisense... :-)
>>
>> Which elements are missing? String type does get intellisense. Type
>>
>> Document.all.toString.
>>
>> You will see String object methods and properties - they are part of
>> the language, not HTML DOM. Could you please provide an example what
>> you expect?
>>
>> Thanks
>>
>> Mikhail Arkhipov (Microsoft)
>> -- This post is provided 'AS IS' with no warranties and confers no
>> rights
>>
>> On 12/23/04 18:25, in article uKD4g9V6EHA.1188@tk2msftngp13.phx.gbl,
>> "Scott M." <s-mar@nospam.nospam> wrote:
>>
>>> But none of these examples have anything to do with VBScript.
>>> You've shown examples of how intelliSense is available with the
>>> Document Object Model and the ASP 3.0 Object Model, not the VBScript
>>> language.
>>>
>>> I could just as well be using JavaScript on the client and server
>>> and get the same intelliSense. What you've shown is language
>>> independent. "Document" is not a part of the VBScript language, nor
>>> is "Server".
>>>
>>>
>>>
>>>
>>> "Mikhail Arkhipov (Microsoft)" <mikhaila@online.microsoft.com> wrote
>>> in message news:BDF0A9CE.9BF9%mikhaila@online.microsoft.com...
>>>> 1. Create new HTML page (or a Web Form)
>>>> 2. Switch default client script to VBScript using document object
>>>> in the property grid.
>>>> 3. Add a client script block.
>>>> 4. In the script block type
>>>>
>>>> document.
>>>>
>>>> Observe intellisense dropdown with document properties.
>>>>
>>>> You can add an HTML element, assign ID to it (say, ID="foo") and
>>>> then type
>>>>
>>>> Foo.
>>>>
>>>> Observe properties available for this element.
>>>> 5. Open existing ASP page or create a new HTML page and rename it
>>>> to ASP. (You may have to close and reopen the document). Add a
>>>> server script block or <% %> block.
>>>> 6. Inside server script type
>>>>
>>>> Server.
>>>>
>>>> Observe properties of the ASP Server object.
>>>>
>>>> 7. You can also get intellisense for ActiveX control properties
>>>> provided control contains property structured and registered type
>>>> library.
>>>>
>>>> Mikhail Arkhipov (Microsoft)
>>>> -- This post is provided 'AS IS' with no warranties and confers no
>>>> rights
>>>>
>>>> On 12/23/04 13:52, in article e5dBMlT6EHA.2032@tk2msftngp13.phx.gbl,
>>>> "Scott
>>>> M." <s-mar@nospam.nospam> wrote:
>
> --
> Microsoft MVP - ASP/ASP.NET
> Please reply to the newsgroup. This email account is my spam trap so I
> don't check it very often. If you must reply off-line, then remove the
> "NO SPAM"
>
- Next message: Bob Barrows [MVP]: "Re: Finding block begin/end in VBScript"
- Previous message: Scott M.: "Re: Finding block begin/end in VBScript"
- In reply to: Bob Barrows [MVP]: "Re: Finding block begin/end in VBScript"
- Next in thread: Bob Barrows [MVP]: "Re: Finding block begin/end in VBScript"
- Reply: Bob Barrows [MVP]: "Re: Finding block begin/end in VBScript"
- Reply: Mikhail Arkhipov (Microsoft): "Re: Finding block begin/end in VBScript"
- Messages sorted by: [ date ] [ thread ]