Link to home
Start Free TrialLog in
Avatar of Peter Chan
Peter ChanFlag for Hong Kong

asked on

Problem to the line

Hi,
I get this problem
https://dl.dropboxusercontent.com/u/40211031/tt383.png

due to this line

                shop.Add(shopName)

upon that the error happens, I see the value of ShopName is

https://dl.dropboxusercontent.com/u/40211031/tt384.png

why?
Avatar of GrahamSkan
GrahamSkan
Flag of United Kingdom of Great Britain and Northern Ireland image

Always please post the text of error messages. Searches will not be able to find the text of a picture, especially if it is on another site.

In this case, the picture shows something in a far-eastern script, which is no help at all to most of us, so could you try to translate, please? Google has an on-line translator which you might be able to use.
Avatar of Peter Chan

ASKER

Here is the error I've got
輸入字串格式不正確
I don't even see any code behind those links..
I got the error as shown in above.
As Graham wrote: Many experts are from the Western world.

Your links only show

User generated image
Graham also asked for a translation.. Well Bing tells me

User generated image
So, when this is a correct translation - I have no clue, if it is - then you need to post your code.
Otherwise the answer is simple: Just enter the text input in the correct format.
I encounter the problem to last line below
            If (shopcodehold = "" Or shopCode <> shopcodehold) Then
                shop.Add(shopName)
				...

Open in new window

I encounter the problem to last line below
    Private shopcodelist As New ArrayList, shop As New ArrayList, weeks As New ArrayList
	...
            If (shopcodehold = "" Or shopCode <> shopcodehold) Then
                shop.Add(shopName)
				...

Open in new window

What does shopName contain?

btw, post a concise and complete example. Create a console application which shows this behavior. You will see, that often when creating such an test, that you will find the error on your own. And when not, you have a good starting point for a question.
Hi,
I further get the error message with stacktrace like

Conversion from string " " to type 'Double' is not valid.    於 Microsoft.VisualBasic.CompilerServices.Conversions.ToDouble(String Value, NumberFormatInfo NumberFormat)
   於 Microsoft.VisualBasic.CompilerServices.Operators.AddObject(Object Left, Object Right)
   於 KongTaiToolbar.StoreTurnoverCompareReport.CreateReportSheet(Int32 startRowIndex) 於 C:\Kts Projects\KongTai\KongTai Toolbar\KongTaiToolbar\Reports\StoreTurnoverCompareReport.vb: 行 327

due to this line

                    Dim temp2 As Double = Double.Parse(IIf(area2.Value.ToString.Trim = "", 0, area2.Value))

How to resolve this?
ASKER CERTIFIED SOLUTION
Avatar of ste5an
ste5an
Flag of Germany image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial