473,404 Members | 2,170 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,404 software developers and data experts.

Namespace Ignoring Empty String Values (URGENT)

I have little hope of resolving this as I have had to contact outside
help.

But I thought I would post it here to see if anyone could add an idea or
solution.

1. I have a form in a Class Control library along with 6 other
namespaces. My root functions are in this form and all the other
namespaces revolve around this form. I add the project as a dll to
another windows project and call its functions there. Option Strict is
on.

2. I compile as a dll and add it to another project.

3. I access the same instance of the form in this dll like this:

Private Shared arrgen As
ArraySoftware.ArrayGeneralNamespace.ArrayGeneral
Public Shared Function getInstance() As
ArraySoftware.ArrayGeneralNamespace.ArrayGeneral
ArraySoftware.ArrayGeneralNamespace.ArrayGeneral
Return arrgen
End Function

4. I have a property in another namespace that is called ItemPrice2 of
the type string. It looks like this:

Private itpr2 As String
Public Property ItemNumberPrice2() As String
Get
Return itpr2
End Get
Set(ByVal Value As String)
itpr2 = Value.ToString
End Set
End Property
5. In the past when the varaible was local to the project and not in a
dll I could say

If ItemPrice2 = "" Then

'perform this action

End If

However if I attempt to do this I get an invalid cast error in this
function.

If on the chance something is present in the string then it works. But
if there isn't then I get the invalid cast errors.

When I step through it appears the value of the screencontents variable
is changed if the string is empty. Does anyone have ideas on how I might
resolve this?

System.InvalidCastException: Cast from string "The program 'app.exe' has
exited with code 0 (0x0).

Function ItemNumberGetPrice2() As Boolean
ItemNumberPrice2 = ""
Try
If ItemNumberNotPriced = True Then
ItemNumberPrice2 = "0.00"
ItemNumberPrice2 = Format(CDbl(ItemNumberPrice3),
"$##0.##0")
Return True
End If
Catch ex As Exception

ArraySoftware.ArrayGeneralNamespace.ArrayGeneral.g etInstance.getInstance.ArrayErrorScreenContents
= "Error Code MBS802-16 " & ex.ToString

ArraySoftware.ArrayGeneralNamespace.ArrayGeneral.g etInstance.getInstance.ArrayErrorGetMainMenu()
Return False
End Try
ArraySoftware.ArrayGeneralNamespace.ArrayGeneral.g etInstance.getInstance.LabelStatus.Text
= "Getting Second Price..."

ArraySoftware.ArrayGeneralNamespace.ArrayGeneral.g etInstance.getInstance.LabelStatus.Refresh()

ArraySoftware.ArrayGeneralNamespace.ArrayGeneral.g etInstance.getInstance.ScreenX
= 6 'x coordinate in text being read

ArraySoftware.ArrayGeneralNamespace.ArrayGeneral.g etInstance.getInstance.ScreenY
= 18 'y coordinate

ArraySoftware.ArrayGeneralNamespace.ArrayGeneral.g etInstance.getInstance.ScreenL
= 10 'length of text in text being read

Try

ArraySoftware.ArrayGeneralNamespace.ArrayGeneral.g etInstance.getInstance.ScreenInformationGet()
ItemNumberPrice2 =
ArraySoftware.ArrayGeneralNamespace.ArrayGeneral.g etInstance.getInstance.ScreenContents
'Trace.WriteLine(String.Format("{0} {1}",
ItemNumberPrice2, ItemNumberPrice2.Length))

'THIS IF ... END IF SECTION IGNORED WHEN STRING IS EMPTY....

If ItemNumberPrice2.Length < 1 Or ItemNumberPrice2 = ""
Or ItemNumberPrice2 = String.Empty Or ItemNumberPrice2 Is Nothing Or
ItemNumberPrice2 = "0" Then
MsgBox("WE are here")
ArraySoftware.ArrayGeneralNamespace.ArrayGeneral.g etInstance.getInstance.LabelStatus.Text
= "No second price.."

