472,989 Members | 2,658 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

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

Cannot find out missing brace error }

Was editing code, am getting the following errors
} expected
Type or namespace definition, or end-of-file expected
Eyes crossed cannot find code below!

using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Text;
using System.Windows.Forms;
using System.Net;
using System.Net.Sockets;
using System.IO;
using System.Xml;
using System.Xml.XPath;
namespace File_Generation_System
{

public partial class transfer : Form
{
public string nextLine;
public string cardNumber;
public string licenseNumber;
public string oLicenseNumber = null;
public StreamReader sr;
public XmlDataDocument doc;
public string oldplate;
public XmlElement newVrRecord;
public XmlElement newInquiryData;

public transfer()
{
InitializeComponent();
}

private void exitTransferScreenToolStripMenuItem_Click(object
sender, EventArgs e)
{
this.Close();
}

private void transfer_Load(object sender, EventArgs e)
{
//TcpClient tcpclient = new TcpClient("mvs.teale.ca.gov",
Int32.Parse("21"));
//NetworkStream ns = tcpclient.GetStream();
//FileStream fs = File.Open("form1.cs", FileMode.Open);

//int data = fs.ReadByte();
//while (data != -1)
//{
// ns.WriteByte((byte)data);
// data = fs.ReadByte();
//}
//fs.Close();
//ns.Close();
//tcpclient.Close();
}

private void vRInquiriesToolStripMenuItem1_Click(object sender,
EventArgs e)
{

//Create Dataset
DataSet ds = new DataSet();

//Read XML document into dataset
ds.ReadXml("vrdatabase.xml");

foreach (DataColumn col in ds.Tables["inquiry_data"].Columns)
{
MessageBox.Show("columnname=" + col.ColumnName );
}

//This allows for editing
ds.EnforceConstraints = false;

//Create new XML document
doc = new XmlDataDocument(ds);

//Create a nodelist with just Licenses
XmlNodeList nodeLst =
doc.SelectNodes("//vrdatabase/vr_record/inquiry_data/license_number");

//Create new vr_record tag
//newVrRecord = doc.CreateElement("vr_record");

//Create inquiry_data child element
// XmlElement newInquiryData = doc.CreateElement("inquiry_data");
//newVrRecord.AppendChild(newInquiryData);

int nodeTotal = nodeLst.Count;

MessageBox.Show("node total=" + nodeTotal);
//Create Strean reader eventually point to real file
FileStream fileStream = new
FileStream("vrinqout.txt",FileMode.Open,FileAccess .Read);
sr = new StreamReader(fileStream);

//Declare a counter
int totalRecords = 0;

//create the declaration if not created do this on first run or
whenever file
// does not exist
//XmlDeclaration xmldecl = doc.CreateXmlDeclaration("1.0", null,
null);

while ((nextLine = sr.ReadLine()) != null)
{

cardNumber = nextLine.Substring(nextLine.Length - 1, 1);
licenseNumber = nextLine.Substring(0, 7);
if (cardNumber == "1")
{
newVrRecord = doc.CreateElement("vr_record");
newInquiryData = doc.CreateElement("inquiry_data");
newVrRecord.AppendChild(newInquiryData);

XmlElement newLicenseNumber =
doc.CreateElement("license_number");
newLicenseNumber.InnerText = nextLine.Substring(0,7);
newInquiryData.AppendChild(newLicenseNumber);

//Insert call to section to walk thru loaded dataset
to see if
//license number exists.

//updateXmlDatabase(newLicenseNumber.ToString());

}
if (cardNumber == "2")
{

XmlElement regExpireDate =
doc.CreateElement("reg_expire_date");
regExpireDate.InnerText = nextLine.Substring(8, 6);
newInquiryData.AppendChild(regExpireDate);

XmlElement yearModel =
doc.CreateElement("year_model");
yearModel.InnerText = nextLine.Substring(15, 2);
newInquiryData.AppendChild(yearModel);

XmlElement make = doc.CreateElement("make");
make.InnerText = nextLine.Substring(18, 5);
newInquiryData.AppendChild(make);

XmlElement vin = doc.CreateElement("vin");
vin.InnerText = nextLine.Substring(24, 30);
newInquiryData.AppendChild(vin);

XmlElement roCity = doc.CreateElement("ro_city");
roCity.InnerText = nextLine.Substring(55, 13);
newInquiryData.AppendChild(roCity);

XmlElement roZip = doc.CreateElement("ro_zip");
roZip.InnerText = nextLine.Substring(69, 5);
newInquiryData.AppendChild(roZip);

XmlElement roCountyCode =
doc.CreateElement("ro_county_code");
roCountyCode.InnerText = nextLine.Substring(75, 2);
newInquiryData.AppendChild(roCountyCode);
}
if (cardNumber == "3")
{
XmlElement paperIssueDate =
doc.CreateElement("paper_issue_date");
paperIssueDate.InnerText = nextLine.Substring(8, 6);
newInquiryData.AppendChild(paperIssueDate);

XmlElement roNameAndAddressSourceIndicator =
doc.CreateElement("ro_nameaddress_source_indicator ");
roNameAndAddressSourceIndicator.InnerText =
nextLine.Substring(14, 1);

newInquiryData.AppendChild(roNameAndAddressSourceI ndicator);

XmlElement roName = doc.CreateElement("ro_name");
roName.InnerText = nextLine.Substring(15, 30);
newInquiryData.AppendChild(roName);

XmlElement roNameOrAddress =
doc.CreateElement("ro_name_or_address");
roNameOrAddress.InnerText = nextLine.Substring(46,
30);
newInquiryData.AppendChild(roNameOrAddress);
}
if (cardNumber == "4")
{
XmlElement additionalRoNameOrAddress =
doc.CreateElement("additional_ro_name_or_address") ;
additionalRoNameOrAddress.InnerText =
nextLine.Substring(8, 30);
newInquiryData.AppendChild(additionalRoNameOrAddre ss);

XmlElement additionalRoAddress =
doc.CreateElement("additional_ro_address");
additionalRoAddress.InnerText =
nextLine.Substring(31, 30);
newInquiryData.AppendChild(additionalRoAddress);

}
if (cardNumber == "5")
{
XmlElement recordConditionCode =
doc.CreateElement("record_condition_code");
recordConditionCode.InnerText =
nextLine.Substring(8, 2);
newInquiryData.AppendChild(recordConditionCode);

XmlElement recordConditionCodeDate =
doc.CreateElement("record_condition_code_date");
recordConditionCodeDate.InnerText =
nextLine.Substring(11, 6);
newInquiryData.AppendChild(recordConditionCodeDate );

XmlElement recordRemarks =
doc.CreateElement("record_remarks");
recordRemarks.InnerText = nextLine.Substring(18, 30);
newInquiryData.AppendChild(recordRemarks);
}

if (cardNumber == "6")
{
XmlElement errorCode =
doc.CreateElement("error_code");
errorCode.InnerText = nextLine.Substring(8, 2);
newInquiryData.AppendChild(errorCode);

XmlElement errorMessage =
doc.CreateElement("error_message");
errorMessage.InnerText = nextLine.Substring(13, 45);
newInquiryData.AppendChild(errorMessage);

XmlElement errorDate =
doc.CreateElement("error_date");
errorDate.InnerText = nextLine.Substring(59, 6);
newInquiryData.AppendChild(errorDate);
}
if (cardNumber == "7")
{
XmlElement nrlDate = doc.CreateElement("nrl_date");
nrlDate.InnerText = nextLine.Substring(13, 45);
newInquiryData.AppendChild(nrlDate);

XmlElement nrlTransferDate =
doc.CreateElement("nrl_transfer_date");
nrlTransferDate.InnerText = nextLine.Substring(13,
45);
newInquiryData.AppendChild(nrlTransferDate);

XmlElement nrlNameOrMessage =
doc.CreateElement("nrl_name_or_message");
nrlNameOrMessage.InnerText = nextLine.Substring(13,
45);
newInquiryData.AppendChild(nrlNameOrMessage);

XmlElement nrlRecordId =
doc.CreateElement("nrl_record_Id");
nrlRecordId.InnerText = nextLine.Substring(13, 45);
newInquiryData.AppendChild(nrlRecordId);

}
if (cardNumber == "8")
{
XmlElement nrlDate = doc.CreateElement("nrl_date");
nrlDate.InnerText = nextLine.Substring(13, 45);
newInquiryData.AppendChild(nrlDate);

XmlElement nrlTransferDate =
doc.CreateElement("nrl_transfer_date");
nrlTransferDate.InnerText = nextLine.Substring(13,
45);
newInquiryData.AppendChild(nrlTransferDate);

XmlElement nrlNameOrMessage =
doc.CreateElement("nrl_name_or_message");
nrlNameOrMessage.InnerText = nextLine.Substring(13,
45);
newInquiryData.AppendChild(nrlNameOrMessage);

XmlElement nrlRecordId =
doc.CreateElement("nrl_record_Id");
nrlRecordId.InnerText = nextLine.Substring(13, 45);
newInquiryData.AppendChild(nrlRecordId);

}

if (oldplate != licenseNumber)
{
XmlElement newCitationNumber =
doc.CreateElement("citation_number");
newCitationNumber.InnerText = null;
newInquiryData.AppendChild(newCitationNumber);

doc.DocumentElement.AppendChild(newVrRecord);

writeOutXml();
}
//when the old plate != new plate write out XML

oldplate = licenseSwitch(licenseNumber);
} //ends while

private string licenseSwitch(string newplate)
{

oldplate = newplate;

return oldplate;
}
private void writeOutXml()
{

XmlTextWriter tr = new XmlTextWriter("vrdatabase.xml", null);
tr.Formatting = Formatting.Indented;
doc.WriteContentTo(tr);
tr.Close();
}

}//ends tool strip

} //ends public partial class
} //ends namespace

