Ctype function question mark

  • Thread starter Thread starter John
  • Start date Start date
J

John

Hi

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

Thanks

Regards
 
John said:
What does the question mark mean after Integer in CType(Company_ID,
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.
 
Herfried said:
'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.
 
Back
Top