Date Format

Discussion in 'Programming' started by Kulwinder525, Dec 6, 2012.

  1. #1
    If(dim DOJ as date) then
    Doj=null

    Which Mathod Set the value null DOJ
     
    Last edited: Dec 6, 2012
    Kulwinder525, Dec 6, 2012 IP
  2. Rukbat

    Rukbat Well-Known Member

    Messages:
    2,908
    Likes Received:
    37
    Best Answers:
    51
    Trophy Points:
    125
    #2
    It's not a method, it's an assignment. However, 'dim' in most languages (this looks like VB) don't return anything, so the construction is like wearing shoes on your head.
     
    Rukbat, Dec 6, 2012 IP
  3. deathshadow

    deathshadow Acclaimed Member

    Messages:
    9,732
    Likes Received:
    1,999
    Best Answers:
    253
    Trophy Points:
    515
    #3
    Yeah, DIM is usually a declaratory, so the statement seems to be saying if it's defined undefine it... Though really it doesn't quite look like VB either... Looks more like gibberish. But then the 'sentence' after the code is incomprehensible too so...
     
    deathshadow, Dec 6, 2012 IP
  4. Kulwinder525

    Kulwinder525 Peon

    Messages:
    6
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #4

    DIm doj as date

    Dim is define a Variable only

    Which Method Date Variable Value Set Nullable
     
    Kulwinder525, Dec 6, 2012 IP
  5. Kulwinder525

    Kulwinder525 Peon

    Messages:
    6
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #5
    DIm doj as date

    Dim is define a Variable only

    Which Method Date Variable Value Set Nullable
     
    Kulwinder525, Dec 6, 2012 IP
  6. deathshadow

    deathshadow Acclaimed Member

    Messages:
    9,732
    Likes Received:
    1,999
    Best Answers:
    253
    Trophy Points:
    515
    #6
    Don't take this the wrong way, but ENGLISH, Do you speak it?!?

    If not, we might not be able to help you as you're still posting incomprehensible gibberish that fails to even explain what you are trying to do.
     
    deathshadow, Dec 7, 2012 IP
  7. Rukbat

    Rukbat Well-Known Member

    Messages:
    2,908
    Likes Received:
    37
    Best Answers:
    51
    Trophy Points:
    125
    #7
    Yes, and it doesn't return anything, so if(Dim ...) doesn't mean anything.

    No method. Variables are assigned values as an internal function of the compiler. What you're asking is the equivalent of what store do you go to in order to digest your food? You don't - digestion is an internal part of you.
     
    Rukbat, Dec 7, 2012 IP
  8. TayyabRazaq

    TayyabRazaq Peon

    Messages:
    12
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #8
    I agree with rukbat
     
    TayyabRazaq, Dec 10, 2012 IP