Aug 28 '08 #1
4 1823
1. This really doesn't answer your question
2. I hate to state the obvious.
3. If I don't ask, someone else will...

Does the error not include the offending line number(s)?

I completely understand how it is to go "cross-eyed" staring at the same
code for a period of time

....I dropped it in visual c# express but the text wrapping made it even
harder to understand...but sometimes the "outlining" in visual C# can help
track down missing braces and such


"Toren Valone" <To*********@discussions.microsoft.comwrote in message
news:40**********************************@microsof t.com...
Was editing code, am getting the following errors
} expected
Type or namespace definition, or end-of-file expected
Eyes crossed cannot find code below!

using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Text;
using System.Windows.Forms;
using System.Net;
using System.Net.Sockets;
using System.IO;
using System.Xml;
using System.Xml.XPath;
namespace File_Generation_System
{

public partial class transfer : Form
{
public string nextLine;
public string cardNumber;
public string licenseNumber;
public string oLicenseNumber = null;
public StreamReader sr;
public XmlDataDocument doc;
public string oldplate;
public XmlElement newVrRecord;
public XmlElement newInquiryData;

public transfer()
{
InitializeComponent();
}

private void exitTransferScreenToolStripMenuItem_Click(object
sender, EventArgs e)
{
this.Close();
}

private void transfer_Load(object sender, EventArgs e)
{
//TcpClient tcpclient = new TcpClient("mvs.teale.ca.gov",
Int32.Parse("21"));
//NetworkStream ns = tcpclient.GetStream();
//FileStream fs = File.Open("form1.cs", FileMode.Open);

//int data = fs.ReadByte();
//while (data != -1)
//{
// ns.WriteByte((byte)data);
// data = fs.ReadByte();
//}
//fs.Close();
//ns.Close();
//tcpclient.Close();
}

private void vRInquiriesToolStripMenuItem1_Click(object sender,
EventArgs e)
{

//Create Dataset
DataSet ds = new DataSet();

//Read XML document into dataset
ds.ReadXml("vrdatabase.xml");

foreach (DataColumn col in ds.Tables["inquiry_data"].Columns)
{
MessageBox.Show("columnname=" + col.ColumnName );
}

//This allows for editing
ds.EnforceConstraints = false;

//Create new XML document
doc = new XmlDataDocument(ds);

//Create a nodelist with just Licenses
XmlNodeList nodeLst =
doc.SelectNodes("//vrdatabase/vr_record/inquiry_data/license_number");

//Create new vr_record tag
//newVrRecord = doc.CreateElement("vr_record");

//Create inquiry_data child element
// XmlElement newInquiryData =
doc.CreateElement("inquiry_data");
//newVrRecord.AppendChild(newInquiryData);

int nodeTotal = nodeLst.Count;

MessageBox.Show("node total=" + nodeTotal);
//Create Strean reader eventually point to real file
FileStream fileStream = new
FileStream("vrinqout.txt",FileMode.Open,FileAccess .Read);
sr = new StreamReader(fileStream);

//Declare a counter
int totalRecords = 0;

//create the declaration if not created do this on first run or
whenever file
// does not exist
//XmlDeclaration xmldecl = doc.CreateXmlDeclaration("1.0",
null,
null);

while ((nextLine = sr.ReadLine()) != null)
{

cardNumber = nextLine.Substring(nextLine.Length - 1, 1);
licenseNumber = nextLine.Substring(0, 7);
if (cardNumber == "1")
{
newVrRecord = doc.CreateElement("vr_record");
newInquiryData = doc.CreateElement("inquiry_data");
newVrRecord.AppendChild(newInquiryData);

XmlElement newLicenseNumber =
doc.CreateElement("license_number");
newLicenseNumber.InnerText =
nextLine.Substring(0,7);
newInquiryData.AppendChild(newLicenseNumber);

//Insert call to section to walk thru loaded
dataset
to see if
//license number exists.

//updateXmlDatabase(newLicenseNumber.ToString());

}
if (cardNumber == "2")
{

XmlElement regExpireDate =
doc.CreateElement("reg_expire_date");
regExpireDate.InnerText = nextLine.Substring(8, 6);
newInquiryData.AppendChild(regExpireDate);

XmlElement yearModel =
doc.CreateElement("year_model");
yearModel.InnerText = nextLine.Substring(15, 2);
newInquiryData.AppendChild(yearModel);

XmlElement make = doc.CreateElement("make");
make.InnerText = nextLine.Substring(18, 5);
newInquiryData.AppendChild(make);

XmlElement vin = doc.CreateElement("vin");
vin.InnerText = nextLine.Substring(24, 30);
newInquiryData.AppendChild(vin);

XmlElement roCity = doc.CreateElement("ro_city");
roCity.InnerText = nextLine.Substring(55, 13);
newInquiryData.AppendChild(roCity);

XmlElement roZip = doc.CreateElement("ro_zip");
roZip.InnerText = nextLine.Substring(69, 5);
newInquiryData.AppendChild(roZip);

XmlElement roCountyCode =
doc.CreateElement("ro_county_code");
roCountyCode.InnerText = nextLine.Substring(75, 2);
newInquiryData.AppendChild(roCountyCode);
}
if (cardNumber == "3")
{
XmlElement paperIssueDate =
doc.CreateElement("paper_issue_date");
paperIssueDate.InnerText = nextLine.Substring(8,
6);
newInquiryData.AppendChild(paperIssueDate);

XmlElement roNameAndAddressSourceIndicator =
doc.CreateElement("ro_nameaddress_source_indicator ");
roNameAndAddressSourceIndicator.InnerText =
nextLine.Substring(14, 1);

newInquiryData.AppendChild(roNameAndAddressSourceI ndicator);

XmlElement roName = doc.CreateElement("ro_name");
roName.InnerText = nextLine.Substring(15, 30);
newInquiryData.AppendChild(roName);

XmlElement roNameOrAddress =
doc.CreateElement("ro_name_or_address");
roNameOrAddress.InnerText = nextLine.Substring(46,
30);
newInquiryData.AppendChild(roNameOrAddress);
}
if (cardNumber == "4")
{
XmlElement additionalRoNameOrAddress =
doc.CreateElement("additional_ro_name_or_address") ;
additionalRoNameOrAddress.InnerText =
nextLine.Substring(8, 30);

newInquiryData.AppendChild(additionalRoNameOrAddre ss);

XmlElement additionalRoAddress =
doc.CreateElement("additional_ro_address");
additionalRoAddress.InnerText =
nextLine.Substring(31, 30);
newInquiryData.AppendChild(additionalRoAddress);

}
if (cardNumber == "5")
{
XmlElement recordConditionCode =
doc.CreateElement("record_condition_code");
recordConditionCode.InnerText =
nextLine.Substring(8, 2);
newInquiryData.AppendChild(recordConditionCode);

XmlElement recordConditionCodeDate =
doc.CreateElement("record_condition_code_date");
recordConditionCodeDate.InnerText =
nextLine.Substring(11, 6);

newInquiryData.AppendChild(recordConditionCodeDate );

XmlElement recordRemarks =
doc.CreateElement("record_remarks");
recordRemarks.InnerText = nextLine.Substring(18,
30);
newInquiryData.AppendChild(recordRemarks);
}

if (cardNumber == "6")
{
XmlElement errorCode =
doc.CreateElement("error_code");
errorCode.InnerText = nextLine.Substring(8, 2);
newInquiryData.AppendChild(errorCode);

XmlElement errorMessage =
doc.CreateElement("error_message");
errorMessage.InnerText = nextLine.Substring(13,
45);
newInquiryData.AppendChild(errorMessage);

XmlElement errorDate =
doc.CreateElement("error_date");
errorDate.InnerText = nextLine.Substring(59, 6);
newInquiryData.AppendChild(errorDate);
}
if (cardNumber == "7")
{
XmlElement nrlDate = doc.CreateElement("nrl_date");
nrlDate.InnerText = nextLine.Substring(13, 45);
newInquiryData.AppendChild(nrlDate);

XmlElement nrlTransferDate =
doc.CreateElement("nrl_transfer_date");
nrlTransferDate.InnerText = nextLine.Substring(13,
45);
newInquiryData.AppendChild(nrlTransferDate);

XmlElement nrlNameOrMessage =
doc.CreateElement("nrl_name_or_message");
nrlNameOrMessage.InnerText = nextLine.Substring(13,
45);
newInquiryData.AppendChild(nrlNameOrMessage);

XmlElement nrlRecordId =
doc.CreateElement("nrl_record_Id");
nrlRecordId.InnerText = nextLine.Substring(13, 45);
newInquiryData.AppendChild(nrlRecordId);

}
if (cardNumber == "8")
{
XmlElement nrlDate = doc.CreateElement("nrl_date");
nrlDate.InnerText = nextLine.Substring(13, 45);
newInquiryData.AppendChild(nrlDate);

XmlElement nrlTransferDate =
doc.CreateElement("nrl_transfer_date");
nrlTransferDate.InnerText = nextLine.Substring(13,
45);
newInquiryData.AppendChild(nrlTransferDate);

XmlElement nrlNameOrMessage =
doc.CreateElement("nrl_name_or_message");
nrlNameOrMessage.InnerText = nextLine.Substring(13,
45);
newInquiryData.AppendChild(nrlNameOrMessage);

XmlElement nrlRecordId =
doc.CreateElement("nrl_record_Id");
nrlRecordId.InnerText = nextLine.Substring(13, 45);
newInquiryData.AppendChild(nrlRecordId);

}

if (oldplate != licenseNumber)
{
XmlElement newCitationNumber =
doc.CreateElement("citation_number");
newCitationNumber.InnerText = null;
newInquiryData.AppendChild(newCitationNumber);

doc.DocumentElement.AppendChild(newVrRecord);

writeOutXml();
}
//when the old plate != new plate write out XML

oldplate = licenseSwitch(licenseNumber);
} //ends while

private string licenseSwitch(string newplate)
{

oldplate = newplate;

return oldplate;
}
private void writeOutXml()
{

XmlTextWriter tr = new XmlTextWriter("vrdatabase.xml", null);
tr.Formatting = Formatting.Indented;
doc.WriteContentTo(tr);
tr.Close();
}

}//ends tool strip

} //ends public partial class
} //ends namespace


