Click here to Skip to main content
15,905,233 members
Home / Discussions / C#
   

C#

 
GeneralRe: Virtual Trackpad > WIndows... Pin
Gerry Schmitz10-Feb-17 13:17
mveGerry Schmitz10-Feb-17 13:17 
GeneralRe: Virtual Trackpad > WIndows... Pin
qzzf1w10-Feb-17 13:21
qzzf1w10-Feb-17 13:21 
GeneralRe: Virtual Trackpad > WIndows... Pin
Gerry Schmitz10-Feb-17 13:36
mveGerry Schmitz10-Feb-17 13:36 
GeneralRe: Virtual Trackpad > WIndows... Pin
qzzf1w10-Feb-17 14:08
qzzf1w10-Feb-17 14:08 
GeneralRe: Virtual Trackpad > WIndows... Pin
Gerry Schmitz10-Feb-17 14:24
mveGerry Schmitz10-Feb-17 14:24 
GeneralRe: Virtual Trackpad > WIndows... Pin
qzzf1w10-Feb-17 18:45
qzzf1w10-Feb-17 18:45 
GeneralRe: Virtual Trackpad > WIndows... Pin
Gerry Schmitz10-Feb-17 19:10
mveGerry Schmitz10-Feb-17 19:10 
GeneralRe: Virtual Trackpad > WIndows... Pin
qzzf1w10-Feb-17 19:42
qzzf1w10-Feb-17 19:42 
GeneralRe: Virtual Trackpad > WIndows... Pin
Gerry Schmitz10-Feb-17 19:49
mveGerry Schmitz10-Feb-17 19:49 
GeneralRe: Virtual Trackpad > WIndows... Pin
qzzf1w10-Feb-17 19:50
qzzf1w10-Feb-17 19:50 
QuestionDetermining if a time zone is currently in Daylight Saving Time Pin
TNCaver9-Feb-17 11:14
TNCaver9-Feb-17 11:14 
AnswerRe: Determining if a time zone is currently in Daylight Saving Time Pin
OriginalGriff9-Feb-17 21:33
mveOriginalGriff9-Feb-17 21:33 
GeneralRe: Determining if a time zone is currently in Daylight Saving Time Pin
Pete O'Hanlon9-Feb-17 22:52
mvePete O'Hanlon9-Feb-17 22:52 
GeneralRe: Determining if a time zone is currently in Daylight Saving Time Pin
OriginalGriff9-Feb-17 23:29
mveOriginalGriff9-Feb-17 23:29 
GeneralRe: Determining if a time zone is currently in Daylight Saving Time Pin
TNCaver10-Feb-17 9:04
TNCaver10-Feb-17 9:04 
GeneralRe: Determining if a time zone is currently in Daylight Saving Time Pin
Richard Deeming10-Feb-17 9:24
mveRichard Deeming10-Feb-17 9:24 
AnswerRe: Determining if a time zone is currently in Daylight Saving Time Pin
Gerry Schmitz9-Feb-17 22:22
mveGerry Schmitz9-Feb-17 22:22 
GeneralRe: Determining if a time zone is currently in Daylight Saving Time Pin
TNCaver10-Feb-17 9:26
TNCaver10-Feb-17 9:26 
AnswerRe: Determining if a time zone is currently in Daylight Saving Time Pin
Richard Deeming10-Feb-17 2:34
mveRichard Deeming10-Feb-17 2:34 
GeneralRe: Determining if a time zone is currently in Daylight Saving Time Pin
TNCaver10-Feb-17 9:24
TNCaver10-Feb-17 9:24 
QuestionAndroid Day of Week Calculator Pin
Pavlex49-Feb-17 9:14
Pavlex49-Feb-17 9:14 
AnswerRe: Android Day of Week Calculator Pin
NotPolitcallyCorrect9-Feb-17 9:47
NotPolitcallyCorrect9-Feb-17 9:47 
AnswerRe: Android Day of Week Calculator Pin
Eddy Vluggen9-Feb-17 10:50
professionalEddy Vluggen9-Feb-17 10:50 
Pavlex4 wrote:

if (spinner2.getSelectedItemPosition() == 0)
value = 1;
if (spinner2.getSelectedItemPosition() == 1)
value = 2;
if (spinner2.getSelectedItemPosition() == 2)
value = 3;
if (spinner2.getSelectedItemPosition() == 3)
value = 4;
if (spinner2.getSelectedItemPosition() == 4)
value = 5;
if (spinner2.getSelectedItemPosition() == 5)
value = 6;
if (spinner2.getSelectedItemPosition() == 6)
value = 7;
if (spinner2.getSelectedItemPosition() == 7)
value = 8;
if (spinner2.getSelectedItemPosition() == 8)
value = 9;
if (spinner2.getSelectedItemPosition() == 9)
value = 10;
if (spinner2.getSelectedItemPosition() == 10)
value = 11;
if (spinner2.getSelectedItemPosition() == 11)
value = 12;

value = spinner2.getSelectedItemPosition() + 1;


Pavlex4 wrote:
if (h == 0)
{
dayOfWeek = "Subota";
}
else if (h == 1)
{
dayOfWeek = "Nedelja";
}
else if (h == 2)
{
dayOfWeek = "Ponedeljak";
}
else if (h == 3)
{
dayOfWeek = "Utorak";
}
else if (h == 4)
{
dayOfWeek = "Sreda";
}
else if (h == 5)
{
dayOfWeek = "Četvrtak";
}
else
dayOfWeek = "Petak";
Please, put those in an array and fetch it by index.

Since the method is static, and assuming it does work like C#, I'd reckon that the 'date' variable is null. Which could happen if you were to swallow a parse-exception, for instance.
Bastard Programmer from Hell Suspicious | :suss:
If you can't read my code, try converting it here[^]

AnswerRe: Android Day of Week Calculator Pin
Richard MacCutchan9-Feb-17 21:02
mveRichard MacCutchan9-Feb-17 21:02 
AnswerRe: Android Day of Week Calculator Pin
Gerry Schmitz10-Feb-17 12:55
mveGerry Schmitz10-Feb-17 12:55 

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.