Click here to Skip to main content
11,493,948 members (73,581 online)
   

C#

 
QuestionIpstatus.Success answer twice !! Pin
Alex1971_rm24-Dec-12 1:15
memberAlex1971_rm24-Dec-12 1:15 
QuestionHow do i create an object of partial class in user control Pin
swapnil709022-Dec-12 21:27
memberswapnil709022-Dec-12 21:27 
AnswerRe: How do i create an object of partial class in user control Pin
nainakarri22-Dec-12 23:03
membernainakarri22-Dec-12 23:03 
Questionerror i declaring null arrays Pin
tashee22-Dec-12 6:22
membertashee22-Dec-12 6:22 
AnswerRe: error i declaring null arrays Pin
Richard MacCutchan22-Dec-12 7:40
mvpRichard MacCutchan22-Dec-12 7:40 
GeneralRe: error i declaring null arrays Pin
tashee22-Dec-12 8:39
membertashee22-Dec-12 8:39 
GeneralRe: error i declaring null arrays Pin
PIEBALDconsult22-Dec-12 9:11
memberPIEBALDconsult22-Dec-12 9:11 
GeneralRe: error i declaring null arrays Pin
harold aptroot24-Dec-12 1:52
memberharold aptroot24-Dec-12 1: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 5:26
membercolumbos1492722-Dec-12 5:26 
AnswerRe: Working with data base Pin
PIEBALDconsult22-Dec-12 6:07
memberPIEBALDconsult22-Dec-12 6:07 
GeneralRe: Working with data base Pin
SledgeHammer0122-Dec-12 10:38
memberSledgeHammer0122-Dec-12 10:38 
GeneralRe: Working with data base Pin
PIEBALDconsult22-Dec-12 13:58
memberPIEBALDconsult22-Dec-12 13:58 
GeneralRe: Working with data base Pin
jschell22-Dec-12 15:05
memberjschell22-Dec-12 15:05 
GeneralRe: Working with data base Pin
Simon_Whale23-Dec-12 1:05
memberSimon_Whale23-Dec-12 1:05 
AnswerRe: Working with data base Pin
Abhinav S25-Dec-12 5:49
mvpAbhinav S25-Dec-12 5:49 
Questionhow to mark my location and my neighbor location in sample map(not google map) ? Pin
Deenuji vellore22-Dec-12 3:15
groupDeenuji vellore22-Dec-12 3:15 
AnswerRe: how to mark my location and my neighbor location in sample map(not google map) ? Pin
Simon_Whale22-Dec-12 5:15
memberSimon_Whale22-Dec-12 5:15 
GeneralRe: how to mark my location and my neighbor location in sample map(not google map) ? Pin
Deenuji23-Dec-12 20:02
groupDeenuji23-Dec-12 20:02 
Questionmultiple user chat appliction Pin
minu r21-Dec-12 21:56
memberminu r21-Dec-12 21:56 
AnswerRe: multiple user chat appliction Pin
Simon_Whale21-Dec-12 22:33
memberSimon_Whale21-Dec-12 22:33 
QuestionHow to make .net DLL to reference its dependent DLLs present in other folder. [modified] Pin
KASR121-Dec-12 20:57
memberKASR121-Dec-12 20:57 
Questionweb content management system Pin
nishant231021-Dec-12 7:51
membernishant231021-Dec-12 7:51 
AnswerRe: web content management system Pin
Pete O'Hanlon21-Dec-12 10:53
protectorPete O'Hanlon21-Dec-12 10:53 
GeneralRe: web content management system Pin
nishant231026-Dec-12 6:39
membernishant231026-Dec-12 6:39 
Questionam i doing something wrong with the and operator? Pin
crohnsandme21-Dec-12 6:29
membercrohnsandme21-Dec-12 6:29 

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

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


Advertise | Privacy | Mobile
Web03 | 2.8.150520.1 | Last Updated 29 May 2015
Copyright © CodeProject, 1999-2015
All Rights Reserved. Terms of Service
Layout: fixed | fluid