Aug 28 '08 #2
Hello Toren,

This was probably a simply copy-paste mistake.

The methods "licenseSwitch" and "writeOutXml" are placed *inside* the method
"vRInquiriesToolStripMenuItem1_Click"

Try to move them *below* the "}//ends tool strip", and it should be fine :)

Cheers,

Caio Proiete
www.caioproiete.com

Was editing code, am getting the following errors
} expected
Type or namespace definition, or end-of-file expected
Eyes crossed cannot find code below!
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Text;
using System.Windows.Forms;
using System.Net;
using System.Net.Sockets;
using System.IO;
using System.Xml;
using System.Xml.XPath;
namespace File_Generation_System
{
public partial class transfer : Form
{
public string nextLine;
public string cardNumber;
public string licenseNumber;
public string oLicenseNumber = null;
public StreamReader sr;
public XmlDataDocument doc;
public string oldplate;
public XmlElement newVrRecord;
public XmlElement newInquiryData;
public transfer()
{
InitializeComponent();
}
private void exitTransferScreenToolStripMenuItem_Click(object
sender, EventArgs e)
{
this.Close();
}
private void transfer_Load(object sender, EventArgs e)
{
//TcpClient tcpclient = new TcpClient("mvs.teale.ca.gov",
Int32.Parse("21"));
//NetworkStream ns = tcpclient.GetStream();
//FileStream fs = File.Open("form1.cs", FileMode.Open);
//int data = fs.ReadByte();
//while (data != -1)
//{
// ns.WriteByte((byte)data);
// data = fs.ReadByte();
//}
//fs.Close();
//ns.Close();
//tcpclient.Close();
}
private void vRInquiriesToolStripMenuItem1_Click(object
sender,
EventArgs e)
{
//Create Dataset
DataSet ds = new DataSet();
//Read XML document into dataset
ds.ReadXml("vrdatabase.xml");
foreach (DataColumn col in
ds.Tables["inquiry_data"].Columns)
{
MessageBox.Show("columnname=" + col.ColumnName );
}
//This allows for editing
ds.EnforceConstraints = false;
//Create new XML document
doc = new XmlDataDocument(ds);
//Create a nodelist with just Licenses
XmlNodeList nodeLst =
doc.SelectNodes("//vrdatabase/vr_record/inquiry_data/license_number");
//Create new vr_record tag
//newVrRecord = doc.CreateElement("vr_record");
//Create inquiry_data child element
// XmlElement newInquiryData =
doc.CreateElement("inquiry_data");
//newVrRecord.AppendChild(newInquiryData);
int nodeTotal = nodeLst.Count;

MessageBox.Show("node total=" + nodeTotal);

//Create Strean reader eventually point to real file
FileStream fileStream = new
FileStream("vrinqout.txt",FileMode.Open,FileAccess .Read);
sr = new StreamReader(fileStream);
//Declare a counter
int totalRecords = 0;
//create the declaration if not created do this on first
run or
whenever file
// does not exist
//XmlDeclaration xmldecl = doc.CreateXmlDeclaration("1.0",
null,
null);
while ((nextLine = sr.ReadLine()) != null)
{
cardNumber = nextLine.Substring(nextLine.Length - 1,
1);
licenseNumber = nextLine.Substring(0, 7);
if (cardNumber == "1")
{
newVrRecord = doc.CreateElement("vr_record");
newInquiryData =
doc.CreateElement("inquiry_data");
newVrRecord.AppendChild(newInquiryData);
XmlElement newLicenseNumber =
doc.CreateElement("license_number");
newLicenseNumber.InnerText =
nextLine.Substring(0,7);
newInquiryData.AppendChild(newLicenseNumber);
//Insert call to section to walk thru loaded
dataset
to see if
//license number exists.

//updateXmlDatabase(newLicenseNumber.ToString());

}
if (cardNumber == "2")
{
XmlElement regExpireDate =
doc.CreateElement("reg_expire_date");
regExpireDate.InnerText =
nextLine.Substring(8, 6);
newInquiryData.AppendChild(regExpireDate);
XmlElement yearModel =
doc.CreateElement("year_model");
yearModel.InnerText = nextLine.Substring(15,
2);
newInquiryData.AppendChild(yearModel);
XmlElement make = doc.CreateElement("make");
make.InnerText = nextLine.Substring(18, 5);
newInquiryData.AppendChild(make);
XmlElement vin = doc.CreateElement("vin");
vin.InnerText = nextLine.Substring(24, 30);
newInquiryData.AppendChild(vin);
XmlElement roCity =
doc.CreateElement("ro_city");
roCity.InnerText = nextLine.Substring(55, 13);
newInquiryData.AppendChild(roCity);
XmlElement roZip =
doc.CreateElement("ro_zip");
roZip.InnerText = nextLine.Substring(69, 5);
newInquiryData.AppendChild(roZip);
XmlElement roCountyCode =
doc.CreateElement("ro_county_code");
roCountyCode.InnerText =
nextLine.Substring(75, 2);
newInquiryData.AppendChild(roCountyCode);
}
if (cardNumber == "3")
{
XmlElement paperIssueDate =
doc.CreateElement("paper_issue_date");
paperIssueDate.InnerText =
nextLine.Substring(8, 6);
newInquiryData.AppendChild(paperIssueDate);
XmlElement roNameAndAddressSourceIndicator =
doc.CreateElement("ro_nameaddress_source_indicator ");
roNameAndAddressSourceIndicator.InnerText =
nextLine.Substring(14, 1);
newInquiryData.AppendChild(roNameAndAddressSourceI ndicator);

XmlElement roName =
doc.CreateElement("ro_name");
roName.InnerText = nextLine.Substring(15, 30);
newInquiryData.AppendChild(roName);
XmlElement roNameOrAddress =
doc.CreateElement("ro_name_or_address");
roNameOrAddress.InnerText =
nextLine.Substring(46,
30);
newInquiryData.AppendChild(roNameOrAddress);
}
if (cardNumber == "4")
{
XmlElement additionalRoNameOrAddress =
doc.CreateElement("additional_ro_name_or_address") ;
additionalRoNameOrAddress.InnerText =
nextLine.Substring(8, 30);

newInquiryData.AppendChild(additionalRoNameOrAddre ss);
XmlElement additionalRoAddress =
doc.CreateElement("additional_ro_address");
additionalRoAddress.InnerText =
nextLine.Substring(31, 30);

newInquiryData.AppendChild(additionalRoAddress);
}
if (cardNumber == "5")
{
XmlElement recordConditionCode =
doc.CreateElement("record_condition_code");
recordConditionCode.InnerText =
nextLine.Substring(8, 2);

newInquiryData.AppendChild(recordConditionCode);
XmlElement recordConditionCodeDate =
doc.CreateElement("record_condition_code_date");
recordConditionCodeDate.InnerText =
nextLine.Substring(11, 6);

newInquiryData.AppendChild(recordConditionCodeDate );
XmlElement recordRemarks =
doc.CreateElement("record_remarks");
recordRemarks.InnerText =
nextLine.Substring(18, 30);
newInquiryData.AppendChild(recordRemarks);
}
if (cardNumber == "6")
{
XmlElement errorCode =
doc.CreateElement("error_code");
errorCode.InnerText = nextLine.Substring(8,
2);
newInquiryData.AppendChild(errorCode);
XmlElement errorMessage =
doc.CreateElement("error_message");
errorMessage.InnerText =
nextLine.Substring(13, 45);
newInquiryData.AppendChild(errorMessage);
XmlElement errorDate =
doc.CreateElement("error_date");
errorDate.InnerText = nextLine.Substring(59,
6);
newInquiryData.AppendChild(errorDate);
}
if (cardNumber == "7")
{
XmlElement nrlDate =
doc.CreateElement("nrl_date");
nrlDate.InnerText = nextLine.Substring(13,
45);
newInquiryData.AppendChild(nrlDate);
XmlElement nrlTransferDate =
doc.CreateElement("nrl_transfer_date");
nrlTransferDate.InnerText =
nextLine.Substring(13,
45);
newInquiryData.AppendChild(nrlTransferDate);
XmlElement nrlNameOrMessage =
doc.CreateElement("nrl_name_or_message");
nrlNameOrMessage.InnerText =
nextLine.Substring(13,
45);
newInquiryData.AppendChild(nrlNameOrMessage);
XmlElement nrlRecordId =
doc.CreateElement("nrl_record_Id");
nrlRecordId.InnerText = nextLine.Substring(13,
45);
newInquiryData.AppendChild(nrlRecordId);
}
if (cardNumber == "8")
{
XmlElement nrlDate =
doc.CreateElement("nrl_date");
nrlDate.InnerText = nextLine.Substring(13,
45);
newInquiryData.AppendChild(nrlDate);
XmlElement nrlTransferDate =
doc.CreateElement("nrl_transfer_date");
nrlTransferDate.InnerText =
nextLine.Substring(13,
45);
newInquiryData.AppendChild(nrlTransferDate);
XmlElement nrlNameOrMessage =
doc.CreateElement("nrl_name_or_message");
nrlNameOrMessage.InnerText =
nextLine.Substring(13,
45);
newInquiryData.AppendChild(nrlNameOrMessage);
XmlElement nrlRecordId =
doc.CreateElement("nrl_record_Id");
nrlRecordId.InnerText = nextLine.Substring(13,
45);
newInquiryData.AppendChild(nrlRecordId);
}

if (oldplate != licenseNumber)
{
XmlElement newCitationNumber =
doc.CreateElement("citation_number");
newCitationNumber.InnerText = null;
newInquiryData.AppendChild(newCitationNumber);
doc.DocumentElement.AppendChild(newVrRecord);

writeOutXml();
}
//when the old plate != new plate write out XML
oldplate = licenseSwitch(licenseNumber);

} //ends while

private string licenseSwitch(string newplate)
{
oldplate = newplate;

return oldplate;
}
private void writeOutXml()
{
XmlTextWriter tr = new XmlTextWriter("vrdatabase.xml",
null);
tr.Formatting = Formatting.Indented;
doc.WriteContentTo(tr);
tr.Close();
}
}//ends tool strip

} //ends public partial class
} //ends namespace

