Solved

ANSI LISP -  recusive automation with IBM DB2 - fortan front end..

Posted on 2010-09-03
3
607 Views
Last Modified: 2013-11-15
I need to perform a recusive automation routine...
0
Comment
Question by:GlobaLevel
3 Comments
 
LVL 10

Author Comment

by:GlobaLevel
ID: 33600554
Pass parameters

http://msdn.microsoft.com/en-us/library/6c3yckfw.aspx

ws
http://www.experts-exchange.com/Programming/Languages/Visual_Basic/Q_21733451.html?sfQueryTermInfo=1+10+30+program+servic+start+window


<StructLayout(LayoutKind.Sequential)> _
     Class NetResource
         Public dwScope As Integer
         Public dwType As Integer
         Public dwDisplayType As Integer
         Public dwUsage As Integer
         Public LocalName As String
         Public RemoteName As String
         Public Comment As String
         Public Provider As String
     End Class
 

' luanch app remotely
'
<DllImport("mpr.dll",CharSet = CharSet.Ansi)> _
Public Shared extern Integer WNetAddConnection2(Property netResource,() As NetResource
End Property
String password, String Username, Integer Flag)
 
Shared  Sub Main(ByVal args() As String)
              Dim myNetResource As NetResource =  New NetResource()
              myNetResource.dwScope = 2'RESOURCE_GLOBALNET
              myNetResource.dwType = 1 'RESOURCETYPE_DISK
              myNetResource.dwDisplayType = 3'RESOURCEDISPLAYTYPE_SHARE
              myNetResource.dwUsage = 1'RESOURCEUSAGE_CONNECTABLE
              myNetResource.LocalName = "w:"
              myNetResource.RemoteName = "\\\\RemoteMachineName\\c$"
              myNetResource.Provider = Nothing
              Dim ret As Integer =  WNetAddConnection2(myNetResource,Nothing,Nothing,0)
End Sub


'-----call vbscript from asp.net
Try omitting the runat for vbscript, because as far as I know, vbscript is only a client side script anyway.
Also try using:
<asp:Button ID="btnEditSave" Text="Edit" OnClick="vbs:btnEditSave_Click" />

code behind..

------------------------------Code Behind-------------------------------------------------------
protected void Page_Load(object sender, EventArgs e)
    {
        if (!IsPostBack)
            Page.ClientScript.RegisterClientScriptBlock(this.GetType(), "MyScript", "<script language='VBScript' type='text/vbscript' src='../MyVBScript.vbs'></script>");            
    }

    protected void GridView1_RowCreated(object sender, GridViewRowEventArgs e)
    {
        if (e.Row.RowType == DataControlRowType.DataRow && e.Row.DataItem != null)
            ((Button)e.Row.FindControl("UnMatchButton")).Attributes.Add("OnClick", "fClick()");            
    }

    protected void GridView1_RowCommand(object sender, GridViewCommandEventArgs e)
    {
            if (e.CommandName == "UnMatch")
                //Call Code for Unmatching.
    }
----------------------------------------------------------------------------------------------
http://www.experts-exchange.com/Programming/Languages/.NET/ASP.NET/Q_22623964.html?sfQueryTermInfo=1+10+30+asp.net+vbscript

---->>>see kens code has  it a db...


'-=-=-=-=-=



Which specifically tells the OnClick procedure that it is to use a vbs function.



0
 
LVL 45

Accepted Solution

by:
Kdo earned 500 total points
ID: 33606874
Hi GlobaLevel,

Can you clarify your question?  Showing a VB sample for a question that wants a recursive Fortran front-end to a DB2 database is a bit confusing.  :)

By the way, DB2 SQL handles recursion quite well.  You may be better served letting DB2 handle the recursion and returning a single result set to you.


Kent
0

Featured Post

Microsoft Certification Exam 74-409

Veeam® is happy to provide the Microsoft community with a study guide prepared by MVP and MCT, Orin Thomas. This guide will take you through each of the exam objectives, helping you to prepare for and pass the examination.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

CCModeler offers a way to enter basic information like entities, attributes and relationships and export them as yEd or erviz diagram. It also can import existing Access or SQL Server tables with relationships.
Whether you've completed a degree in computer sciences or you're a self-taught programmer, writing your first lines of code in the real world is always a challenge. Here are some of the most common pitfalls for new programmers.
Viewers will learn how to properly install Eclipse with the necessary JDK, and will take a look at an introductory Java program. Download Eclipse installation zip file: Extract files from zip file: Download and install JDK 8: Open Eclipse and …
The viewer will learn how to pass data into a function in C++. This is one step further in using functions. Instead of only printing text onto the console, the function will be able to perform calculations with argumentents given by the user.

809 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question