Re: Finding block begin/end in VBScript
From: Bob Barrows [MVP] (reb01501_at_NOyahoo.SPAMcom)
Date: 12/24/04
- Next message: Rahul Khedekar: "How to quit excel application in DTS using VBScript"
- Previous message: Ole Rasmussen: "What's wrong here"
- In reply to: Mikhail Arkhipov (Microsoft): "Re: Finding block begin/end in VBScript"
- Next in thread: Scott M.: "Re: Finding block begin/end in VBScript"
- Reply: Scott M.: "Re: Finding block begin/end in VBScript"
- Messages sorted by: [ date ] [ thread ]
Date: Fri, 24 Dec 2004 08:07:38 -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.
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.
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: Rahul Khedekar: "How to quit excel application in DTS using VBScript"
- Previous message: Ole Rasmussen: "What's wrong here"
- In reply to: Mikhail Arkhipov (Microsoft): "Re: Finding block begin/end in VBScript"
- Next in thread: Scott M.: "Re: Finding block begin/end in VBScript"
- Reply: Scott M.: "Re: Finding block begin/end in VBScript"
- Messages sorted by: [ date ] [ thread ]