ArraySoftware.ArrayGeneralNamespace.ArrayGeneral.g etInstance.getInstance.LabelStatus.Refresh()
ItemNumberNotPricedPrice2 = True
ItemNumberPrice2 = "0.00"
ItemNumberPrice2 = Format(CDbl(ItemNumberPrice2),
"$##0.##0")
Return True
Exit Function
End If
If CDbl(ItemNumberPrice2) > 9999 Then

ArraySoftware.ArrayGeneralNamespace.ArrayGeneral.g etInstance.getInstance.LabelStatus.Text
= "No second price.."

ArraySoftware.ArrayGeneralNamespace.ArrayGeneral.g etInstance.getInstance.LabelStatus.Refresh()
ItemNumberNotPricedPrice2 = True
ItemNumberPrice2 = "0.00"
ItemNumberPrice2 =
Format(CDbl(ItemNumberPrice2.ToString), "$##0.##0")
Return True
Exit Function
End If
If CDbl(ItemNumberPrice2.ToString) = 0 Then

ArraySoftware.ArrayGeneralNamespace.ArrayGeneral.g etInstance.getInstance.LabelStatus.Text
= "No second price.."

ArraySoftware.ArrayGeneralNamespace.ArrayGeneral.g etInstance.getInstance.LabelStatus.Refresh()
ItemNumberNotPricedPrice2 = True
ItemNumberPrice2 = "0.00"
ItemNumberPrice2 =
Format(CDbl(ItemNumberPrice2.ToString), "$##0.##0")
Return True
Exit Function
End If
ItemNumberNotPricedPrice2 = False
ItemNumberPrice2 =
Format(CDbl(ItemNumberPrice2.ToString), "$##0.##0")
Return True
Catch ex As Exception
MsgBox(ItemNumberPrice2.ToString)
Debug.WriteLine(ex.ToString & " " &
ItemNumberPrice2.ToString)

ArraySoftware.ArrayGeneralNamespace.ArrayGeneral.g etInstance.getInstance.ArrayErrorScreenContents
= "Error Code MBS802-17 " & ex.ToString

ArraySoftware.ArrayGeneralNamespace.ArrayGeneral.g etInstance.getInstance.ArrayErrorGetMainMenu()
Return False
End Try

End Function

