Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How to call a form with parameters
Message
From
05/03/2005 07:50:18
Cetin Basoz
Engineerica Inc.
Izmir, Turkey
 
General information
Forum:
ASP.NET
Category:
Other
Miscellaneous
Thread ID:
00992985
Message ID:
00992993
Views:
19
Set exclusive on/off
is a supported VFPOLEDB command. Call it with ExecuteNonQuery() before other commands. However AFAIK deafult mode is 16 which is nonexclusive (I don't remember I needed it).
Cetin

>Hi Cetin.
>
>Thanks for your reply... I'll have a play around with it.
>
>One other thing taht springs to mind.... In Dot Net, how do you Set Exclu Off.
>(There will be more than one person accessing VFP tables at the same time from a Dot Net App)
>
>
>Regards,
>
>Gerard
>
>>>Hi.
>>>How do you call a form with a parameter, and then use the parameter in the called form.
>>>
>>>(IN VFP, this is done by: Do Form MyCalledForm with MyParam1,MyParam2 and then in the Init of the MyCalled form, The MyParam1 and MyParam2 could be saved to properties of the MyCalledForm
>>>
>>>Any help appreciated.
>>>Regards,
>>>Gerard
>>
>>A form has a constructor (that correspond to init in VFP) just like any other class. Prepare it to accept parameters then create an instance with parameters and show. ie:
>>
>>
>>//...
>>public SecondForm(string passed)
>>{
>>  InitializeComponent();
>>  textBox1.Text = passed;
>>}
>>//...
>>
>>//Caller
>>SecondForm sf = new SecondForm("Some text");
>>sf.Show();
>>
Cetin
Çetin Basöz

The way to Go
Flutter - For mobile, web and desktop.
World's most advanced open source relational database.
.Net for foxheads - Blog (main)
FoxSharp - Blog (mirror)
Welcome to FoxyClasses

LinqPad - C#,VB,F#,SQL,eSQL ... scratchpad
Previous
Reply
Map
View

Click here to load this message in the networking platform