Is posible execute script PLSQL in Visual Basic 2008?

Hi, i'm a beginner in PL/SQL. And i have a question:
How is the procedure for execute script PL/SQL on clic a button in a visual basic 2008 form. Coud you help me please.
I'm sorry for my english but i only speak spanish.
Thanks
Edited by: Edgar Molina on 7/11/2009 08:34 PM

Something like this
   Dim sqlStr As String
   sqlStr = "DECLARE " & vbLf & _
               "your vars declared here " & vbLf & _
               "BEGIN" & vbLf & _
               "your pl/sql code here " & vbLf & _
               "EXCEPTION" & vbLf & _
               "your excepltion handling here " & vbLf & _
               "END;"
   Dim comm As New OracleCommand(sqlStr, MyOracleConnection)
   comm.CommandType = CommandType.Text
   MyOracleConnection.Open()
   comm.ExecuteNonQuery()Max

Similar Messages

  • Daqmx installation to be used in visual basic 2008

    I plan to use PCI-6509 Digital IO in visual basic 2008. I installed NIDAQmx9.5.1.f2.
    After installation, NIMax can detect the hardware(PCI-6509) successfully. NIMax was installed when DAQMX was installing.
    But In VB2008>project>add reference>.NET, I can not see NationalInstruments.daqmx.
    So I can't add it to my vb2008 program's reference.My program use PCI-6509 to control relay.
    my PC has window 7 64bit operating system and the following .NET has been installed already.
    Microsoft.NET compact Framework 2.0 SP2
    Microsoft.NET compact Framework 3.5
    Please let me know if you have any idea?
    Thank you in advance.

    Finally I solved the problem after reading the following document.
    http://digital.ni.com/public.nsf/allkb/0EA34D565632DFE186256E7B00762DCC
    The summary is
    1. I need custom installation.
    2. select NET Framework 3.5 language support. => install this feature to a local drive(do not select subfeatures)
    3. And do not select Measurement Studio Integration under NET Framewrork 3.5 language support.
    Now I can add DAQmx reference in my program without any problem.
    Thank you for everybody who replyed.

  • Microsoft Word Object Library does not find in add reference com visual basic 2008

    I didn't find the Microsoft Word Object Library On
    the COM tab, in visual basic 2008
    how i can add it.
    my purpose that i want to add word in my project and can view and edit in it.

    I didn't find the Microsoft Word Object Library On
    the COM tab, in visual basic 2008
    how i can add it.
    my purpose that i want to add word in my project and can view and edit in it.
    Maybe dumb question from me, but is Microsoft Word installed on the machine?
    AFAIK, you can (optionally) install the "Primary Interop Assemblies" when installing Word. (see also: How to: Install Office Primary Interop Assemblies)
    Armin

  • Sample code of how to execute sql loader from visual basic

    Hi,
    Can anyone please provide me with sample code of how to
    run sql loader from inside a visual basic 6.0 application with Oracle 8.1.7.3 database or please point me to documentation/tech books containing such examples?
    Thanks very much
    John

    You have to use the command shell to activate a file.bat. The Shell command has the following parameters :
    Shell(Pathname, Windows Style )
    [email protected]
    Joel P�rez

  • Unable to load gpib-32.dll when running the visual basic 2008 program

    I installed NI-488.2 into my PC, window 7 64 bit OS.
    In the program >> project> add reference>.NET, I successfully add the NI.4882  into my visual basic  program.
    By the way, this program worked well in another window 7 32 bit PC.
    But when I run the program at ildev(BDINDEX,.........), error comes up as "unable load DLL gpib-32.dll".
    So when I looked at c:\windows\system32, I can not fine gpib-32.dll.
    Doesn't  NI-488.2 driver install gpib-32.dll?
    How can I install gpib-32.dll?

    SeongCho wrote:
    Nyc, thank you for your reply.
    By the way, I think I did all the link explained.
    So I have no problem in  adding  NI488.2 to my program's reference using "add reference".
    The problem is GPIB statement like ildev() looks for "gpib-32.dll".
    But there was no gpib-32.dll installed in "c:\windows\system32" so error comes up with "unable to load gpib-32.dll".
    I did the same procedure in my another PC(window 7 32 bit OS,my current PC is window 7 64 bit OS), and in that PC I can see the gpib-32.dll in that directory and program run without problem.
    I do not know how gpib-32.dll was installed in my previous PC.
    Thanks
    Seong
    Have you looked at the example programs for .NET that install with NI-488.2?
    You need to start thinking in terms of .NET 

  • Unable to install DM6 - asks for Microsoft Visual Basic+++2008 Redistributable

    Laptop Dell 1764 Win7Pro - DM5.
    Just got a 9900 Bold yesterday to replace my Tour 9630. 
    I attempted to install DM6 and received the same error message I received when I had tried to install DM6 a few months ago.   I click file 610_b034_multilanguage.exe and installation begins. Half way through installation a window appears saying that Microsoft Visual C++2008 Redistributable must be installed - Microsoft Visual C++2008 Redistributable - x64 9.0.30729 is listed in the Control Panel>Programs and Features as being installed.
    I noticed that Microsoft Visual C++2005 Redistributable (x-64 Version 8.0.56336 is also installed together with SQL Server 2005.
    I installed DM6 on my XP laptop without any problems.
    I need to install DM6 so that I can back up my 9900 and synchronize.
    Your recommendations would greatly be appreciated.
    Pierre
    <removed>
    EDIT: Personal Information such as e-mail is prohibited for your security. Please review User Guidelines  under section "Be careful."
    Solved!
    Go to Solution.

    It's a pity you didn't post the actual error message you receive...that always helps in searching for solutions...but, perhaps this one helps:
    KB03744 How to silently install BlackBerry Desktop Software
    It's not exact, but perhaps it has a better hint.
    Good luck and let us know!
    Occam's Razor nearly always applies when troubleshooting technology issues!
    If anyone has been helpful to you, please show your appreciation by clicking the button inside of their post. Please click here and read, along with the threads to which it links, for helpful information to guide you as you proceed. I always recommend that you treat your BlackBerry like any other computing device, including using a regular backup schedule...click here for an article with instructions.
    Join our BBM Channels
    BSCF General Channel
    PIN: C0001B7B4   Display/Scan Bar Code
    Knowledge Base Updates
    PIN: C0005A9AA   Display/Scan Bar Code

  • Unable to visual basic 2008 to win7 and win8

    Hi sir,
    When trying to install, clicking to the setup file, I get the first screen windows and then clicking OK to process instalation I can not get further !
    Anxious to hear from you

    Hell jcpakuvey,
    We are lack of info to help you track this issue. So please refer to this article:
    https://support.microsoft.com/en-us/kb/2899270?wa=wsignin1.0
    And collect logs for us:
    Download the
    Microsoft Visual Studio and .NET Framework Log Collection tool
          (http://www.microsoft.com/en-us/download/details.aspx?id=12493)    
    (collect.exe).
    Run the collect.exe tool from the directory where you saved the tool.
    The utility creates a compressed cabinet file of all the VS and .NET logs to %TEMP%\vslogs.cab.
    Post the vslogs.cab file with some descriptions of your issue to the forum.
    And my concern is that Visual Studio Express 2008 is already out of support and I cannot provide a way for you to verify your source. Why you need Express 2008 and do you mind to update to use the latest Visual Studio 2013 Express version? In that way, you
    can verify you source by refer to here
    https://www.visualstudio.com/en-us/downloads/visual-studio-2013-iso-sha1-vs and you can also benifit from many new features.
    By the way, VS Express 2008 ISO download page
    http://blogs.msdn.com/b/wriju/archive/2007/11/21/visual-studio-2008-express-iso-image-download.aspx
    If your package is a webinstaller, then you can try the ISO image above.
    Best regards,
    Barry
    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click
    HERE to participate the survey.

  • Error While executing script task componnent

    Hi,
    I am using script task comp in  my package .script  written in script task comp
    ' Microsoft SQL Server Integration Services Script Task
    ' Write scripts using Microsoft Visual Basic
    ' The ScriptMain class is the entry point of the Script Task.
    Imports System
    Imports System.Data
    Imports System.Math
    Imports Microsoft.SqlServer.Dts.Runtime
    Imports System.IO
    Imports System.Collections
    Public Class clsCompareFileInfo
        Implements IComparer
        Public Function Compare(ByVal x As Object, ByVal y As Object) As Integer Implements IComparer.Compare
            Dim File1 As FileInfo
            Dim File2 As FileInfo
            File1 = DirectCast(x, FileInfo)
            File2 = DirectCast(y, FileInfo)
            Compare = DateTime.Compare(File1.LastWriteTime, File2.LastWriteTime)
        End Function
    End Class
    <System.AddIn.AddIn("ScriptMain", Version:="1.0", Publisher:="", Description:="")> _
    <System.CLSCompliantAttribute(False)> _
    Partial Public Class ScriptMain
        Inherits Microsoft.SqlServer.Dts.Tasks.ScriptTask.VSTARTScriptObjectModelBase
        Enum ScriptResults
            Success = Microsoft.SqlServer.Dts.Runtime.DTSExecResult.Success
            Failure = Microsoft.SqlServer.Dts.Runtime.DTSExecResult.Failure
        End Enum
        Public Sub Main()
            Dim dirinfo As DirectoryInfo
            Dim allFiles() As FileInfo
            dirinfo = New DirectoryInfo(Dts.Variables("gsLaddningsKatalogSokvag").Value.ToString)
            allFiles = dirinfo.GetFiles("*.txt")
            'Sortera filerna efter "senast ändrad" så den fil med äldst "ändrad datum" kommer att laddas först
            Array.Sort(allFiles, New clsCompareFileInfo)
            For Each fl As FileInfo In allFiles
                Dts.Variables("gsInFilNamnMedSokvag").Value = fl.FullName.ToString()
                Dts.Variables("gsInFilNamn").Value = Path.GetFileName(fl.FullName.ToString())
                Exit For
            Next
            Dts.TaskResult = ScriptResults.Success
        End Sub
    End Class
    Error which i ma getting while running..
    Error: System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation. ---> System.ArgumentException: The path is not of a legal form.
       at System.IO.Path.NormalizePathFast(String path, Boolean fullCheck)
       at System.IO.Path.NormalizePath(String path, Boolean fullCheck)
       at System.IO.Path.GetFullPathInternal(String path)
       at System.IO.DirectoryInfo..ctor(String path)
       at ST_338efd96a3e940b0b489d5b5000f3397.vbproj.ScriptMain.Main()
       --- End of inner exception stack trace ---
       at System.RuntimeMethodHandle._InvokeMethodFast(Object target, Object[] arguments, SignatureStruct& sig, MethodAttributes methodAttributes, RuntimeTypeHandle typeOwner)
       at System.RuntimeMethodHandle.InvokeMethodFast(Object target, Object[] arguments, Signature sig, MethodAttributes methodAttributes, RuntimeTypeHandle typeOwner)
       at System.Reflection.RuntimeMethodInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture, Boolean skipVisibilityChecks)
       at System.Reflection.RuntimeMethodInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture)
       at System.RuntimeType.InvokeMember(String name, BindingFlags bindingFlags, Binder binder, Object target, Object[] providedArgs, ParameterModifier[] modifiers, CultureInfo culture, String[] namedParams)
       at System.Type.InvokeMember(String name, BindingFlags invokeAttr, Binder binder, Object target, Object[] args, CultureInfo culture)
       at Microsoft.SqlServer.Dts.Tasks.ScriptTask.VSTATaskScriptingEngine.ExecuteScript()
    Please help.I am using sql server 2008R2 and visual studio 2008 BIDS.

    Hi,
    I am using script task comp in  my package .script  written in script task comp
    ' Microsoft SQL Server Integration Services Script Task
    ' Write scripts using Microsoft Visual Basic
    ' The ScriptMain class is the entry point of the Script Task.
    Imports System
    Imports System.Data
    Imports System.Math
    Imports Microsoft.SqlServer.Dts.Runtime
    Imports System.IO
    Imports System.Collections
    Public Class clsCompareFileInfo
        Implements IComparer
        Public Function Compare(ByVal x As Object, ByVal y As Object) As Integer Implements IComparer.Compare
            Dim File1 As FileInfo
            Dim File2 As FileInfo
            File1 = DirectCast(x, FileInfo)
            File2 = DirectCast(y, FileInfo)
            Compare = DateTime.Compare(File1.LastWriteTime, File2.LastWriteTime)
        End Function
    End Class
    <System.AddIn.AddIn("ScriptMain", Version:="1.0", Publisher:="", Description:="")> _
    <System.CLSCompliantAttribute(False)> _
    Partial Public Class ScriptMain
        Inherits Microsoft.SqlServer.Dts.Tasks.ScriptTask.VSTARTScriptObjectModelBase
        Enum ScriptResults
            Success = Microsoft.SqlServer.Dts.Runtime.DTSExecResult.Success
            Failure = Microsoft.SqlServer.Dts.Runtime.DTSExecResult.Failure
        End Enum
        Public Sub Main()
            Dim dirinfo As DirectoryInfo
            Dim allFiles() As FileInfo
            dirinfo = New DirectoryInfo(Dts.Variables("gsLaddningsKatalogSokvag").Value.ToString)
            allFiles = dirinfo.GetFiles("*.txt")
            'Sortera filerna efter "senast ändrad" så den fil med äldst "ändrad datum" kommer att laddas först
            Array.Sort(allFiles, New clsCompareFileInfo)
            For Each fl As FileInfo In allFiles
                Dts.Variables("gsInFilNamnMedSokvag").Value = fl.FullName.ToString()
                Dts.Variables("gsInFilNamn").Value = Path.GetFileName(fl.FullName.ToString())
                Exit For
            Next
            Dts.TaskResult = ScriptResults.Success
        End Sub
    End Class
    Error which i ma getting while running..
    Error: System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation. --->
    System.ArgumentException: The path is not of a legal form.
    Hi SR_MCTS, 
    The error message how the path is not of a legal form, please take a look at the highlight content in above message. Please try to use the following code:
    dirinfo = new DirectoryInfo(Dts.Variables["User::Local_Dir"].Value.ToString)
    Please ensure you have configure the vaild path for "Local_Dir" variable. For more information, you can take a look at the following thread:
    http://social.msdn.microsoft.com/forums/sqlserver/en-US/f073ecef-37ed-4a4c-bee6-d9ef66ff471d/filesystem-task-issue-ssis
    Regards,
    Elvis Long
    TechNet Community Support

  • Visual basic 2013 and sql server 2014

    now a days I am using visual basic 2013 front end and sql sever back end
    I want that when I enter custID on vb form in a textbox and press enter all the relevant record of the entered cutID get display on the respective textbox. Please do help me sen code on my email is [email protected]
    I am using the following code:-
    Private Sub txtCno_KeyDown(ByVal sender As Object, ByVal e As System.Windows.Forms.KeyEventArgs) Handles
    txtCNo.KeyDown
            If e.KeyCode = Keys.Enter Then
                cn.Open()
                Dim cmd As New SqlCommand("SELET * FROM course WHERE cno=" & Val(txtCNo.Text))
                cmd.ExecuteNonQuery()
                cn.Close()
                txtCNo.Text = ""
                txtName.Text = ""
                txtNoDay.Text = ""
            End If
        End Sub

    Hi hrjafri,
    As the issue is more related to Visual Basic programming, I would like to recommend you post the question in the Visual Basic forum at 
    https://social.msdn.microsoft.com/Forums/vstudio/en-US/home?forum=vbgeneral . It is appropriate and more experts will assist you.
    Additionally, there are a related article and a similar thread for your reference.
    How To Use A Database In Your Program
    http://bytes.com/topic/net/insights/635615-how-use-database-your-program
    Retriving data from sql server into textbox
    https://social.msdn.microsoft.com/Forums/vstudio/en-US/f405a590-eda3-454e-a486-f90042c32c48/retriving-data-from-sql-server-into-textbox-using-visual-basic-2008?forum=vbgeneral
    Thanks,
    Lydia Zhang

  • Visual Studio 2008 does not open .rptproj 2008 projects

    I have installed
    - SQL Server 2008 original version with SP1 and the Business Intelligence Development Studio
    - Visual Studio 2008 with SP1.
    I am told that Reporting Services 2008 is part of the Business Intelligence Development Studio 2008,
    however when I try to open my Reporting Services 2008 .rptproj files with Visual Studio 2008, they will not open.
    The error message is:
    'C:\vs2008\CWReportsVS2008\CWReportsVS2008\CWReportsVS2008.rptproj' cannot be opened because its project type (.rptproj) is not supported by this version of the application.
    To open it, please use a version that supports this type of project.
    My VS 2008 cofiguration is:
    SQL Server Reporting Services  
    Microsoft SQL Server Reporting Services Designers Version 10.0.2531.0
    Microsoft Visual Studio 2008 Version 9.0.30729.4462 QFE Installed Edition: Enterprise
    Microsoft .NET Framework Version 3.5 SP1
    Microsoft Visual Basic 2008, C# 2008, C++ 2008
    Microsoft Visual Studio 2008 Team Explorer
    Microsoft Visual Studio 2008 Tools for Office
    Microsoft Visual Studio Team System 2008 Development Edition
    Microsoft Visual Web Developer 2008
    Crystal Reports Basic for Visual Studio 2008
    Microsoft Visual Studio 2008 Team Explorer - ENU Service Pack 1
    Microsoft Visual Studio Team System 2008 Development Edition - ENU Service Pack 1
    Microsoft SQL Server Analysis Services Designer
    Microsoft SQL Server Integration Services Designer
    various hot fixes
    various security updates
    various team foundation updates
    My computer configuration is:
    Windows XP, Professional, Version 2002, Service Pack 3
    My SQL Server Configuration is:
    Microsoft SQL Server Management Studio 10.0.2531.0
    Microsoft Analysis Services Client Tools 10.0.1600.22
    Microsoft Data Access Components (MDAC) 3.85.1132
    Microsoft MSXML 2.6 3.0 4.0 5.0 6.0
    Microsoft Internet Explorer 8.0.6001.18702
    Microsoft .NET Framework 2.0.50727.3615
    Operating System 5.1.2600
    Is there something I haven't installed yet?

    Hi,
    This issue might be caused because your VS2008 did not yet install BIDS report project. So, please open the New Project dialogue to check if there is Business Intelligence Development Studio component in the Project Types pane in your vs 2008. If it
    is not there, install this component (can from the SQL server intallation client tools) so that you can open Reporting Services 2008 .rptproj files in the VS2008.
    thanks,
    Jerry

  • Error executing Stored Procedure that returns a recordset in Visual Basic 6

    Hello, i tried to use the example in the link posted as a response to my question in a previous thread, and in Visual Basic 6, when i execute the Stored procedure it gives me the following error:
    This is the package created as indicated in the example FAQ you posted.
    package types
    as
    type cursorType is ref cursor;
    end;
    This is the procedure created as indicated in the example FAQ you posted.
    PROCEDURE SP_TITUVALO(T_BR IN VARCHAR2,
    P_Cursor OUT TYPES.cursorType )
    AS
    BEGIN
    OPEN P_Cursor FOR
    SELECT * FROM TASAS WHERE BR=T_BR AND TASA > 0;
    END;
    This is the code used to execute the Stored Procedure in VB6:
    Dim objConn As New ADODB.Connection
    Dim connString
    Dim cmdStoredProc As New ADODB.Command
    Dim param1 As New ADODB.Parameter
    Dim RS As ADODB.Recordset
    Set param1 = cmdStoredProc.CreateParameter("T_BR", adVarChar, adParamInput, 255, "97")
    cmdStoredProc.Parameters.Append param1
    objConn.Open strconex
    Set cmdStoredProc.ActiveConnection = objConn
    cmdStoredProc.CommandText = "SP_TITUVALO"
    cmdStoredProc.CommandType = adCmdStoredProc
    Set RS = cmdStoredProc.Execute
    This is the error returned:
    ORA-06550: line 1, column 7:
    PLS-00306: wrong number or types of arguments in call to 'SP_TITUVALO'
    ORA-06550: line 1, column 7:
    PL/SQL: Statement ignored
    ****************************************************************

    Juan,
    Not sure about FAQ you are referring to, but it seems that you need to set PLSQLRSet property of ADODB.Command to TRUE. Because if you fail to do so - errors with refcursors are likely to happen.
    Consider:
    Set objConn = CreateObject("ADODB.Connection")
    objConn.ConnectionString = "Provider=OraOLEDB.Oracle;Persist Security Info=False;Data Source=test9ora;User ID=max;Password=blabla"
    objConn.Open
    'Dim cmdStoredProc
    Set cmdStoredProc = CreateObject("ADODB.Command")
    Dim param1
    Set param1 = cmdStoredProc.CreateParameter("T_BR", adVarChar, adParamInput, 255, "97")
    param1.Value = "X"
    cmdStoredProc.Parameters.Append param1
    'Dim RS
    Set cmdStoredProc.ActiveConnection = objConn
    'The following line was missed out
    cmdStoredProc.Properties("PLSQLRSet") = True
    cmdStoredProc.CommandText = "SP_TITUVALO"
    cmdStoredProc.CommandType = adCmdStoredProc
    Set RS = cmdStoredProc.ExecuteThis works fine, at least for me.
    Cheers.

  • Need help creating full battery alert using visual basic script

    Hi,
    I have been searching for resources, programs and code that will create an alert for me to unplug my charger when my laptop
    battery is charged to full (or almost full).
    The only problem with this code is that
    Line 13: iRemaining (or RemainingCapacity called from BatteryStatus returns a 0 (might be a floating point which I can't figure out why). I even checked the microsoft documentation and its supposed to be a percentage.
    I want to get either the current percentage of the battery or the total Fullchargedcapacity and the EstimatedRemainingCapacity to find the % of battery level.
    Essentially what I am asking is how can I return the battery % using visual basic script.
    Help!
    The Code:
    1 set oLocator = CreateObject("WbemScripting.SWbemLocator")
    2 set oServices = oLocator.ConnectServer(".","root\wmi")
    3 set oResults = oServices.ExecQuery("select * from batteryfullchargedcapacity")
    4 for each oResult in oResults iFull = oResult.FullChargedCapacity
    5 next
    6
    7 while (1)
    8 set oResults = oServices.ExecQuery("select * from batterystatus")
    9 for each oResult in oResults
    10 iRemaining = oResult.RemainingCapacity
    12 bCharging = oResult.Charging
    12 next
    13 iPercent = ((iRemaining / iFull) * 100) mod 100
    14 if bCharging and (iPercent > 95) Then msgbox "Battery is at " & iPercent "%",vbInformation,"Battery monitor"
    15 wscript.sleep 30000 ' (30 seconds)
    16 wend

    14 if bCharging and (iPercent > 95) Then msgbox "Battery is at " & iPercent "%",vbInformation,"Battery monitor"
    On my Windows 7 machine your script returns the desired percentage (after adding the missing "&" to the right of "iPercent" in Line 14).

  • Running a Visual Basic Script...

    Hi,
    Is there a way to run a visual basic script from a director project?
    Thanks

    You can use Buddy API to run a vbs script file.
    ie.
    baOpenFile( _movie.path & "My Script.vbs", "Normal" )
    You could also try the inbuilt open command but I haven't tested it.

  • How to execute script VB script at Outlook 2010

    Hi,
    I need the procedure to execute the script "How to sign or encrypt mail messages programmatically" stated at http://support.microsoft.com/kb/2636465.
    Thanks in advance!

    Hi SccMadmin09,
    There are two way to encrypt emails or messages in MS-Outlook:
    1.) Manual
    2.) By using VB script (as you shared the needful source)
    Now, you are stucking at the point “How to run or execute this VB code in Outlook?”
    It’s quite simple, first enable the Developer Tab for your Outlook program by following the given path:
    File >> Options >> Customize Ribbon >> Select the Developer box (from the right pane) >> Ok
    Now, you will see a new menu having name of “Developer”. Click on it and start creating own VB based macros via making a click on “Visual Basic” button.
    There is an interesting article (written by Daine Poremsky):
    http://www.slipstick.com/developer/how-to-use-outlooks-vba-editor/
    Note:  Also sure about the security factor of Macros while enabling it.
    Thanks
    Clark Kent

  • Type Mismatch error while calling a Java Function from Visual Basic 6.0...

    Hi,
    I'm having a problem in calling the Java Applet's Function from Visual Basic. First, I'm getting the handle of the Java Applet and components of it using "Document.Applets(n)" which is a HTML function. I'm calling this function from Visual Basic. My code is something like this...
    ' // Web1 is IE Browser in my Form.
    Dim Ap,Comp
    Dim Bol as Boolean
    Bol = true
    Ap = Web1.Document.Applets(0).getWindow() ' \\ Gets the Parent Window.
    Ap.setTitle("My Java Applet") ' \\ Sets the Title of the window.
    msgbox Ap.getVisibility() ' \\ This will return a Java boolean ( true or false )
    Ap.setVisibility(Bol) ' \\ Function Syntax is : void setVisibility(boolean b)
    Here in my code , i'm able to call any function that which accepts Integer or String but not boolean. So, i m facing problem with Ap.setVisibility() function. It gives me a "Type mismatch error" while executing it. Can you please tell me a way to do this from Visual Basic !
    I'm using Visual Basic 6.0, Windows 2000 , J2SDK 1.4.2_05.
    Please help me Friends.
    Thanks and Regards,
    Srinivas Annam.

    Hi
    I am not sure about this solution. try this
    Declare a variable as variant and store the boolean value in that variable and then use in ur method.
    Post ur reply in this forum.
    bye for now
    sat