(The weird thing is I never have the words "The program" in the project.

Kelly Martens
http://www.kjmsolutions.com
ad***@kjmsolutions.com

Nov 20 '05 #1
3 1401
Hi,

Why don’t you use a regex to see if it is a valid number instead of an
empty string?

Dim regNumber As New
System.Text.RegularExpressions.Regex("(^\d*\.?\d*[1-9]+\d*$)|(^[1-9]+\d*\.\d*$)")

If Not regNumber.IsMatch("") Then
MessageBox.Show("Not a good price")
End If

If regNumber.IsMatch("1245.455") Then MessageBox.Show("Good
number")

Ken
-------------

"scorpion53061" <ad***@nospampleasekjmsolutions.com> wrote in message
news:Od**************@tk2msftngp13.phx.gbl:
I have little hope of resolving this as I have had to contact outside
help.

But I thought I would post it here to see if anyone could add an idea or

solution.

1. I have a form in a Class Control library along with 6 other
namespaces. My root functions are in this form and all the other
namespaces revolve around this form. I add the project as a dll to
another windows project and call its functions there. Option Strict is
on.

2. I compile as a dll and add it to another project.

3. I access the same instance of the form in this dll like this:

Private Shared arrgen As
ArraySoftware.ArrayGeneralNamespace.ArrayGeneral
Public Shared Function getInstance() As
ArraySoftware.ArrayGeneralNamespace.ArrayGeneral
ArraySoftware.ArrayGeneralNamespace.ArrayGeneral
Return arrgen
End Function

4. I have a property in another namespace that is called ItemPrice2 of
the type string. It looks like this:

Private itpr2 As String
Public Property ItemNumberPrice2() As String
Get
Return itpr2
End Get
Set(ByVal Value As String)
itpr2 = Value.ToString
End Set
End Property
5. In the past when the varaible was local to the project and not in a
dll I could say

If ItemPrice2 = "" Then

'perform this action

End If

However if I attempt to do this I get an invalid cast error in this
function.

If on the chance something is present in the string then it works. But
if there isn't then I get the invalid cast errors.

When I step through it appears the value of the screencontents variable
is changed if the string is empty. Does anyone have ideas on how I might

resolve this?

System.InvalidCastException: Cast from string "The program 'app.exe' has

exited with code 0 (0x0).

Function ItemNumberGetPrice2() As Boolean
ItemNumberPrice2 = ""
Try
If ItemNumberNotPriced = True Then
ItemNumberPrice2 = "0.00"
ItemNumberPrice2 = Format(CDbl(ItemNumberPrice3),
"$##0.##0")
Return True
End If
Catch ex As Exception
ArraySoftware.ArrayGeneralNamespace.ArrayGeneral.g etInstance.getInstance.Arr
ayErrorScreenContents
= "Error Code MBS802-16 " & ex.ToString
ArraySoftware.ArrayGeneralNamespace.ArrayGeneral.g etInstance.getInstance.Arr
ayErrorGetMainMenu()
Return False
End Try

ArraySoftware.ArrayGeneralNamespace.ArrayGeneral.g etInstance.getInstance.Lab
elStatus.Text
= "Getting Second Price..."
ArraySoftware.ArrayGeneralNamespace.ArrayGeneral.g etInstance.getInstance.Lab
elStatus.Refresh()
ArraySoftware.ArrayGeneralNamespace.ArrayGeneral.g etInstance.getInstance.Scr
eenX
= 6 'x coordinate in text being read
ArraySoftware.ArrayGeneralNamespace.ArrayGeneral.g etInstance.getInstance.Scr
eenY
= 18 'y coordinate
ArraySoftware.ArrayGeneralNamespace.ArrayGeneral.g etInstance.getInstance.Scr
eenL
= 10 'length of text in text being read

Try
ArraySoftware.ArrayGeneralNamespace.ArrayGeneral.g etInstance.getInstance.Scr
eenInformationGet()
ItemNumberPrice2 =

ArraySoftware.ArrayGeneralNamespace.ArrayGeneral.g etInstance.getInstance.Scr
eenContents
'Trace.WriteLine(String.Format("{0} {1}",
ItemNumberPrice2, ItemNumberPrice2.Length))

'THIS IF ... END IF SECTION IGNORED WHEN STRING IS EMPTY....

If ItemNumberPrice2.Length < 1 Or ItemNumberPrice2 = ""
Or ItemNumberPrice2 = String.Empty Or ItemNumberPrice2 Is Nothing Or
ItemNumberPrice2 = "0" Then
MsgBox("WE are here")

