I have a main form frmMain and second form frmMember,
I declare a variable at the top of the frmMember as
Dim memberStr as String
In the main form,
Dim MemberForm as frmMember
MemberForm = new frmMember()
if MemberForm.Show Dialog...... = .. then
' I want to read the variable of the memberStr in MemberForm
end if 7 1472
Is the variable on the "sub" form a PUBLIC variable?
-Joe
On Thu, 20 Nov 2003 09:47:06 +1100, "Alan"
<NO************ **@yahoo.com.au > wrote: I have a main form frmMain and second form frmMember,
I declare a variable at the top of the frmMember as Dim memberStr as String
In the main form,
Dim MemberForm as frmMember
MemberForm = new frmMember()
if MemberForm.Show Dialog...... = .. then ' I want to read the variable of the memberStr in MemberForm
end if
"Alan" <NO************ **@yahoo.com.au > wrote in message
news:eu******** ******@TK2MSFTN GP09.phx.gbl... I have a main form frmMain and second form frmMember,
I declare a variable at the top of the frmMember as Dim memberStr as String
In the main form,
Dim MemberForm as frmMember
MemberForm = new frmMember()
if MemberForm.Show Dialog...... = .. then ' I want to read the variable of the memberStr in MemberForm
end if
If I'm understanding you correctly, dim memberStr as Protected Friend or
Public, then you can simply reference the variable as MemberForm.memb erStr
HTH
Sueffel
---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system ( http://www.grisoft.com).
Version: 6.0.538 / Virus Database: 333 - Release Date: 11/10/2003
I tried to refer this variable by :
if MemberForm.Show Dialog...... = .. then
' I want to read the variable of the memberStr in MemberForm
MemberForm.....
end if
The problem is the intellisense did not show up the variable name.
"Sueffel" <so*****@somewh ere.com> wrote in message
news:eG******** ********@tk2msf tngp13.phx.gbl. .. "Alan" <NO************ **@yahoo.com.au > wrote in message news:eu******** ******@TK2MSFTN GP09.phx.gbl... I have a main form frmMain and second form frmMember,
I declare a variable at the top of the frmMember as Dim memberStr as String
In the main form,
Dim MemberForm as frmMember
MemberForm = new frmMember()
if MemberForm.Show Dialog...... = .. then ' I want to read the variable of the memberStr in MemberForm
end if
If I'm understanding you correctly, dim memberStr as Protected Friend
or Public, then you can simply reference the variable as MemberForm.memb erStr
HTH Sueffel
--- Outgoing mail is certified Virus Free. Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.538 / Virus Database: 333 - Release Date: 11/10/2003
"Alan" <NO************ **@yahoo.com.au > schrieb I tried to refer this variable by :
if MemberForm.Show Dialog...... = .. then ' I want to read the variable of the memberStr in MemberForm MemberForm..... end if
The problem is the intellisense did not show up the variable name.
Did you declare memberStr as Public or Friend meanwhile?
--
Armin http://www.plig.net/nnq/nquote.html http://www.netmeister.org/news/learn2quote.html
I just declare it as :
Dim memberStr as String
at the top of the frmMember.
What keyword should I use in order to used used by other form ?
Thank you !
"Armin Zingler" <az*******@free net.de> wrote in message
news:Oj******** ******@TK2MSFTN GP11.phx.gbl... "Alan" <NO************ **@yahoo.com.au > schrieb I just declare it as : Dim memberStr as String at the top of the frmMember.
What keyword should I use in order to used used by other form ?
As Jo, Sueffel and I wrote:
Public memberStr as String
-- Armin
http://www.plig.net/nnq/nquote.html http://www.netmeister.org/news/learn2quote.html This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics |
by: mharness |
last post by:
Hello,
I'm new at this. Thanks for your help.
I have form which displays a customer record and a datagrid of that
customer's orders. I want to read the value of the OrderID (which is the
keyfield), write it to a session variable, redirect to another form where I
read the session variable and display the order detail.
How do I read the OrderID value when the user clicks on a select button in a
|
by: AnnMarie |
last post by:
<script language="JavaScript" type="text/javascript">
<!--
function validate(theForm)
{
var validity = true; // assume valid
if(frmComments.name.value=='' && validity == true)
{
alert('Your full name is required. Please enter your full name!');
validity = false;
frmComments.name.focus();
|
by: dumbo |
last post by:
Hello,
who gives one more shining solution to me?
My application load form "A". The form "A" by means of a push-button load
form "B" that in its turn by means of a push-button load form "C". Form "B"
contains one variable "Private"
"VarB". How I can read the value of "VarB" from form "C"? All
the form come loaded with the following brace of instructions:
Sub Button2_Click(ByVal sender As System.Object, ByVal and As
System.EventArgs)...
|
by: damn |
last post by:
Hi,
in short what I'm trying to do: pass a variable from a form that's posted
to a certain page, to the same page. The variable is extracted with
$_REQUEST. Next, another form in the same page is submitted, again to the
same page. Following that, I have code depending on the submission of the
latter form. In that code, I try to do something with the variable that
has been submitted with the first form, but it's not there anymore. I...
|
by: abdoelmasry |
last post by:
Hi Friends
i need help in sessions
im passing variables between pages using sessions
this is the main page thats mean the home page
the main page have table to show messages for users , it have also the site style
<?
session_start();
echo
| |
by: menyki |
last post by:
How do i declare a variable in a form if i want to reference to the variable from another form. Below is a code on a form called updatemortalityForm, some variable on this form, i want to make use of them on another form called predictForm. how do i declare these variables so that i can make use of them on another form
Public Class updtmortalityForm
Inherits System.Windows.Forms.Form
Public vivax1Integer, ovale1Integer,...
|
by: istillshine |
last post by:
When I control if I print messages, I usually use a global variable
"int silent". When I set "-silent" flag in my command line
parameters, I set silent = 1 in my main.c.
I have many functions that may print some messages.
foo(...)
{
if (!silent)
|
by: Michael Munch |
last post by:
Hi
I want to read the value of af text-field, create dynamic, in a form.
Se below a small test-site to do that (but readning fails):
I use the function Test_Read for reading the value from the dynamic create
text-field "txtName".
I thanks...
|
by: kkshansid |
last post by:
i want to pass 2 variable from one form to another form one is section name which is the column value which is working problem is that i also want another variable culumn name so both variable should make a suitable query
select * from student where $columnname=$columnvalue
|
by: marktang |
last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look !
Part I. Meaning of...
|
by: Oralloy |
last post by:
Hello folks,
I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>".
The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed.
This is as boiled down as I can make it.
Here is my compilation command:
g++-12 -std=c++20 -Wnarrowing bit_field.cpp
Here is the code in...
| |
by: Hystou |
last post by:
Overview:
Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
|
by: tracyyun |
last post by:
Dear forum friends,
With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
|
by: agi2029 |
last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own....
Now, this would greatly impact the work of software developers. The idea...
|
by: isladogs |
last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM).
In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules.
He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms.
Adolph will...
|
by: adsilva |
last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
|
by: 6302768590 |
last post by:
Hai team
i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
| |
by: muto222 |
last post by:
How can i add a mobile payment intergratation into php mysql website.
| |