Ctype function question mark

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • John

    Ctype function question mark

    Hi

    What does the question mark mean after Integer in CType(Company_I D,
    Integer?) ?

    Thanks

    Regards


  • Herfried K. Wagner [MVP]

    #2
    Re: Ctype function question mark

    "John" <John@nospam.in fovis.co.ukschr ieb:
    What does the question mark mean after Integer in CType(Company_I D,
    Integer?) ?
    'Integer?' is just another way to express 'Nullable(Of Integer)'. The
    statement above converts 'Company_ID' to a nullable integer. The syntax
    '<type>?' is supported by VB since VB 2008.

    --
    M S Herfried K. Wagner
    M V P <URL:http://dotnet.mvps.org/>
    V B <URL:http://dotnet.mvps.org/dotnet/faqs/>

    Comment

    • Phill W.

      #3
      Re: Ctype function question mark

      Herfried K. Wagner [MVP] wrote:
      'Integer?' is just another way to express 'Nullable(Of Integer)'.
      A /new/ Type Declaration Character after all these years?

      Will Wonders never cease?

      Will Our Friend in Redmond /ever/ make their minds up where they're
      trying to go with this language (today or any other day)? ;-)

      (Rant over)...

      Regards,
      Phill W.

      Comment

      Working...