ArraySoftware.ArrayGeneralNamespace.ArrayGeneral.g etInstance.getInstance.Lab
elStatus.Text
= "No second price.."
ArraySoftware.ArrayGeneralNamespace.ArrayGeneral.g etInstance.getInstance.Lab
elStatus.Refresh()
ItemNumberNotPricedPrice2 = True
ItemNumberPrice2 = "0.00"
ItemNumberPrice2 = Format(CDbl(ItemNumberPrice2),
"$##0.##0")
Return True
Exit Function
End If
If CDbl(ItemNumberPrice2) > 9999 Then
ArraySoftware.ArrayGeneralNamespace.ArrayGeneral.g etInstance.getInstance.Lab
elStatus.Text
= "No second price.."
ArraySoftware.ArrayGeneralNamespace.ArrayGeneral.g etInstance.getInstance.Lab
elStatus.Refresh()
ItemNumberNotPricedPrice2 = True
ItemNumberPrice2 = "0.00"
ItemNumberPrice2 =
Format(CDbl(ItemNumberPrice2.ToString), "$##0.##0")
Return True
Exit Function
End If
If CDbl(ItemNumberPrice2.ToString) = 0 Then
ArraySoftware.ArrayGeneralNamespace.ArrayGeneral.g etInstance.getInstance.Lab
elStatus.Text
= "No second price.."
ArraySoftware.ArrayGeneralNamespace.ArrayGeneral.g etInstance.getInstance.Lab
elStatus.Refresh()
ItemNumberNotPricedPrice2 = True
ItemNumberPrice2 = "0.00"
ItemNumberPrice2 =
Format(CDbl(ItemNumberPrice2.ToString), "$##0.##0")
Return True
Exit Function
End If
ItemNumberNotPricedPrice2 = False
ItemNumberPrice2 =
Format(CDbl(ItemNumberPrice2.ToString), "$##0.##0")
Return True
Catch ex As Exception
MsgBox(ItemNumberPrice2.ToString)
Debug.WriteLine(ex.ToString & " " &
ItemNumberPrice2.ToString)
ArraySoftware.ArrayGeneralNamespace.ArrayGeneral.g etInstance.getInstance.Arr
ayErrorScreenContents
= "Error Code MBS802-17 " & ex.ToString
ArraySoftware.ArrayGeneralNamespace.ArrayGeneral.g etInstance.getInstance.Arr
ayErrorGetMainMenu()
Return False
End Try

End Function

(The weird thing is I never have the words "The program" in the project.

Kelly Martens
HYPERLINK "http://www.kjmsolutions.com"http://www.kjmsolutions.com
HYPERLINK "mailto:ad***@kjmsolutions.com"ad***@kjmsolutions. com


--
Outgoing mail is certified Virus Free.
Checked by AVG Anti-Virus (http://www.grisoft.com).
Version: 7.0.230 / Virus Database: 263.3.6 - Release Date: 6/25/2004
Nov 20 '05 #2
Solution achieved thanks to the help of Ken Tucker.
"scorpion53061" <ad***@nospampleasekjmsolutions.com> wrote in message
news:Od**************@tk2msftngp13.phx.gbl:
I have little hope of resolving this as I have had to contact outside
help.

But I thought I would post it here to see if anyone could add an idea or

solution.

1. I have a form in a Class Control library along with 6 other
namespaces. My root functions are in this form and all the other
namespaces revolve around this form. I add the project as a dll to
another windows project and call its functions there. Option Strict is
on.

2. I compile as a dll and add it to another project.

3. I access the same instance of the form in this dll like this:

Private Shared arrgen As
ArraySoftware.ArrayGeneralNamespace.ArrayGeneral
Public Shared Function getInstance() As
ArraySoftware.ArrayGeneralNamespace.ArrayGeneral
ArraySoftware.ArrayGeneralNamespace.ArrayGeneral
Return arrgen
End Function

4. I have a property in another namespace that is called ItemPrice2 of
the type string. It looks like this:

Private itpr2 As String
Public Property ItemNumberPrice2() As String
Get
Return itpr2
End Get
Set(ByVal Value As String)
itpr2 = Value.ToString
End Set
End Property
5. In the past when the varaible was local to the project and not in a
dll I could say

If ItemPrice2 = "" Then

'perform this action

End If

However if I attempt to do this I get an invalid cast error in this
function.

If on the chance something is present in the string then it works. But
if there isn't then I get the invalid cast errors.

When I step through it appears the value of the screencontents variable
is changed if the string is empty. Does anyone have ideas on how I might

resolve this?

System.InvalidCastException: Cast from string "The program 'app.exe' has

exited with code 0 (0x0).

Function ItemNumberGetPrice2() As Boolean
ItemNumberPrice2 = ""
Try
If ItemNumberNotPriced = True Then
ItemNumberPrice2 = "0.00"
ItemNumberPrice2 = Format(CDbl(ItemNumberPrice3),
"$##0.##0")
Return True
End If
Catch ex As Exception
ArraySoftware.ArrayGeneralNamespace.ArrayGeneral.g etInstance.getInstance.Arr
ayErrorScreenContents
= "Error Code MBS802-16 " & ex.ToString
ArraySoftware.ArrayGeneralNamespace.ArrayGeneral.g etInstance.getInstance.Arr
ayErrorGetMainMenu()
Return False
End Try

ArraySoftware.ArrayGeneralNamespace.ArrayGeneral.g etInstance.getInstance.Lab
elStatus.Text
= "Getting Second Price..."
ArraySoftware.ArrayGeneralNamespace.ArrayGeneral.g etInstance.getInstance.Lab
elStatus.Refresh()
ArraySoftware.ArrayGeneralNamespace.ArrayGeneral.g etInstance.getInstance.Scr
eenX
= 6 'x coordinate in text being read
ArraySoftware.ArrayGeneralNamespace.ArrayGeneral.g etInstance.getInstance.Scr
eenY
= 18 'y coordinate
ArraySoftware.ArrayGeneralNamespace.ArrayGeneral.g etInstance.getInstance.Scr
eenL
= 10 'length of text in text being read

Try
ArraySoftware.ArrayGeneralNamespace.ArrayGeneral.g etInstance.getInstance.Scr
eenInformationGet()
ItemNumberPrice2 =

ArraySoftware.ArrayGeneralNamespace.ArrayGeneral.g etInstance.getInstance.Scr
eenContents
'Trace.WriteLine(String.Format("{0} {1}",
ItemNumberPrice2, ItemNumberPrice2.Length))

