Is it possible to make a function name the same as a class name?

For example, if I made a function name like this

function date( s as string ) As date

end function

would this be a good function name?

This way, I could "typecast" a string to a date, like this:

dim d as date

d = date( "10/4/87" )

It seems to work in RB 5.5.5

Does it work for RB 2006?

Will it always work? Is it a supported language feature? Does it interferre with typecasting??

I tried this:

  d = date( "10/4/1987" )
  MsgBox d.AbbreviatedDate

  o = new date
  d = date( o )

  MsgBox d.AbbreviatedDate


--
http://elfdata.com/plugin/



_______________________________________________
Unsubscribe or switch delivery mode:
<http://www.realsoftware.com/support/listmanager/>

Search the archives of this list here:
<http://support.realsoftware.com/listarchives/lists.html>

Reply via email to