B2026-056-Syntax-problem-in-XY-plot
This commit is contained in:
@@ -283,7 +283,7 @@ namespace XYPlots
|
|||||||
{
|
{
|
||||||
if (!File.Exists(FileName))
|
if (!File.Exists(FileName))
|
||||||
{
|
{
|
||||||
if (BaseLnSettings.blBaseLine == false) // B2026-056 suppress messages when running baseline.
|
if (!BaseLnSettings.blBaseLine) // B2026-056 suppress messages when running baseline.
|
||||||
{
|
{
|
||||||
// File does not exist, show error message
|
// File does not exist, show error message
|
||||||
MessageBox.Show(String.Format("X/Y Plot File {0} Does Not Exist", FileName), "Error Opening X/Y Plot File");
|
MessageBox.Show(String.Format("X/Y Plot File {0} Does Not Exist", FileName), "Error Opening X/Y Plot File");
|
||||||
@@ -297,7 +297,7 @@ namespace XYPlots
|
|||||||
}
|
}
|
||||||
catch (Exception e)
|
catch (Exception e)
|
||||||
{
|
{
|
||||||
if (BaseLnSettings.blBaseLine == false) // B2026-056 suppress messages when running baseline.
|
if (!BaseLnSettings.blBaseLine) // B2026-056 suppress messages when running baseline.
|
||||||
{
|
{
|
||||||
// cannot open the x/y plot file
|
// cannot open the x/y plot file
|
||||||
MessageBox.Show(e.Message, String.Format("Error Opening {0} for Reading", FileName));
|
MessageBox.Show(e.Message, String.Format("Error Opening {0} for Reading", FileName));
|
||||||
@@ -316,7 +316,7 @@ namespace XYPlots
|
|||||||
}
|
}
|
||||||
catch (Exception e)
|
catch (Exception e)
|
||||||
{
|
{
|
||||||
if (BaseLnSettings.blBaseLine == false) // B2026-056 suppress messages when running baseline.
|
if (!BaseLnSettings.blBaseLine) // B2026-056 suppress messages when running baseline.
|
||||||
{
|
{
|
||||||
MessageBox.Show(e.Message, String.Format("Error Reading {0}", FileName));
|
MessageBox.Show(e.Message, String.Format("Error Reading {0}", FileName));
|
||||||
return false;
|
return false;
|
||||||
@@ -328,7 +328,7 @@ namespace XYPlots
|
|||||||
}
|
}
|
||||||
catch (Exception e)
|
catch (Exception e)
|
||||||
{
|
{
|
||||||
if (BaseLnSettings.blBaseLine == false) // B2026-056 suppress messages when running baseline.
|
if (!BaseLnSettings.blBaseLine) // B2026-056 suppress messages when running baseline.
|
||||||
{
|
{
|
||||||
MessageBox.Show(e.Message, String.Format("Error Closing {0}", FileName));
|
MessageBox.Show(e.Message, String.Format("Error Closing {0}", FileName));
|
||||||
return false;
|
return false;
|
||||||
@@ -459,7 +459,7 @@ namespace XYPlots
|
|||||||
char retval;
|
char retval;
|
||||||
StringBuilder Lbuff = new StringBuilder();
|
StringBuilder Lbuff = new StringBuilder();
|
||||||
retval = NextChar();
|
retval = NextChar();
|
||||||
if (retval != '"' && retval != '\x1C' && BaseLnSettings.blBaseLine == false) // open double quote
|
if (retval != '"' && retval != '\x1C' && !BaseLnSettings.blBaseLine) // open double quote
|
||||||
MessageBox.Show("Double Quote not found", "Syntax problem in XY Plot");
|
MessageBox.Show("Double Quote not found", "Syntax problem in XY Plot");
|
||||||
retval = NextChar();
|
retval = NextChar();
|
||||||
while (retval != 0 && retval != '\n')
|
while (retval != 0 && retval != '\n')
|
||||||
@@ -1453,7 +1453,7 @@ namespace XYPlots
|
|||||||
}
|
}
|
||||||
private void PrintStackError(string relation, int limit)
|
private void PrintStackError(string relation, int limit)
|
||||||
{
|
{
|
||||||
if (BaseLnSettings.blBaseLine == false) // B2026-056 suppress messages when running baseline.
|
if (!BaseLnSettings.blBaseLine) // B2026-056 suppress messages when running baseline.
|
||||||
{
|
{
|
||||||
MessageBox.Show(String.Format("Position Stack Pointer {0} {1}", relation, limit.ToString()), "Print Stack Error");
|
MessageBox.Show(String.Format("Position Stack Pointer {0} {1}", relation, limit.ToString()), "Print Stack Error");
|
||||||
}
|
}
|
||||||
@@ -1674,7 +1674,7 @@ namespace XYPlots
|
|||||||
}
|
}
|
||||||
private void err_exit(string msg, string msg2)
|
private void err_exit(string msg, string msg2)
|
||||||
{
|
{
|
||||||
if (BaseLnSettings.blBaseLine == false) // B2026-056 suppress messages when running baseline.
|
if (!BaseLnSettings.blBaseLine) // B2026-056 suppress messages when running baseline.
|
||||||
{
|
{
|
||||||
MessageBox.Show(msg + "\n" + msg2 + "\n\n This p=Process Will Terminate", "\n## ERROR ## - ");
|
MessageBox.Show(msg + "\n" + msg2 + "\n\n This p=Process Will Terminate", "\n## ERROR ## - ");
|
||||||
Environment.Exit(255);
|
Environment.Exit(255);
|
||||||
|
|||||||
Reference in New Issue
Block a user