'THIS IF ... END IF SECTION IGNORED WHEN STRING IS EMPTY....

If ItemNumberPrice2.Length < 1 Or ItemNumberPrice2 = ""
Or ItemNumberPrice2 = String.Empty Or ItemNumberPrice2 Is Nothing Or
ItemNumberPrice2 = "0" Then
MsgBox("WE are here")

ArraySoftware.ArrayGeneralNamespace.ArrayGeneral.g etInstance.getInstance.Lab
elStatus.Text
= "No second price.."
ArraySoftware.ArrayGeneralNamespace.ArrayGeneral.g etInstance.getInstance.Lab
elStatus.Refresh()
ItemNumberNotPricedPrice2 = True
ItemNumberPrice2 = "0.00"
ItemNumberPrice2 = Format(CDbl(ItemNumberPrice2),
"$##0.##0")
Return True
Exit Function
End If
If CDbl(ItemNumberPrice2) > 9999 Then
ArraySoftware.ArrayGeneralNamespace.ArrayGeneral.g etInstance.getInstance.Lab
elStatus.Text
= "No second price.."
ArraySoftware.ArrayGeneralNamespace.ArrayGeneral.g etInstance.getInstance.Lab
elStatus.Refresh()
ItemNumberNotPricedPrice2 = True
ItemNumberPrice2 = "0.00"
ItemNumberPrice2 =
Format(CDbl(ItemNumberPrice2.ToString), "$##0.##0")
Return True
Exit Function
End If
If CDbl(ItemNumberPrice2.ToString) = 0 Then
ArraySoftware.ArrayGeneralNamespace.ArrayGeneral.g etInstance.getInstance.Lab
elStatus.Text
= "No second price.."
ArraySoftware.ArrayGeneralNamespace.ArrayGeneral.g etInstance.getInstance.Lab
elStatus.Refresh()
ItemNumberNotPricedPrice2 = True
ItemNumberPrice2 = "0.00"
ItemNumberPrice2 =
Format(CDbl(ItemNumberPrice2.ToString), "$##0.##0")
Return True
Exit Function
End If
ItemNumberNotPricedPrice2 = False
ItemNumberPrice2 =
Format(CDbl(ItemNumberPrice2.ToString), "$##0.##0")
Return True
Catch ex As Exception
MsgBox(ItemNumberPrice2.ToString)
Debug.WriteLine(ex.ToString & " " &
ItemNumberPrice2.ToString)
ArraySoftware.ArrayGeneralNamespace.ArrayGeneral.g etInstance.getInstance.Arr
ayErrorScreenContents
= "Error Code MBS802-17 " & ex.ToString
ArraySoftware.ArrayGeneralNamespace.ArrayGeneral.g etInstance.getInstance.Arr
ayErrorGetMainMenu()
Return False
End Try

