VBScript InputBox() Permission denied. Error 800A0046.
GenoPro Home  |  Get Started With My Genealogy Tree  |  Buy  |  Login  |  Privacy  |  Search  |  Site Map
 
GenoPro Support Forum
Home        Members    Who's On
Welcome Guest ( Login | Register )
        



VBScript InputBox() Permission denied. Error 800A0046. Expand / Collapse
Author
Message
Post #22090 Posted 7/13/2008 10:57:36 AM


Famous Writer

Famous WriterFamous WriterFamous WriterFamous WriterFamous WriterFamous WriterFamous WriterFamous Writer This user is a contributor to FamilyTrees.GenoPro.com This user is an important contributor to the translation of GenoPro This user is an important contributor to the GenoPro community 

Group: Customers
Last Login: Today @ 11:02:25 AM
GenoPro Version: 2.0.1.6
Posts: 476, Visits: 1,264
Dan,
I'm practising my programming and noticed that, within Genopro, the VBScript 'InputBox()' function doesn't work.
I got instead the error message: Permission denied. Error 800A0046.
Could you explain the problem?
Thank you,
JC
Post #22091 Posted 7/13/2008 11:14:48 AM


Legendary Master

Legendary MasterLegendary MasterLegendary MasterLegendary MasterLegendary MasterLegendary MasterLegendary MasterLegendary MasterLegendary Master This user is an important contributor to the translation of GenoPro 

Group: Administrators
Last Login: Today @ 9:21:17 AM
GenoPro Version: 2.4.0.3
Posts: 3,523, Visits: 14,875
MsgBox and InputBox are client-side interaction functions. The scripting engine within report generator has not been designed to be interactive. Ron bypassed the interaction by using an external Active X control for creating HTML forms allowing the user to change the report parameters.

According to the technical documentation, I need to do is implement IActiveScriptSiteWindow...


Post #22092 Posted 7/13/2008 12:08:11 PM


Legendary Master

Legendary MasterLegendary MasterLegendary MasterLegendary MasterLegendary MasterLegendary MasterLegendary MasterLegendary MasterLegendary Master This user is an important contributor to the translation of GenoPro 

Group: Administrators
Last Login: Today @ 9:21:17 AM
GenoPro Version: 2.4.0.3
Posts: 3,523, Visits: 14,875
I made an update to support MsgBox and InputBox.  If you download and install http://www.genopro.com/download/InstallGenoPro.2.0.1.6.exe, you will get the changes including the missing Contacts column.

Feel free to download the attachment Interactive MsgBox.zip to get started.

nResult = MsgBox("Are you sure you want to continue?", vbYesNoCancel, "GenoPro Report Generator")
If (nResult = vbYes) Then
 Report.WriteLn "Continue"
Else
 Report.WriteLn "Do NOT Continue"
End If




  Post Attachments 
Interactive MsgBox.zip (5 views, 727 bytes)

Post #22094 Posted 7/13/2008 4:44:25 PM


Famous Writer

Famous WriterFamous WriterFamous WriterFamous WriterFamous WriterFamous WriterFamous WriterFamous Writer This user is a contributor to FamilyTrees.GenoPro.com This user is an important contributor to the translation of GenoPro This user is an important contributor to the GenoPro community 

Group: Customers
Last Login: Today @ 11:02:25 AM
GenoPro Version: 2.0.1.6
Posts: 476, Visits: 1,264
Thanks Dan,
Your brief Interactive MsgBox skin works. That is with VBScript.
I also tried the jscript 'window.prompt()' function but this one doesn't seem to work.
Sorry to ask this question but as I am also learning jscript, I wonder if the problem's due to a wrong syntax/missing code from me or is it again another Report Generator limitation/blockage?
JC
Post #22095 Posted 7/13/2008 5:40:29 PM


Legendary Master

Legendary MasterLegendary MasterLegendary MasterLegendary MasterLegendary MasterLegendary MasterLegendary MasterLegendary MasterLegendary Master This user is an important contributor to the translation of GenoPro 

Group: Administrators
Last Login: Today @ 9:21:17 AM
GenoPro Version: 2.4.0.3
Posts: 3,523, Visits: 14,875
jcguasp (7/13/2008)
I also tried the jscript 'window.prompt()' function but this one doesn't seem to work.
Sorry to ask this question but as I am also learning jscript, I wonder if the problem's due to a wrong syntax/missing code from me or is it again another Report Generator limitation/blockage?

GenoPro's report generator does not block anything.  The message Permission Denied was displayed by the VBScript engine after querying GenoPro for the interface IActiveScriptSiteWindow.  Since GenoPro was not supporting IActiveScriptSiteWindow and this interface was necessary to display a message box, then the script engine concluded the best error would be persmission denied.

I don't know about the JScript window.prompt() function.  I am learning scripting as you do...

Post #22097 Posted 7/14/2008 5:01:37 AM


Grand Master

Grand MasterGrand MasterGrand MasterGrand MasterGrand MasterGrand MasterGrand MasterGrand Master This user is a contributor to FamilyTrees.GenoPro.com This user is an important contributor to the GenoPro community 

Group: Customers
Last Login: Today @ 4:11:09 AM
GenoPro Version: 2.0.1.6
Posts: 1,151, Visits: 5,399
jcguasp (7/13/2008)
I also tried the jscript 'window.prompt()' function but this one doesn't seem to work.

My understanding is that the 'window' object is only available in a web browser, hence cannot be used from the Report Generator, only when running the script from an HTML page under browser control.


'lego audio video erro ergo disco' or "I read, I listen, I watch, I make mistakes, therefore I learn"
« Prev Topic | Next Topic »


Reading This Topic Expand / Collapse
Active Users: 0 (0 guests, 0 members, 0 anonymous members)
No members currently viewing this topic.
Forum Moderators: GenoProSupport, JcMorin, Ron

Permissions Expand / Collapse

All times are GMT -5:00, Time now is 2:36 PM

Copyright 1998-2008 GenoPro. All rights reserved. GenoPro and the GenoPro logo are trademarks.