COM Object

EddyBlanco

Newcomer
Joined
Mar 13, 2003
Messages
3
Location
Miami, Florida
Hello everyone, I'm new to .NET moving from ColdFusion to something better. I want to know how to open an Object in VB.NET in ColdFusion I did the following


<cfobject type="com" name="PhysicianRepos" class="PRDS_ORAL.PhysicianRepository" action="create">
<cfset Physician = PhysicianRepos.PhysicianByID("#PhysicianID#")>


<!----
when the page is first loaded it will display all reports from today's date - 45
--->


<cfparam name="day" default="45">
<cfparam name="month" default="45">
<cfparam name="year" default="45">
<cfset prevday1 = #Dateformat(DateAdd('d',-#day#,now()),'d')#>
<cfset prevmonth1 = #Dateformat(DateAdd('d',-#month#,now()),'m')#>
<cfset prevyear1 = #Dateformat(DateAdd('d',-#year#,now()),'yyyy')#>
<cfset currday1 = #Dateformat(now(),'d')#>
<cfset currmonth1 = #Dateformat(now(),'m')#>
<cfset curryear1 = #Dateformat(now(),'yyyy')#>

<cfset Reports = Physician.ReportsByDate(CreateDate(#prevyear1#,#prevmonth1#,#prevday1#), CreateDate(#curryear1#,#currmonth1#,#currday1#))>

How would I do the same in VB.NET
Thank you
 
Back
Top