Anyone good with ASP/VB?
I'm trying to write an ASP app which uses functions from a dll. I can do this in VB, and I have the code for VB but I can't seem to work out how to do my declares etc correctly for in the aspx file.
The VB code for example is:
(This is example code from the manufacturer of the component).
Looking at some bits and bobs on the internet it seems I need to use Server.CreateObject() to load up the class but it just keeps erroring.
Anyone point me in the right direction?
The VB code for example is:
Code:
Dim allemp as AX200.EmployeeDetails
Set allemp = New AX200.EmployeeDetails
Dim empcls as AX200.clsCard
Set empcls = New AX200.clsCard
Dim emplist() as clsCard
With empcls
.employee_id = ""
.Address = ""
.Department = ""
.Company = ""
.first_name = ""
.middle_name = ""
.Surname = ""
End With
emplist = allemp.search(empcls, "and")
Looking at some bits and bobs on the internet it seems I need to use Server.CreateObject() to load up the class but it just keeps erroring.
Anyone point me in the right direction?
Scooby Regular
Joined: Nov 2001
Posts: 15,239
Likes: 1
From: Leeds - It was 562.4bhp@28psi on Optimax, How much closer to 600 with race fuel and a bigger turbo?
I guess in Vb you added a reference to the dll though..
Not quite sure how you do it in aspx, but I could ask our developers if you get stuck.
David
Not quite sure how you do it in aspx, but I could ask our developers if you get stuck.
David
Hello,
Yeah i have it working fine in VB.
I've loaded VS onto the machine now so I'm doing it within there. Seems to be working better. Apparently aspx isn't like plain old asp files, i have to "build" it before it works as an application etc lol
Thanks
Yeah i have it working fine in VB.
I've loaded VS onto the machine now so I'm doing it within there. Seems to be working better. Apparently aspx isn't like plain old asp files, i have to "build" it before it works as an application etc lol
Thanks
Thread
Thread Starter
Forum
Replies
Last Post
Mattybr5@MB Developments
Full Cars Breaking For Spares
34
Nov 7, 2024 04:10 PM
Scott@ScoobySpares
Full Cars Breaking For Spares
7
Dec 14, 2015 08:16 AM
Mattybr5@MB Developments
Full Cars Breaking For Spares
20
Oct 22, 2015 06:12 AM



