Click here to Skip to main content
       

C#

 
QuestionIpstatus.Success answer twice !! PinmemberAlex1971_rm24-Dec-12 0:15 
QuestionHow do i create an object of partial class in user control Pinmemberswapnil709022-Dec-12 20:27 
AnswerRe: How do i create an object of partial class in user control Pinmembernainakarri22-Dec-12 22:03 
Questionerror i declaring null arrays Pinmembertashee22-Dec-12 5:22 
AnswerRe: error i declaring null arrays PinmvpRichard MacCutchan22-Dec-12 6:40 
GeneralRe: error i declaring null arrays Pinmembertashee22-Dec-12 7:39 
GeneralRe: error i declaring null arrays PinmemberPIEBALDconsult22-Dec-12 8:11 
GeneralRe: error i declaring null arrays Pinmemberharold 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 Pinmembercolumbos1492722-Dec-12 4:26 
AnswerRe: Working with data base PinmemberPIEBALDconsult22-Dec-12 5:07 
GeneralRe: Working with data base PinmemberSledgeHammer0122-Dec-12 9:38 
GeneralRe: Working with data base PinmemberPIEBALDconsult22-Dec-12 12:58 
GeneralRe: Working with data base Pinmemberjschell22-Dec-12 14:05 
GeneralRe: Working with data base PinmemberSimon_Whale23-Dec-12 0:05 
AnswerRe: Working with data base PinmvpAbhinav S25-Dec-12 4:49 
Questionhow to mark my location and my neighbor location in sample map(not google map) ? PingroupDeenuji vellore22-Dec-12 2:15 
AnswerRe: how to mark my location and my neighbor location in sample map(not google map) ? PinmemberSimon_Whale22-Dec-12 4:15 
GeneralRe: how to mark my location and my neighbor location in sample map(not google map) ? PingroupDeenuji23-Dec-12 19:02 
Questionmultiple user chat appliction Pinmemberminu r21-Dec-12 20:56 
AnswerRe: multiple user chat appliction PinmemberSimon_Whale21-Dec-12 21:33 
QuestionHow to make .net DLL to reference its dependent DLLs present in other folder. [modified] PinmemberKASR121-Dec-12 19:57 
Questionweb content management system Pinmembernishant231021-Dec-12 6:51 
AnswerRe: web content management system PinprotectorPete O'Hanlon21-Dec-12 9:53 
GeneralRe: web content management system Pinmembernishant231026-Dec-12 5:39 
Questionam i doing something wrong with the and operator? Pinmembercrohnsandme21-Dec-12 5: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
Web04 | 2.8.140709.1 | Last Updated 9 Jul 2014
Copyright © CodeProject, 1999-2014
All Rights Reserved. Terms of Service
Layout: fixed | fluid