Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
DiscussionsAccessExcelInfoPathOutlookPowerPointPublisherWord
DirectoryUser Groups
Related Topics
Outlook ExpressInternet ExplorerWindowsMS Server ProductsMore Topics ...

MS Office Forum / General MS InfoPath Questions / April 2007

Tip: Looking for answers? Try searching our database.

wscript.echo no workie in my scriptie (Infopath VBSCRIPT)

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
funnybroad - 24 Apr 2007 17:44 GMT
I've got some vbscript behind my Infopath form.  Here's a chunk of it.  The
problem is:  I can't get wscript.echo to work.  

Here's the code:

   Sub Echo_Test_OnClick(eventObj)
   Dim objShell, BtnCode
   Set objShell = CreateObject("WSCript.shell")

   BtnCode = objShell.Popup("Will This Work?", 7, "Answer This Question:",
4 + 32)

   Select Case BtnCode
      case 6      WScript.Echo "case 6"
      case 7      WScript.Echo "case 7"
      case -1     WScript.Echo "case -1"
   End Select
   End Sub

Here's the error message:

   The following error occurred:

   Object required: ''
   File:script.vbs
   Line:282
S.Y.M. Wong-A-Ton - 26 Apr 2007 11:12 GMT
Try XDocument.UI.Alert() instead.
---
S.Y.M. Wong-A-Ton

> I've got some vbscript behind my Infopath form.  Here's a chunk of it.  The
> problem is:  I can't get wscript.echo to work.  
[quoted text clipped - 22 lines]
>     File:script.vbs
>     Line:282
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.