mahmood66
asked on
How to solve this error msg:compile error:user-defined type not defined
You will need to set a reference (Project/References) to the library where Xarray is defined.
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
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
ASKER
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
error1.bmp
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
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.
That's pleasing. Thank you for the feedback.