Re: IDE or Editor for VBS? --Intellisense support

Tech-Archive recommends: Repair Windows Errors & Optimize Windows Performance



One more question:

How does intellisense work? I thought it was the little window that appears
to show the properties or methods for the object, but it does not appear
when using vbe.

do I have to enable it too? I'm using early binding.

On MSE it works only when choosing edit/intellisense and selecting....

It would be better if it is automatically like in Visual Basic.

Rafael
"Miyahn" <HQF03250@xxxxxxxxxxx> wrote in message
news:e0BMUfoPFHA.1564@xxxxxxxxxxxxxxxxxxxxxxx
> "Rafael T" wrote in message news:uFmeCojPFHA.3076@xxxxxxxxxxxxxxxxxxxx
>> I didn't know that MS script editor existed before, but by seeing this
>> post
>> it got my curiosity.
>>
>> - You said you use Lotus notes objects, ie, etc. How can I add those and
>> others?
>
> You can't add the references on MSE(MS script editor).
> You can add the references for various type-libraries on VBE.
>
> Try my script and select 'Tools'->'References' on VBE menu.
> (I'm not sure English menu expression)
> Open Object Browser(F2), select library, take a look classes and
> members list box.
>
> To add the references by code, change my script as the following.
> ---
> With xlApp.VBE
> On Error Resume Next
> With .ActiveVBProject.References
> 'Reference for Microsoft Internet Controls
> .AddFromGuid "{EAB22AC0-30C1-11CF-A7EB-0000C05BAE0B}",0, 0
> 'Reference for Lotus Notes Automation Classes
> .AddFromGuid "{1CF542E0-D988-11CF-B485-00805F98FACE}", 0, 0
> ---
>
>> - How do I use early binding or late binding to call intellisense?
>
> To use early binding, declare object variables using 'As' clause.
> Note:
> VBS does not support 'As' clause, so you must remove that
> before execution.
> 'As' clauses are only for editing.
>
> To use late binding, declare object variables without 'As' clause.
> (or do not declare.)
>
> Sample sub procedure, 'As' clauses are commented out.
>
> Sub Test()
> Dim IE 'As InternetExplorer
> Dim nSS 'As NOTESSESSION
> Dim nDb 'As NOTESDATABASE
> Set IE = CreateObject("Internetexplorer.Application")
> IE.VISIBLE = True
> IE.NAVIGATE "About:Blank"
> Set nSS = CreateObject("NOTES.NOTESSESSION")
> Set nDb = nSS.CURRENTDATABASE
> MsgBox nDb.FILENAME
> Set nDb = Nothing: Set nSS = Nothing: Set IE = Nothing
> End Sub
>
> --
> Miyahn (Masataka Miyashita) JPN
> Microsoft MVP for Microsoft Office - Excel(Jan 2005 - Dec 2005)
> HQF03250@xxxxxxxxxxx
>


.



Relevant Pages

  • Re: IDE or Editor for VBS?
    ... You can add the references for various type-libraries on VBE. ... 'Reference for Lotus Notes Automation Classes ... > - How do I use early binding or late binding to call intellisense? ... declare object variables using 'As' clause. ...
    (microsoft.public.scripting.vbscript)
  • Re: IDE or Editor for VBS?
    ... > You can't add the references on MSE. ... >> - How do I use early binding or late binding to call intellisense? ... declare object variables using 'As' clause. ... declare object variables without 'As' clause. ...
    (microsoft.public.scripting.vbscript)
  • RE: Maintaining Maximum Platform Compatibility
    ... In this case Late Binding is really the only good option. ... Right now I assume you have choosen some references from the Tools -> ... So this would solve compatibility issues: ... Just compile the code with the libraries you need and voila, ...
    (microsoft.public.excel.programming)
  • Re: Type Library Reference Problem
    ... It's not necessary to remove the references in order to use late ... binding, just to avoid getting reference problems on other systems. ... >>works fine on my PC it fails on the server. ... >> Dim sBuffer As String, Ret As Long, strAlias As String ...
    (microsoft.public.access.modulesdaovba)
  • Re: VBA References
    ... With Late Binding, you don't need the reference at all. ... you don't have the Speech SDK installed" ... instaleld, ... I can look at the References ...
    (microsoft.public.access.modulesdaovba)