• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 699
  • Last Modified:

How to solve this error msg:compile error:user-defined type not defined

i open the References and checked Apex array object
it gives error in loading dll
error.bmp
0
mahmood66
Asked:
mahmood66
  • 3
  • 2
1 Solution
 
GrahamSkanRetiredCommented:
You will need to set a reference (Project/References) to the library where Xarray is defined.
0
 
vishal_impactCommented:
Ok go to the place where you have you declarations declared and add xaaray as variant or else if you know which type of arry is it just add it as that and it will work as this error occurs when you try to call any object which is not declared or a refrence to that object is missing .
in your case is object is not declared and you are assigning(referencing it to sc_closearray) and as xarray is not existing anywhere in your modure declaration so its giving this error make sure you do global declaration of xarray as variant
this will work
reply if this is not working
0
 
mahmood66Author Commented:
This code is working in Other Pc. This is a problem of dll When i go to my references and check the Apex array object then when i click OK it gives Error in loading dll which is shown in my attechment.Plz help
error1.bmp
0
The new generation of project management tools

With monday.com’s project management tool, you can see what everyone on your team is working in a single glance. Its intuitive dashboards are customizable, so you can create systems that work for you.

 
GrahamSkanRetiredCommented:
Try registering the dll. I don't know the name, so I am using 'apex' (which could be the right name)

From the Start button, select Run... and then type:
regsvr32 apex.dll

If the file can't be found, check on the working PC for the right name and path.

If that doesn't work, try removing (via Control Panel>Add/Remove programs) and re-installing Apex.
0
 
mahmood66Author Commented:
yes thanx its working i registered xarray.ocx then then in References i checked Apex Xarray Object ....now it did notgive me any error it started working.thanx.
0
 
GrahamSkanRetiredCommented:
That's pleasing. Thank you for the feedback.
0

Featured Post

[Webinar] Kill tickets & tabs using PowerShell

Are you tired of cycling through the same browser tabs everyday to close the same repetitive tickets? In this webinar JumpCloud will show how you can leverage RESTful APIs to build your own PowerShell modules to kill tickets & tabs using the PowerShell command Invoke-RestMethod.

  • 3
  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now