Click here to Skip to main content
       

C#

 
QuestionUsage of Google API in windows application Pinmemberukraju24-Dec-12 1:05 
AnswerRe: Usage of Google API in windows application Pinmemberfrazzle-me24-Dec-12 2:25 
AnswerRe: Usage of Google API in windows application PinmemberSajeesh Payolam24-Dec-12 20:28 
QuestionDetecting a 3G connection in Windows 7 and 8 in a desktop application [modified] PinmemberREDSERPENT724-Dec-12 1:04 
AnswerRe: Detecting a 3G connection in Windows 7 and 8 in a desktop application PinmemberMaulikDusara24-Dec-12 20:44 
GeneralRe: Detecting a 3G connection in Windows 7 and 8 in a desktop application PinmemberREDSERPENT729-Dec-12 21:33 
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 
AnswerRe: am i doing something wrong with the and operator? PinmemberPIEBALDconsult21-Dec-12 5:32 
GeneralRe: am i doing something wrong with the and operator? Pinmembercrohnsandme21-Dec-12 5:44 
GeneralRe: am i doing something wrong with the and operator? Pinmembercrohnsandme21-Dec-12 5:47 
GeneralRe: am i doing something wrong with the and operator? PinmemberPIEBALDconsult21-Dec-12 7:12 
AnswerRe: am i doing something wrong with the and operator? PinmvpRichard MacCutchan21-Dec-12 6:27 
GeneralC# and PostgreSQL Pinmembertashee21-Dec-12 2:22 
GeneralRe: C# and PostgreSQL PinmentorKeith Barrow21-Dec-12 3:02 
QuestionC#.Net error(Front end Visual studio 2010,Back end:SQL server 2008)) PinmemberS Akshay20-Dec-12 23:54 
AnswerRe: C#.Net error(Front end Visual studio 2010,Back end:SQL server 2008)) PinmvpDave Kreskowiak21-Dec-12 4:12 
GeneralRe: C#.Net error(Front end Visual studio 2010,Back end:SQL server 2008)) PinmemberS Akshay21-Dec-12 4:42 
GeneralRe: C#.Net error(Front end Visual studio 2010,Back end:SQL server 2008)) PinmvpDave Kreskowiak21-Dec-12 4:53 
QuestionCapture HttpRequest from Fiddler or WinpCap, then reconstruct a HttpRequest object? Pinmemberdevvvy20-Dec-12 14:50 
AnswerRe: Capture HttpRequest from Fiddler or WinpCap, then reconstruct a HttpRequest object? PinmemberSuper Lloyd20-Dec-12 18:19 
GeneralRe: Capture HttpRequest from Fiddler or WinpCap, then reconstruct a HttpRequest object? Pinmemberdevvvy21-Dec-12 23:01 
Questionsending messages with smart bro using c# PinmemberGlendonz20-Dec-12 6:23 
AnswerRe: sending messages with smart bro using c# Pinmemberjschell20-Dec-12 8:37 
GeneralRe: sending messages with smart bro using c# PinmemberGlendonz20-Dec-12 16:21 
GeneralRe: sending messages with smart bro using c# Pinmemberjschell22-Dec-12 13:52 
GeneralRe: sending messages with smart bro using c# PinmemberGlendonz30-Dec-12 5:36 

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
Web01 | 2.8.140721.1 | Last Updated 1 Aug 2014
Copyright © CodeProject, 1999-2014
All Rights Reserved. Terms of Service
Layout: fixed | fluid