Aug 28 '08 #3
Roger, thanks for the reply, yes the errors do include the line numbers, I
have gone thru every } to make sure it has a corresponding {. I know I fixed
these errors in the past but I cannot find this one yet.

"Roger Frost" wrote:
1. This really doesn't answer your question
2. I hate to state the obvious.
3. If I don't ask, someone else will...

Does the error not include the offending line number(s)?

I completely understand how it is to go "cross-eyed" staring at the same
code for a period of time

...I dropped it in visual c# express but the text wrapping made it even
harder to understand...but sometimes the "outlining" in visual C# can help
track down missing braces and such


"Toren Valone" <To*********@discussions.microsoft.comwrote in message
news:40**********************************@microsof t.com...
Was editing code, am getting the following errors
} expected
Type or namespace definition, or end-of-file expected
Eyes crossed cannot find code below!

using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Text;
using System.Windows.Forms;
using System.Net;
using System.Net.Sockets;
using System.IO;
using System.Xml;
using System.Xml.XPath;
namespace File_Generation_System
{

public partial class transfer : Form
{
public string nextLine;
public string cardNumber;
public string licenseNumber;
public string oLicenseNumber = null;
public StreamReader sr;
public XmlDataDocument doc;
public string oldplate;
public XmlElement newVrRecord;
public XmlElement newInquiryData;

public transfer()
{
InitializeComponent();
}

private void exitTransferScreenToolStripMenuItem_Click(object
sender, EventArgs e)
{
this.Close();
}

private void transfer_Load(object sender, EventArgs e)
{
//TcpClient tcpclient = new TcpClient("mvs.teale.ca.gov",
Int32.Parse("21"));
//NetworkStream ns = tcpclient.GetStream();
//FileStream fs = File.Open("form1.cs", FileMode.Open);

//int data = fs.ReadByte();
//while (data != -1)
//{
// ns.WriteByte((byte)data);
// data = fs.ReadByte();
//}
//fs.Close();
//ns.Close();
//tcpclient.Close();
}

private void vRInquiriesToolStripMenuItem1_Click(object sender,
EventArgs e)
{

//Create Dataset
DataSet ds = new DataSet();

//Read XML document into dataset
ds.ReadXml("vrdatabase.xml");

foreach (DataColumn col in ds.Tables["inquiry_data"].Columns)
{
MessageBox.Show("columnname=" + col.ColumnName );
}

//This allows for editing
ds.EnforceConstraints = false;

//Create new XML document
doc = new XmlDataDocument(ds);

//Create a nodelist with just Licenses
XmlNodeList nodeLst =
doc.SelectNodes("//vrdatabase/vr_record/inquiry_data/license_number");

//Create new vr_record tag
//newVrRecord = doc.CreateElement("vr_record");

//Create inquiry_data child element
// XmlElement newInquiryData =
doc.CreateElement("inquiry_data");
//newVrRecord.AppendChild(newInquiryData);

int nodeTotal = nodeLst.Count;

MessageBox.Show("node total=" + nodeTotal);
//Create Strean reader eventually point to real file
FileStream fileStream = new
FileStream("vrinqout.txt",FileMode.Open,FileAccess .Read);
sr = new StreamReader(fileStream);

//Declare a counter
int totalRecords = 0;

//create the declaration if not created do this on first run or
whenever file
// does not exist
//XmlDeclaration xmldecl = doc.CreateXmlDeclaration("1.0",
null,
null);

while ((nextLine = sr.ReadLine()) != null)
{

cardNumber = nextLine.Substring(nextLine.Length - 1, 1);
licenseNumber = nextLine.Substring(0, 7);
if (cardNumber == "1")
{
newVrRecord = doc.CreateElement("vr_record");
newInquiryData = doc.CreateElement("inquiry_data");
newVrRecord.AppendChild(newInquiryData);

XmlElement newLicenseNumber =
doc.CreateElement("license_number");
newLicenseNumber.InnerText =
nextLine.Substring(0,7);
newInquiryData.AppendChild(newLicenseNumber);

//Insert call to section to walk thru loaded
dataset
to see if
//license number exists.

//updateXmlDatabase(newLicenseNumber.ToString());

}
if (cardNumber == "2")
{

XmlElement regExpireDate =
doc.CreateElement("reg_expire_date");
regExpireDate.InnerText = nextLine.Substring(8, 6);
newInquiryData.AppendChild(regExpireDate);

XmlElement yearModel =
doc.CreateElement("year_model");
yearModel.InnerText = nextLine.Substring(15, 2);
newInquiryData.AppendChild(yearModel);

XmlElement make = doc.CreateElement("make");
make.InnerText = nextLine.Substring(18, 5);
newInquiryData.AppendChild(make);

XmlElement vin = doc.CreateElement("vin");
vin.InnerText = nextLine.Substring(24, 30);
newInquiryData.AppendChild(vin);

XmlElement roCity = doc.CreateElement("ro_city");
roCity.InnerText = nextLine.Substring(55, 13);
newInquiryData.AppendChild(roCity);

XmlElement roZip = doc.CreateElement("ro_zip");
roZip.InnerText = nextLine.Substring(69, 5);
newInquiryData.AppendChild(roZip);

XmlElement roCountyCode =
doc.CreateElement("ro_county_code");
roCountyCode.InnerText = nextLine.Substring(75, 2);
newInquiryData.AppendChild(roCountyCode);
}
if (cardNumber == "3")
{
XmlElement paperIssueDate =
doc.CreateElement("paper_issue_date");
paperIssueDate.InnerText = nextLine.Substring(8,
6);
newInquiryData.AppendChild(paperIssueDate);

XmlElement roNameAndAddressSourceIndicator =
doc.CreateElement("ro_nameaddress_source_indicator ");
roNameAndAddressSourceIndicator.InnerText =
nextLine.Substring(14, 1);

newInquiryData.AppendChild(roNameAndAddressSourceI ndicator);

XmlElement roName = doc.CreateElement("ro_name");
roName.InnerText = nextLine.Substring(15, 30);
newInquiryData.AppendChild(roName);

XmlElement roNameOrAddress =
doc.CreateElement("ro_name_or_address");
roNameOrAddress.InnerText = nextLine.Substring(46,
30);
newInquiryData.AppendChild(roNameOrAddress);
}
if (cardNumber == "4")
{
XmlElement additionalRoNameOrAddress =
doc.CreateElement("additional_ro_name_or_address") ;
additionalRoNameOrAddress.InnerText =
nextLine.Substring(8, 30);

newInquiryData.AppendChild(additionalRoNameOrAddre ss);

XmlElement additionalRoAddress =
doc.CreateElement("additional_ro_address");
additionalRoAddress.InnerText =
nextLine.Substring(31, 30);
newInquiryData.AppendChild(additionalRoAddress);

}
if (cardNumber == "5")
{
XmlElement recordConditionCode =
doc.CreateElement("record_condition_code");
recordConditionCode.InnerText =
nextLine.Substring(8, 2);
newInquiryData.AppendChild(recordConditionCode);

XmlElement recordConditionCodeDate =
doc.CreateElement("record_condition_code_date");
recordConditionCodeDate.InnerText =
nextLine.Substring(11, 6);

newInquiryData.AppendChild(recordConditionCodeDate );

XmlElement recordRemarks =
doc.CreateElement("record_remarks");
recordRemarks.InnerText = nextLine.Substring(18,
30);
newInquiryData.AppendChild(recordRemarks);
}

if (cardNumber == "6")
{
XmlElement errorCode =
doc.CreateElement("error_code");
errorCode.InnerText = nextLine.Substring(8, 2);
newInquiryData.AppendChild(errorCode);

XmlElement errorMessage =
doc.CreateElement("error_message");
errorMessage.InnerText = nextLine.Substring(13,
45);
newInquiryData.AppendChild(errorMessage);

XmlElement errorDate =
doc.CreateElement("error_date");
errorDate.InnerText = nextLine.Substring(59, 6);
newInquiryData.AppendChild(errorDate);
}
if (cardNumber == "7")
{
XmlElement nrlDate = doc.CreateElement("nrl_date");
nrlDate.InnerText = nextLine.Substring(13, 45);
newInquiryData.AppendChild(nrlDate);

XmlElement nrlTransferDate =
doc.CreateElement("nrl_transfer_date");
nrlTransferDate.InnerText = nextLine.Substring(13,
45);
newInquiryData.AppendChild(nrlTransferDate);

XmlElement nrlNameOrMessage =
doc.CreateElement("nrl_name_or_message");
nrlNameOrMessage.InnerText = nextLine.Substring(13,
45);
newInquiryData.AppendChild(nrlNameOrMessage);

XmlElement nrlRecordId =
doc.CreateElement("nrl_record_Id");
Aug 28 '08 #4
Thanks!

"Caio Proiete [MCT]" wrote:
Hello Toren,

This was probably a simply copy-paste mistake.

The methods "licenseSwitch" and "writeOutXml" are placed *inside* the method
"vRInquiriesToolStripMenuItem1_Click"

Try to move them *below* the "}//ends tool strip", and it should be fine :)

Cheers,

Caio Proiete
www.caioproiete.com

Was editing code, am getting the following errors
} expected
Type or namespace definition, or end-of-file expected
Eyes crossed cannot find code below!
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Text;
using System.Windows.Forms;
using System.Net;
using System.Net.Sockets;
using System.IO;
using System.Xml;
using System.Xml.XPath;
namespace File_Generation_System
{
public partial class transfer : Form
{
public string nextLine;
public string cardNumber;
public string licenseNumber;
public string oLicenseNumber = null;
public StreamReader sr;
public XmlDataDocument doc;
public string oldplate;
public XmlElement newVrRecord;
public XmlElement newInquiryData;
public transfer()
{
InitializeComponent();
}
private void exitTransferScreenToolStripMenuItem_Click(object
sender, EventArgs e)
{
this.Close();
}
private void transfer_Load(object sender, EventArgs e)
{
//TcpClient tcpclient = new TcpClient("mvs.teale.ca.gov",
Int32.Parse("21"));
//NetworkStream ns = tcpclient.GetStream();
//FileStream fs = File.Open("form1.cs", FileMode.Open);
//int data = fs.ReadByte();
//while (data != -1)
//{
// ns.WriteByte((byte)data);
// data = fs.ReadByte();
//}
//fs.Close();
//ns.Close();
//tcpclient.Close();
}
private void vRInquiriesToolStripMenuItem1_Click(object
sender,
EventArgs e)
{
//Create Dataset
DataSet ds = new DataSet();
//Read XML document into dataset
ds.ReadXml("vrdatabase.xml");
foreach (DataColumn col in
ds.Tables["inquiry_data"].Columns)
{
MessageBox.Show("columnname=" + col.ColumnName );
}
//This allows for editing
ds.EnforceConstraints = false;
//Create new XML document
doc = new XmlDataDocument(ds);
//Create a nodelist with just Licenses
XmlNodeList nodeLst =
doc.SelectNodes("//vrdatabase/vr_record/inquiry_data/license_number");
//Create new vr_record tag
//newVrRecord = doc.CreateElement("vr_record");
//Create inquiry_data child element
// XmlElement newInquiryData =
doc.CreateElement("inquiry_data");
//newVrRecord.AppendChild(newInquiryData);
int nodeTotal = nodeLst.Count;

MessageBox.Show("node total=" + nodeTotal);

//Create Strean reader eventually point to real file
FileStream fileStream = new
FileStream("vrinqout.txt",FileMode.Open,FileAccess .Read);
sr = new StreamReader(fileStream);
//Declare a counter
int totalRecords = 0;
//create the declaration if not created do this on first
run or
whenever file
// does not exist
//XmlDeclaration xmldecl = doc.CreateXmlDeclaration("1.0",
null,
null);
while ((nextLine = sr.ReadLine()) != null)
{
cardNumber = nextLine.Substring(nextLine.Length - 1,
1);
licenseNumber = nextLine.Substring(0, 7);
if (cardNumber == "1")
{
newVrRecord = doc.CreateElement("vr_record");
newInquiryData =
doc.CreateElement("inquiry_data");
newVrRecord.AppendChild(newInquiryData);
XmlElement newLicenseNumber =
doc.CreateElement("license_number");
newLicenseNumber.InnerText =
nextLine.Substring(0,7);
newInquiryData.AppendChild(newLicenseNumber);
//Insert call to section to walk thru loaded
dataset
to see if
//license number exists.

//updateXmlDatabase(newLicenseNumber.ToString());

}
if (cardNumber == "2")
{
XmlElement regExpireDate =
doc.CreateElement("reg_expire_date");
regExpireDate.InnerText =
nextLine.Substring(8, 6);
newInquiryData.AppendChild(regExpireDate);
XmlElement yearModel =
doc.CreateElement("year_model");
yearModel.InnerText = nextLine.Substring(15,
2);
newInquiryData.AppendChild(yearModel);
XmlElement make = doc.CreateElement("make");
make.InnerText = nextLine.Substring(18, 5);
newInquiryData.AppendChild(make);
XmlElement vin = doc.CreateElement("vin");
vin.InnerText = nextLine.Substring(24, 30);
newInquiryData.AppendChild(vin);
XmlElement roCity =
doc.CreateElement("ro_city");
roCity.InnerText = nextLine.Substring(55, 13);
newInquiryData.AppendChild(roCity);
XmlElement roZip =
doc.CreateElement("ro_zip");
roZip.InnerText = nextLine.Substring(69, 5);
newInquiryData.AppendChild(roZip);
XmlElement roCountyCode =
doc.CreateElement("ro_county_code");
roCountyCode.InnerText =
nextLine.Substring(75, 2);
newInquiryData.AppendChild(roCountyCode);
}
if (cardNumber == "3")
{
XmlElement paperIssueDate =
doc.CreateElement("paper_issue_date");
paperIssueDate.InnerText =
nextLine.Substring(8, 6);
newInquiryData.AppendChild(paperIssueDate);
XmlElement roNameAndAddressSourceIndicator =
doc.CreateElement("ro_nameaddress_source_indicator ");
roNameAndAddressSourceIndicator.InnerText =
nextLine.Substring(14, 1);
newInquiryData.AppendChild(roNameAndAddressSourceI ndicator);

XmlElement roName =
doc.CreateElement("ro_name");
roName.InnerText = nextLine.Substring(15, 30);
newInquiryData.AppendChild(roName);
XmlElement roNameOrAddress =
doc.CreateElement("ro_name_or_address");
roNameOrAddress.InnerText =
nextLine.Substring(46,
30);
newInquiryData.AppendChild(roNameOrAddress);
}
if (cardNumber == "4")
{
XmlElement additionalRoNameOrAddress =
doc.CreateElement("additional_ro_name_or_address") ;
additionalRoNameOrAddress.InnerText =
nextLine.Substring(8, 30);

newInquiryData.AppendChild(additionalRoNameOrAddre ss);
XmlElement additionalRoAddress =
doc.CreateElement("additional_ro_address");
additionalRoAddress.InnerText =
nextLine.Substring(31, 30);

newInquiryData.AppendChild(additionalRoAddress);
}
if (cardNumber == "5")
{
XmlElement recordConditionCode =
doc.CreateElement("record_condition_code");
recordConditionCode.InnerText =
nextLine.Substring(8, 2);

newInquiryData.AppendChild(recordConditionCode);
XmlElement recordConditionCodeDate =
doc.CreateElement("record_condition_code_date");
recordConditionCodeDate.InnerText =
nextLine.Substring(11, 6);

newInquiryData.AppendChild(recordConditionCodeDate );
XmlElement recordRemarks =
doc.CreateElement("record_remarks");
recordRemarks.InnerText =
nextLine.Substring(18, 30);
newInquiryData.AppendChild(recordRemarks);
}
if (cardNumber == "6")
{
XmlElement errorCode =
doc.CreateElement("error_code");
errorCode.InnerText = nextLine.Substring(8,
2);
newInquiryData.AppendChild(errorCode);
XmlElement errorMessage =
doc.CreateElement("error_message");
errorMessage.InnerText =
nextLine.Substring(13, 45);
newInquiryData.AppendChild(errorMessage);
XmlElement errorDate =
doc.CreateElement("error_date");
errorDate.InnerText = nextLine.Substring(59,
6);
newInquiryData.AppendChild(errorDate);
}
if (cardNumber == "7")
{
XmlElement nrlDate =
doc.CreateElement("nrl_date");
nrlDate.InnerText = nextLine.Substring(13,
45);
newInquiryData.AppendChild(nrlDate);
XmlElement nrlTransferDate =
doc.CreateElement("nrl_transfer_date");
nrlTransferDate.InnerText =
nextLine.Substring(13,
45);
newInquiryData.AppendChild(nrlTransferDate);
XmlElement nrlNameOrMessage =
doc.CreateElement("nrl_name_or_message");
nrlNameOrMessage.InnerText =
nextLine.Substring(13,
45);
newInquiryData.AppendChild(nrlNameOrMessage);
XmlElement nrlRecordId =
doc.CreateElement("nrl_record_Id");
nrlRecordId.InnerText = nextLine.Substring(13,
45);
newInquiryData.AppendChild(nrlRecordId);
}
if (cardNumber == "8")
{
XmlElement nrlDate =
doc.CreateElement("nrl_date");
nrlDate.InnerText = nextLine.Substring(13,
45);
newInquiryData.AppendChild(nrlDate);
XmlElement nrlTransferDate =
doc.CreateElement("nrl_transfer_date");
nrlTransferDate.InnerText =
nextLine.Substring(13,
45);
newInquiryData.AppendChild(nrlTransferDate);
XmlElement nrlNameOrMessage =
doc.CreateElement("nrl_name_or_message");
nrlNameOrMessage.InnerText =
nextLine.Substring(13,
45);
newInquiryData.AppendChild(nrlNameOrMessage);
XmlElement nrlRecordId =
doc.CreateElement("nrl_record_Id");
nrlRecordId.InnerText = nextLine.Substring(13,
45);
newInquiryData.AppendChild(nrlRecordId);
}

if (oldplate != licenseNumber)
{
XmlElement newCitationNumber =
doc.CreateElement("citation_number");
Aug 28 '08 #5

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

4
by: Vince | last post by:
Hi, I am not used to template and I cannot find what's wrong with this code : Compiler(MSVS 7) complains at line : class iterator : public std::iterator<... Here is the source code
2
by: Middletree | last post by:
This is an ASP-built Intranet app, so I have saved off a static version of the page for reference, and it is located at http://www.middletree.net/err.htm and the page to compare it to is...
1
by: Mullin Yu | last post by:
my web services is reference a vb6 com dll, and if it's registered at the local machine, the web service is working. but, if i put the dll to a z: which is mapping to a network driver and...
13
by: Brad | last post by:
I will also post this in the CR group but because I program in VB maybe somebody here might be able to help. I am working on a new project that incorporates a few forms. I just created my first...
3
by: David T. Ashley | last post by:
Hi, Red Hat Enterprise Linux 4.X. I'm writing command-line PHP scripts for the first time. I get the messages below. What do they mean? Are these operating system library modules, or...
15
by: Bjorn Jensen | last post by:
Hi! An beginner question: Pleas help me with this (-: Error (the arrow points on the s in sqrt) ===== tal.java:6: cannot find symbol symbol : method sqrt(int) location: class tal...
1
by: .Net Sports | last post by:
I'm using Persits.upload module in ASP, and when i use the following form pointed to the object I've always used, i get a "The system cannot find the file specified" error pointing to the line of...
4
by: GHUM | last post by:
The compile works, BUT linking fails: 2.5\Release\psycopg\_psycopg.def -Lc:\python25\libs -Lc: \python25\PCBuild -Lc:/p ostgres/83RC2/lib -lpython25 -lpq -lws2_32 -ladvapi32 -o build...
0
by: lllomh | last post by:
Define the method first this.state = { buttonBackgroundColor: 'green', isBlinking: false, // A new status is added to identify whether the button is blinking or not } autoStart=()=>{
2
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 4 Oct 2023 starting at 18:00 UK time (6PM UTC+1) and finishing at about 19:15 (7.15PM) The start time is equivalent to 19:00 (7PM) in Central...
0
tracyyun
by: tracyyun | last post by:
Hello everyone, I have a question and would like some advice on network connectivity. I have one computer connected to my router via WiFi, but I have two other computers that I want to be able to...
3
NeoPa
by: NeoPa | last post by:
Introduction For this article I'll be using a very simple database which has Form (clsForm) & Report (clsReport) classes that simply handle making the calling Form invisible until the Form, or all...
1
by: Teri B | last post by:
Hi, I have created a sub-form Roles. In my course form the user selects the roles assigned to the course. 0ne-to-many. One course many roles. Then I created a report based on the Course form and...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 1 Nov 2023 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM) Please note that the UK and Europe revert to winter time on...
0
NeoPa
by: NeoPa | last post by:
Introduction For this article I'll be focusing on the Report (clsReport) class. This simply handles making the calling Form invisible until all of the Reports opened by it have been closed, when it...
0
isladogs
by: isladogs | last post by:
The next online meeting of the Access Europe User Group will be on Wednesday 6 Dec 2023 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, Mike...
4
by: GKJR | last post by:
Does anyone have a recommendation to build a standalone application to replace an Access database? I have my bookkeeping software I developed in Access that I would like to make available to other...

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.