Anyone good with ASP/VB?
#1
Scooby Regular
Thread Starter
Join Date: Apr 2002
Location: Birmingham
Posts: 9,196
Likes: 0
Received 0 Likes
on
0 Posts
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?
#2
Scooby Regular
Join Date: Nov 2001
Location: Leeds - It was 562.4bhp@28psi on Optimax, How much closer to 600 with race fuel and a bigger turbo?
Posts: 15,239
Likes: 0
Received 1 Like
on
1 Post
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
#3
Scooby Regular
Thread Starter
Join Date: Apr 2002
Location: Birmingham
Posts: 9,196
Likes: 0
Received 0 Likes
on
0 Posts
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
33
29 August 2017 07:18 PM
Scott@ScoobySpares
Full Cars Breaking For Spares
7
14 December 2015 08:16 AM
Mattybr5@MB Developments
Full Cars Breaking For Spares
20
22 October 2015 06:12 AM