Maybe you are looking for

  • Cannot open and update IPhoto after upgrading to OXYosemite

    From the App store, I downloaded and installed OXYosemite. There are 2 more updates available: iPhoto and iMovie. When I try to upload them, the notice I get is "Update Unavailable with This Apple ID  This update is not available for this Apple ID ei

  • FSB + Other troubles.

    I have been having many issues with my new MSI K7T266-Pro-A. Here are my problems: 1) I have a xp1800, with a new badass fan. I have a 420w ps along with a msi geforce2 TI. My average cpu temp is between 100 - 110 f.  I have a big server case, so tha

  • In Invoice Printing back paga T & C over lapping with first page Item text.

    HI, I am using sap script to Print invoice. I am printing Line item and its Item text one first page and Next page. secondly I am also printing Terms & condition on every back page. Problem is.. I am getting 300 Item text line to print in First page

  • Runtime.exec() hangs with 1.4.1

    Hello altogether, I am trying to execute a command with Runtime.getRuntime.exec() I have already taken care of capturing the output and I observe that depending of the program I try to execute the process hangs. I am using JRE 1.4.1_02 under Redhat 7

  • DOCK - Stocks do not work, Why?

    Everything works on my iMac Dock except Stocks. It will show the symbol, but will not show the changes in dollars or percentage. Anyone else having this problem?