End Function

(The weird thing is I never have the words "The program" in the project.

Kelly Martens
http://www.kjmsolutions.com
ad***@kjmsolutions.com


Nov 20 '05 #3
Solution achieved thanks to the help of Ken Tucker.
"scorpion53061" <ad***@nospampleasekjmsolutions.com> wrote in message
news:Od**************@tk2msftngp13.phx.gbl:
I have little hope of resolving this as I have had to contact outside
help.

But I thought I would post it here to see if anyone could add an idea or

solution.

1. I have a form in a Class Control library along with 6 other
namespaces. My root functions are in this form and all the other
namespaces revolve around this form. I add the project as a dll to
another windows project and call its functions there. Option Strict is
on.

2. I compile as a dll and add it to another project.

3. I access the same instance of the form in this dll like this:

Private Shared arrgen As
ArraySoftware.ArrayGeneralNamespace.ArrayGeneral
Public Shared Function getInstance() As
ArraySoftware.ArrayGeneralNamespace.ArrayGeneral
ArraySoftware.ArrayGeneralNamespace.ArrayGeneral
Return arrgen
End Function

4. I have a property in another namespace that is called ItemPrice2 of
the type string. It looks like this:

Private itpr2 As String
Public Property ItemNumberPrice2() As String
Get
Return itpr2
End Get
Set(ByVal Value As String)
itpr2 = Value.ToString
End Set
End Property
5. In the past when the varaible was local to the project and not in a
dll I could say

If ItemPrice2 = "" Then

'perform this action

End If

However if I attempt to do this I get an invalid cast error in this
function.

If on the chance something is present in the string then it works. But
if there isn't then I get the invalid cast errors.

When I step through it appears the value of the screencontents variable
is changed if the string is empty. Does anyone have ideas on how I might

resolve this?

System.InvalidCastException: Cast from string "The program 'app.exe' has

exited with code 0 (0x0).

Function ItemNumberGetPrice2() As Boolean
ItemNumberPrice2 = ""
Try
If ItemNumberNotPriced = True Then
ItemNumberPrice2 = "0.00"
ItemNumberPrice2 = Format(CDbl(ItemNumberPrice3),
"$##0.##0")
Return True
End If
Catch ex As Exception
ArraySoftware.ArrayGeneralNamespace.ArrayGeneral.g etInstance.getInstance.Arr
ayErrorScreenContents
= "Error Code MBS802-16 " & ex.ToString
ArraySoftware.ArrayGeneralNamespace.ArrayGeneral.g etInstance.getInstance.Arr
ayErrorGetMainMenu()
Return False
End Try

ArraySoftware.ArrayGeneralNamespace.ArrayGeneral.g etInstance.getInstance.Lab
elStatus.Text
= "Getting Second Price..."
ArraySoftware.ArrayGeneralNamespace.ArrayGeneral.g etInstance.getInstance.Lab
elStatus.Refresh()
ArraySoftware.ArrayGeneralNamespace.ArrayGeneral.g etInstance.getInstance.Scr
eenX
= 6 'x coordinate in text being read
ArraySoftware.ArrayGeneralNamespace.ArrayGeneral.g etInstance.getInstance.Scr
eenY
= 18 'y coordinate
ArraySoftware.ArrayGeneralNamespace.ArrayGeneral.g etInstance.getInstance.Scr
eenL
= 10 'length of text in text being read

Try
ArraySoftware.ArrayGeneralNamespace.ArrayGeneral.g etInstance.getInstance.Scr
eenInformationGet()
ItemNumberPrice2 =

ArraySoftware.ArrayGeneralNamespace.ArrayGeneral.g etInstance.getInstance.Scr
eenContents
'Trace.WriteLine(String.Format("{0} {1}",
ItemNumberPrice2, ItemNumberPrice2.Length))

