Click here to Skip to main content
15,880,967 members
Home / Discussions / C#
   

C#

 
QuestionIpstatus.Success answer twice !! Pin
Alex1971_rm24-Dec-12 0:15
Alex1971_rm24-Dec-12 0:15 
QuestionHow do i create an object of partial class in user control Pin
swapnil709022-Dec-12 20:27
swapnil709022-Dec-12 20:27 
AnswerRe: How do i create an object of partial class in user control Pin
nainakarri22-Dec-12 22:03
nainakarri22-Dec-12 22:03 
Questionerror i declaring null arrays Pin
tashee22-Dec-12 5:22
tashee22-Dec-12 5:22 
AnswerRe: error i declaring null arrays Pin
Richard MacCutchan22-Dec-12 6:40
mveRichard MacCutchan22-Dec-12 6:40 
GeneralRe: error i declaring null arrays Pin
tashee22-Dec-12 7:39
tashee22-Dec-12 7:39 
GeneralRe: error i declaring null arrays Pin
PIEBALDconsult22-Dec-12 8:11
mvePIEBALDconsult22-Dec-12 8:11 
GeneralRe: error i declaring null arrays Pin
harold aptroot24-Dec-12 0:52
harold aptroot24-Dec-12 0:52 
Actually, you do know what's wrong: you're using an unassigned local variable. It will even tell you that strPLatitude is the culprit.
How to fix? Assign something to it, obviously. Most C# compile errors are easy like that.

You wanted a null array? Then make a null array: double[] strPLatitude = null;

That doesn't make the code work, I grant you, but it fixes this problem.

However, this:
tashee wrote:
declared a null array but when i try to use this array to store my values
Reveals a deeper problem. You can't use something that doesn't exist. Like Richard wrote, "You must allocate some space to it before you can store anything in it". Your reply to him seems to imply you didn't really get it.

This is like saying "I have a place where a bookshelf should go but there isn't one there yet, why do things go wrong when I try to store books in it?"

Don't use something that doesn't exist. You need an actual bookshelf, not just a place where a bookshelf could go.

PIEBALDconsult suggest you use a List, you should probably do that. Be sure to Add[^] the items to the list, don't try to stuff them into positions that do not exist.
QuestionWorking with data base Pin
columbos1492722-Dec-12 4:26
columbos1492722-Dec-12 4:26 
AnswerRe: Working with data base Pin
PIEBALDconsult22-Dec-12 5:07
mvePIEBALDconsult22-Dec-12 5:07 
GeneralRe: Working with data base Pin
SledgeHammer0122-Dec-12 9:38
SledgeHammer0122-Dec-12 9:38 
GeneralRe: Working with data base Pin
PIEBALDconsult22-Dec-12 12:58
mvePIEBALDconsult22-Dec-12 12:58 
GeneralRe: Working with data base Pin
jschell22-Dec-12 14:05
jschell22-Dec-12 14:05 
GeneralRe: Working with data base Pin
Simon_Whale23-Dec-12 0:05
Simon_Whale23-Dec-12 0:05 
AnswerRe: Working with data base Pin
Abhinav S25-Dec-12 4:49
Abhinav S25-Dec-12 4:49 
Questionhow to mark my location and my neighbor location in sample map(not google map) ? Pin
Deenuji22-Dec-12 2:15
Deenuji22-Dec-12 2:15 
AnswerRe: how to mark my location and my neighbor location in sample map(not google map) ? Pin
Simon_Whale22-Dec-12 4:15
Simon_Whale22-Dec-12 4:15 
GeneralRe: how to mark my location and my neighbor location in sample map(not google map) ? Pin
Deenuji23-Dec-12 19:02
Deenuji23-Dec-12 19:02 
Questionmultiple user chat appliction Pin
minu r21-Dec-12 20:56
minu r21-Dec-12 20:56 
AnswerRe: multiple user chat appliction Pin
Simon_Whale21-Dec-12 21:33
Simon_Whale21-Dec-12 21:33 
QuestionHow to make .net DLL to reference its dependent DLLs present in other folder. Pin
KASR121-Dec-12 19:57
KASR121-Dec-12 19:57 
Questionweb content management system Pin
nishant231021-Dec-12 6:51
nishant231021-Dec-12 6:51 
AnswerRe: web content management system Pin
Pete O'Hanlon21-Dec-12 9:53
mvePete O'Hanlon21-Dec-12 9:53 
GeneralRe: web content management system Pin
nishant231026-Dec-12 5:39
nishant231026-Dec-12 5:39 
Questionam i doing something wrong with the and operator? Pin
crohnsandme21-Dec-12 5:29
crohnsandme21-Dec-12 5:29 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.