Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How to call vb.net(exe) under vfp and pass parameter
Message
From
26/01/2007 10:18:11
 
 
To
26/01/2007 10:06:46
Alexandre Palma
Harms Software, Inc.
Alverca, Portugal
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Environment versions
Visual FoxPro:
VFP 9 SP1
OS:
Windows XP SP2
Network:
Windows 2003 Server
Database:
MS SQL Server
Miscellaneous
Thread ID:
01189036
Message ID:
01189620
Views:
9
Hi Alexandre,

i got an error message - type "myform" is not define. what should i do next.
thanks,
ryan


>Ryan what you will need to do then is create a main sub and make that the startup for the exe.
>bellow is a simple example of the main sub you can change it to your needs and enter some error checking.
>
>Module Startup
>    Public Sub Main(ByVal cmdArgs As String())
>        Dim form As myform
>        If cmdArgs.Length > 0 Then
>            form.textbox1.text = cmdArgs(0).Trim
>        End If
>        Application.Run(form)
>    End Sub
>End Module
>
>
>>Dear Alexandre,
>>
>>
>> all i want is to run my application in vb.net and pass the parameter using vfp, i tried Sergey's command and it works load my apps and not to show the cmd window, but the parameter is not working
>>
>>my command in vfp is this
>>
RUN /n C:\xmlup\bin\hbisample.exe Param1 = 12345
>>
>>my command in vb.net form load is this
>>
>>
>>Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
>>       Me.TextBox1.Text = param1
>>End Sub
>>
>>
>> I want to pass the value of param1 to the textbox of running form, any idea on how to do it?
>>
>>Thanks and Regards,
>>Ryan
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform