Hi,
I have a problem accesing h, when i want to do h.Run() after the if else
structure, i get the following error: (see below for code)
C:\Documents and Settings\Eindwe rk\Mijn documenten\BARC O\Eindwerk\Proj ect
Files\thuis\13d ecember\Aviewer versie02\FileLo ad.cs(417): The type or
namespace name 'h' could not be found (are you missing a using directive or
an assembly reference?)
C:\Documents and Settings\Eindwe rk\Mijn documenten\BARC O\Eindwerk\Proj ect
Files\thuis\13d ecember\Aviewer versie02\FileLo ad.cs(418): The name 'h' does
not exist in the class or namespace 'Aviewerversie0 2.FileLoad'
How can i fix this?
Greetz
JC
LijstNode loper;
loper=(LijstNod e)treeViewSeque nce.Nodes[0];
while(loper.Nod es.Count!=0)
{
if ( loper is GetImageNode )
{
GetImageNode h = (GetImageNode)l oper;
}
else if ( loper is ViewNode )
{
ViewNode h = (ViewNode)loper ;
}
else if ( loper is CastNode )
{
CastNode h = (CastNode)loper ;
}
else if ( loper is FilterNode )
{
FilterNode h = (FilterNode)lop er;
}
else if ( loper is TimerNode )
{
TimerNode h = (TimerNode)lope r;
}
h.Run();
loper=(LijstNod e)h;
loper=(LijstNod e)loper.Nodes[0];
} 3 1156
You have to declare the variable outside of the condition blocks then set
the variable inside the conditions.
"Jeroen Ceuppens" <je************ *@barco.com> wrote in message
news:OU******** ******@tk2msftn gp13.phx.gbl... Hi,
I have a problem accesing h, when i want to do h.Run() after the if else structure, i get the following error: (see below for code)
C:\Documents and Settings\Eindwe rk\Mijn documenten\BARC O\Eindwerk\Proj ect Files\thuis\13d ecember\Aviewer versie02\FileLo ad.cs(417): The type or namespace name 'h' could not be found (are you missing a using directive
or an assembly reference?)
C:\Documents and Settings\Eindwe rk\Mijn documenten\BARC O\Eindwerk\Proj ect Files\thuis\13d ecember\Aviewer versie02\FileLo ad.cs(418): The name 'h' does not exist in the class or namespace 'Aviewerversie0 2.FileLoad'
How can i fix this?
Greetz JC
LijstNode loper;
loper=(LijstNod e)treeViewSeque nce.Nodes[0];
while(loper.Nod es.Count!=0)
{
if ( loper is GetImageNode )
{
GetImageNode h = (GetImageNode)l oper;
}
else if ( loper is ViewNode )
{
ViewNode h = (ViewNode)loper ;
}
else if ( loper is CastNode )
{
CastNode h = (CastNode)loper ;
}
else if ( loper is FilterNode )
{
FilterNode h = (FilterNode)lop er;
}
else if ( loper is TimerNode )
{
TimerNode h = (TimerNode)lope r;
}
h.Run();
loper=(LijstNod e)h;
loper=(LijstNod e)loper.Nodes[0];
}
Hi
That doesn't work either:
it put LijstNode h on top of the code, and this error shows up
C:\Documents and Settings\Eindwe rk\Mijn documenten\BARC O\Eindwerk\Proj ect
Files\thuis\13d ecember\Aviewer versie02\FileLo ad.cs(399): A local variable
named 'h' cannot be declared in this scope because it would give a different
meaning to 'h', which is already used in a 'parent or current' scope to
denote something else
I need the same variable because after the if else block, i Need to the same
operation h.run() wheter it is GetImageNode h, a ViewNode h,..........
"Peter Rilling" <pe***@nospam.r illing.net> schreef in bericht
news:ub******** ******@TK2MSFTN GP11.phx.gbl... You have to declare the variable outside of the condition blocks then set the variable inside the conditions.
"Jeroen Ceuppens" <je************ *@barco.com> wrote in message news:OU******** ******@tk2msftn gp13.phx.gbl... Hi,
I have a problem accesing h, when i want to do h.Run() after the if else structure, i get the following error: (see below for code)
C:\Documents and Settings\Eindwe rk\Mijn
documenten\BARC O\Eindwerk\Proj ect Files\thuis\13d ecember\Aviewer versie02\FileLo ad.cs(417): The type or namespace name 'h' could not be found (are you missing a using directive or an assembly reference?)
C:\Documents and Settings\Eindwe rk\Mijn
documenten\BARC O\Eindwerk\Proj ect Files\thuis\13d ecember\Aviewer versie02\FileLo ad.cs(418): The name 'h'
does not exist in the class or namespace 'Aviewerversie0 2.FileLoad'
How can i fix this?
Greetz JC
LijstNode loper;
loper=(LijstNod e)treeViewSeque nce.Nodes[0];
while(loper.Nod es.Count!=0)
{
if ( loper is GetImageNode )
{
GetImageNode h = (GetImageNode)l oper;
}
else if ( loper is ViewNode )
{
ViewNode h = (ViewNode)loper ;
}
else if ( loper is CastNode )
{
CastNode h = (CastNode)loper ;
}
else if ( loper is FilterNode )
{
FilterNode h = (FilterNode)lop er;
}
else if ( loper is TimerNode )
{
TimerNode h = (TimerNode)lope r;
}
h.Run();
loper=(LijstNod e)h;
loper=(LijstNod e)loper.Nodes[0];
}
I want to write a function for that, but then i hqve got another problem:
see in newsgroup dotnet.framewor k.compactframew ork : losing object type
information
"Peter Rilling" <pe***@nospam.r illing.net> schreef in bericht
news:ub******** ******@TK2MSFTN GP11.phx.gbl... You have to declare the variable outside of the condition blocks then set the variable inside the conditions.
"Jeroen Ceuppens" <je************ *@barco.com> wrote in message news:OU******** ******@tk2msftn gp13.phx.gbl... Hi,
I have a problem accesing h, when i want to do h.Run() after the if else structure, i get the following error: (see below for code)
C:\Documents and Settings\Eindwe rk\Mijn
documenten\BARC O\Eindwerk\Proj ect Files\thuis\13d ecember\Aviewer versie02\FileLo ad.cs(417): The type or namespace name 'h' could not be found (are you missing a using directive or an assembly reference?)
C:\Documents and Settings\Eindwe rk\Mijn
documenten\BARC O\Eindwerk\Proj ect Files\thuis\13d ecember\Aviewer versie02\FileLo ad.cs(418): The name 'h'
does not exist in the class or namespace 'Aviewerversie0 2.FileLoad'
How can i fix this?
Greetz JC
LijstNode loper;
loper=(LijstNod e)treeViewSeque nce.Nodes[0];
while(loper.Nod es.Count!=0)
{
if ( loper is GetImageNode )
{
GetImageNode h = (GetImageNode)l oper;
}
else if ( loper is ViewNode )
{
ViewNode h = (ViewNode)loper ;
}
else if ( loper is CastNode )
{
CastNode h = (CastNode)loper ;
}
else if ( loper is FilterNode )
{
FilterNode h = (FilterNode)lop er;
}
else if ( loper is TimerNode )
{
TimerNode h = (TimerNode)lope r;
}
h.Run();
loper=(LijstNod e)h;
loper=(LijstNod e)loper.Nodes[0];
}
This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics |
by: Linesh Gajera |
last post by:
Hi,
I have unique problem. I have configured RemotingServer running as
Console Application and my Remoting object access Oracle database. My
remoting object make call to Oracle database and returns result if i
run RemotingServer as Console Application. Then i configured
RemotingServer as Windows Service. My Windows Service starts fine, it
also configured Remoting Channels as well. Now problem is remoting
object makes call to oracle...
|
by: srinivas.aki |
last post by:
Hello Guys
This is the small script I have.
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>News Maps</title>
<script type="text/javascript">
function getTags()
{
|
by: Gönen EREN |
last post by:
I want to populate a datalist in edittemplate
the probleme: i get an error while accesing the datagrid
public void DataListEdit(Object src, DataListCommandEventArgs e )
{
DataList.EditItemIndex=e.Item.ItemIndex;
|
by: Pk |
last post by:
Hi,
Im having a problem in forms. I have a mdi parent form named Main, and
a child form named form1.
>From Main form, i have a certain menu item that when clicked, it opens
form1. But the problem is that when I close form1 and I open it again
by accessing the menu, nothing happens.
When I tried to debug it, I put a breakpoint at the menu item
|
by: ras26 |
last post by:
I have a WebSite "App1" which has an external assembly "Lib1".
Inside this external assembly we have developed some classes that derive
from "System.Web.UI.Page". One of these pages is called "WebNotification".
In the WebSite "App1" we create an instance of "WebNotification", but when
this class tries to access some Session variables it generates the following
error:
Session state can only be used when enableSessionState is set to...
| |
by: Mike |
last post by:
Hi,
I have a form with some controls, and a different class that needs to
modify some control properties at run time.
Hoy can I reference the from so I have access to its controls and
therefore being able to modify its properties?
|
by: arturofonseca |
last post by:
I have an event where attendants can register for online. This is 2 day event. I want to be able to disable the same lab on day2 when it has been selected on day1 (so attendants don't select the same lab on two different days).
This is the function I am using...
function DisableOther(a){
var myD = a.name.substring(4, 5);
var myS = a.name.substring(6, 7);
var othD;
if (myD == 1){
othD = '2';
} else {
|
by: SAL |
last post by:
Hello,
I have a Gridview control (.net 2.0) that I'm having trouble getting the
Update button to fire any kind of event or preforming the update. The
datatable is based on a join so I don't know if that's what's causing the
behavior or not. It seems like the Update button should at least do
something.
When the Edit button is clicked, the grid goes into Edit mode and the Cancel
button takes the grid out of Edit mode. So, I don't get what...
|
by: john20 |
last post by:
Hi All,
I am having a problem with accesing function in the page. i have a page say user.aspx in the page load method
i am calling function to validate the user.
it works fine when single user access the page but when another user try to access the page then it crash the
first users processing and empty the session variable.
means when i am calling function in the page load of user.aspx then it is giving me problem.
|
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: Hystou |
last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it.
First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
| |
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: 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: conductexam |
last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one.
At the time of converting from word file to html my equations which are in the word document file was convert into image.
Globals.ThisAddIn.Application.ActiveDocument.Select();...
|
by: TSSRALBI |
last post by:
Hello
I'm a network technician in training and I need your help.
I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs.
The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols.
I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
|
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.
| |