'THIS IF ... END IF SECTION IGNORED WHEN STRING IS EMPTY....

If ItemNumberPrice2.Length < 1 Or ItemNumberPrice2 = ""
Or ItemNumberPrice2 = String.Empty Or ItemNumberPrice2 Is Nothing Or
ItemNumberPrice2 = "0" Then
MsgBox("WE are here")

ArraySoftware.ArrayGeneralNamespace.ArrayGeneral.g etInstance.getInstance.Lab
elStatus.Text
= "No second price.."
ArraySoftware.ArrayGeneralNamespace.ArrayGeneral.g etInstance.getInstance.Lab
elStatus.Refresh()
ItemNumberNotPricedPrice2 = True
ItemNumberPrice2 = "0.00"
ItemNumberPrice2 = Format(CDbl(ItemNumberPrice2),
"$##0.##0")
Return True
Exit Function
End If
If CDbl(ItemNumberPrice2) > 9999 Then
ArraySoftware.ArrayGeneralNamespace.ArrayGeneral.g etInstance.getInstance.Lab
elStatus.Text
= "No second price.."
ArraySoftware.ArrayGeneralNamespace.ArrayGeneral.g etInstance.getInstance.Lab
elStatus.Refresh()
ItemNumberNotPricedPrice2 = True
ItemNumberPrice2 = "0.00"
ItemNumberPrice2 =
Format(CDbl(ItemNumberPrice2.ToString), "$##0.##0")
Return True
Exit Function
End If
If CDbl(ItemNumberPrice2.ToString) = 0 Then
ArraySoftware.ArrayGeneralNamespace.ArrayGeneral.g etInstance.getInstance.Lab
elStatus.Text
= "No second price.."
ArraySoftware.ArrayGeneralNamespace.ArrayGeneral.g etInstance.getInstance.Lab
elStatus.Refresh()
ItemNumberNotPricedPrice2 = True
ItemNumberPrice2 = "0.00"
ItemNumberPrice2 =
Format(CDbl(ItemNumberPrice2.ToString), "$##0.##0")
Return True
Exit Function
End If
ItemNumberNotPricedPrice2 = False
ItemNumberPrice2 =
Format(CDbl(ItemNumberPrice2.ToString), "$##0.##0")
Return True
Catch ex As Exception
MsgBox(ItemNumberPrice2.ToString)
Debug.WriteLine(ex.ToString & " " &
ItemNumberPrice2.ToString)
ArraySoftware.ArrayGeneralNamespace.ArrayGeneral.g etInstance.getInstance.Arr
ayErrorScreenContents
= "Error Code MBS802-17 " & ex.ToString
ArraySoftware.ArrayGeneralNamespace.ArrayGeneral.g etInstance.getInstance.Arr
ayErrorGetMainMenu()
Return False
End Try

End Function

(The weird thing is I never have the words "The program" in the project.

Kelly Martens
http://www.kjmsolutions.com
ad***@kjmsolutions.com


Nov 20 '05 #4

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

Similar topics

8
by: Simon Brooke | last post by:
I was debugging a new XML generator tonight and trying to determine why it wasn't working; and realised my dom printer does not output XML namespace declarations. My method to output an Element...
4
by: XML newbie: Urgent pls help! | last post by:
I am using VB.Net. My program is to connect to a remote IPAddress. Once, it verifies the login information it should display the SessionID and enable some button . I appreciate your help and thanku...
1
by: Michael Bray | last post by:
I have some XML that is being generated by an external component and structurally looks like this: <?xml version='1.0' ?> <rootObject xmlns='http://company.com/root.xsd'>...
2
by: Max | last post by:
Hello everyone! I have 2 questions: - Is the default-default namespace "http://www.w3.org/2000/xmlns/" or an empty string("")? - Is the localname property for element without prefix the name...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
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...
0
marktang
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,...
0
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...
0
Oralloy
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,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
agi2029
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,...
0
isladogs
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...

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.