comments and naming thread...

Necuno

Court Jester
Joined
Sep 27, 2005
Messages
58,566
Reaction score
3,437
ya you know it post them here :)
//The search is already fired on Page Load.
//Need to do it this way around, because the viewstate is disabled
//for the datagrid.

private void PopulateSalvagedValues()
 
Code:
if (dr.Read())
{ 
     //*** Snip***
}
else 
{
     throw new ApplicationException("The nazis are coming! get the children into the church!");
}

Somebodies had WAY too much coffee or has been awake for WAY too long :D
 
Code:
    If AlarmControl.UpperPointer > 0 Then
        'Special case when only 1 alarm because upperpointer = 0 means no alarms
        'So idx = AlarmControl.UpperPointer - 1 = 0 and we will not loop
        'VB is crap and sucks and doesn't support shortcut AND statements
        If AlarmControl.UpperPointer = 1 Then
            If Not (AlarmAdminStack(0).Active) Then
                AlarmControl.UpperPointer = 0
            End If
        Else
            'Shrink stack if necessary
            idx = AlarmControl.UpperPointer - 1
            Do While idx > 0 And Not (AlarmAdminStack(idx).Active)
                AlarmControl.UpperPointer = AlarmControl.UpperPointer - 1
                idx = idx - 1
            Loop
        End If
    End If
 
Last edited:
I'm pretty boring. In my quest to comment informatively and create self-commenting code, I don't get around to being funny too. That would be asking too much... p
 
I'm pretty boring. In my quest to comment informatively and create self-commenting code, I don't get around to being funny too. That would be asking too much... p

true, but those are from other peoples work :D
 
I'm pretty boring. In my quest to comment informatively and create self-commenting code, I don't get around to being funny too. That would be asking too much... p

Same here... If I comment, I do it because I absolutely HAVE to. Being funny or vague just doesn't spring to mind at that moment... :(
 
this must be the first afrikaans comment i spotted in years :eek:

Code:
DataHelper dh = new DataHelper();
dh.DeleteReminder(userID, userIDReminderFor);

LoadReminders(); [COLOR="Red"]//Somehow werk dit nie reg as die load nie hier ook is nie...[/COLOR]
FindEmployee1.FindEmployees();

dh.SetErrorLabel(lblError);
 
Last edited:
I deleted my code... :(

Having had serious frustration with people not understanding the 101's of running my macros, I built in an idiot filter and named + commented it accordingly in the backbone code. :D
 
/sigh, that code made me want to cry a little, there was no events for the actual controls that does the post backs. every thing was handled together in the oninit and onpage load...
 
Illogical Logic Flow

Code:
If MouseIsDown Then
   pic.Cls
   pic.Line (MouseStartX, MouseStartY)-(MouseStartX, Y)
   pic.Line (MouseStartX, MouseStartY)-(X, MouseStartY)
   pic.Line (X, MouseStartY)-(X, Y)
   pic.Line (MouseStartX, Y)-(X, Y)
Else
   '*******************************************************
   '***** DO NOT REMOVE THE ELSE.                     *****
   '***** Program is skipping the End If without it.  *****
   '***** Very weird.                                 *****
   '*******************************************************
End If
 
If MouseIsDown Then
sounds R-rated :D

'*******************************************************
'***** DO NOT REMOVE THE ELSE. *****
'***** Program is skipping the End If without it. *****
'***** Very weird. *****
'*******************************************************
rofl. yes sure...
 
Top
Sign up to the MyBroadband newsletter
X