473,378 Members | 1,500 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,378 software developers and data experts.

unexpected end of file error

i get an unexpected end of file at the line below that has databaseKeyValue. Not sure why and how to fix it. Any help would be greatly appreciated.


Expand|Select|Wrap|Line Numbers
  1. private static bool addItemsToDrawing(
  2.     Visio.Page drawingPage)
  3. {
  4.     bool itemsAdded = false;
  5.  
  6. // Add the shapes to the drawing page. The returned list contains
  7.         // the shape IDs of the added shapes.
  8.         Array shapeIDs;
  9.         addShapesToDrawing(drawingPage, out shapeIDs);
  10.  
  11.         if (shapeIDs != null)
  12.         {
  13.             // Loop through each new shape, adding the shape to the map.
  14.             for (int index = shapeIDs.GetLowerBound(0);
  15.                 index <= shapeIDs.GetUpperBound(0);
  16.                 index++)
  17.             {
  18.                 // Get the shape.
  19.                 short shapeID = (short)(int)(shapeIDs.GetValue(index));
  20.                 Visio.Shape newShape = drawingPage.Shapes.get_ItemFromID(shapeID);
  21.  
  22.                 // Add the shape to the map.
  23.                 // This is needed to connect the shapes.
  24.  
  25.                 // The primary key in the database is used in the database
  26.                 // connection table, so we need to save the mapping from 
  27.                 // this database key to the corresponding shape. The 
  28.                 // database key value was placed into each shape's Prop.ID 
  29.                 // value when the database-linked shapes were added to the
  30.                 // drawing.
  31.                 int databaseKeyValue = newShape.get_Cells(_VisioPropCellPrefix + _IDColumn).get_ResultInt((short)Visio.VisUnitCodes.visNumber, 0);
  32.  
  33.                 _ItemShapeIndexMap.Add(databaseKeyValue, newShape.Index);
  34.             }
  35.  
  36.             itemsAdded = true;
  37.         }
  38.  
  39.  
  40.     return itemsAdded;
  41. }
  42.  
  43.  
May 1 '13 #1
2 3456
johny10151981
1,059 1GB
may be your error is not there, you have a missing curly bracket("{}") combination. In general missing curly bracket combination cause this error.
May 2 '13 #2
if i am missing curly brackets wouldn't it not compile then? When i put breakpoints in the code it fails on that line.
May 2 '13 #3

Sign in to post your reply or Sign up for a free account.

Similar topics

1
by: will | last post by:
All I am trying to pass a simple xml file using xmlspy : <?xml version="1.0" standalone="no"?> <inventory> <vehicle> <make>Chevy</make>
2
by: SoSaucily | last post by:
I am getting the 'partially uploaded file' error with uploads over about 4k-5k. $_FILE = 3. Rackin my brain on this one, any help appreciated. Php.ini - upload_max_filesize=2M -...
3
by: Michelle | last post by:
Hi, I'm trying to rollforward my database to end of logs and complete, the first error message i get is - SQL6063N rollforward recovery on database X has stopped on node "0" due to change in log...
2
by: Kumar | last post by:
Need urgent help... I have installed DB2UDB version 7.2 on Windows 2000. When I try to open Command center or Command window it gives me the following error:...
5
by: Photubias | last post by:
I get the above error when issueing the 'db2start' command. Found no info in the net that could help me. I have the V8.1 FP10 installed on SLES 9 x86_64 Any tips? Tx in advance
3
by: tol7481 | last post by:
Hi, I'm trying to deploy a Java stored procedure on DB2 V8 on a Linux box, but I have some problems. I've added to the classpath the following JARs sqllib/java/db2java.zip...
7
by: keley | last post by:
I am trying to use a script to send a list of items from a database. The code is listed below. I get an unexpected T_IF error on the second $mailer->Body line (line 55). If I comment out the 9...
1
by: bytesmalli | last post by:
Hi All, When i'm running the db2start i'm getting following error message. But when i ran it for second time m able to start successfully. Can you please tell me what could be the issue for the...
7
by: Ramk | last post by:
Hi all I am using C#/.Net2.0 I am connecting to a remote shared folder from my C# code using WNetAddConnection2A without mapping to the local drive. A code snippet is: NetResource netRes =...
7
by: dlbuller | last post by:
Hi, I apologize if this question has been asked already. I have searched with no luck. I am trying to output a specifically formatted text file and then change the extension to another program...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 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 former...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.