Click here to Skip to main content
15,908,274 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
i get lat lng values try to save in excel file but when i open the file

What I have tried:

file is not save in when i run the app
Posted
Updated 26-May-16 1:36am
v8
Comments
Patrice T 26-May-16 2:52am    
Read again your question, a part is missing.
super_user 26-May-16 2:59am    
i edit this

For Each p1 As PointLatLng In parallelLines3
s2 += p1.Lat.ToString() + "," + p1.Lng.ToString()

oSheet.Range("A1").Value() = p1.Lat.ToString(s2)
oSheet.Range("B1").Value() = p1.Lng.ToString(s2)
Next
but file not save
Patrice T 26-May-16 3:07am    
Use Improve question to update your question.
So that everyone can pay attention to this information.
Patrice T 26-May-16 3:31am    
Put comments in your code to explain what you want to do.

1 solution

You should learn to use the debugger as soon as possible. Rather than guessing what your code is doing, It is time to see your code executing and ensuring that it does what you expect.

The debugger allow you to follow the execution line by line, inspect variables and you will see that there is a point where it stop doing what you expect.
Debugger - Wikipedia, the free encyclopedia[^]
Mastering Debugging in Visual Studio 2010 - A Beginner's Guide[^]

When you post code, try to post complete routines, it help to read code.
Also, explain what data you have in entry and what you want in exit.
 
Share this answer
 
v2
Comments
super_user 26-May-16 3:01am    
check update
super_user 26-May-16 3:03am    
cehck update and comment

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900