Loading...

Syntax error in Access 97

Support for GdViewer OCX and GdViewer Pro ActiveX/SDK.

Syntax error in Access 97

Postby thine » Tue Sep 25, 2007 4:30 pm

Hi

I'm new to GDViewer but it is working well. I'm using it in msAccess 97.

However, the line

oGDviewer.GetRectValues(ntop, nLeft, nWidth, nHeight)

says it is a syntax error.

Any ideas?

Thanks

Trevor
thine
 
Posts: 7
Joined: Tue Sep 25, 2007 3:43 pm

Postby Loïc » Tue Sep 25, 2007 5:54 pm

Try:

Code: Select all
Call oGDviewer.GetRectValues(ntop, nLeft, nWidth, nHeight)




Loïc
Loïc Carrère, support team.
www.orpalis.com
User avatar
Loïc
Site Admin
 
Posts: 4442
Joined: Tue Oct 17, 2006 10:48 pm
Location: France

type mismatch error now

Postby thine » Wed Sep 26, 2007 10:10 am

Hi this works - no syntax error, although I now get a type mismacth with

Dim ntop, nLeft, nWidth, nHeight As Long
Call oGDViewer.GetRectValues(ntop, nLeft, nWidth, nHeight)



What I am aiming to do is to draw a box, and immediately capture the contents to the clipboard.

Thanks

trevor
thine
 
Posts: 7
Joined: Tue Sep 25, 2007 3:43 pm

Postby Loïc » Wed Sep 26, 2007 10:13 am

You need to do:

Code: Select all
Dim nTop as long, nLeft as long, nWidth as long, nHeight As Long


If you ommit "as long" all the properties will be affected as variant type.

Regards,

Loïc
Loïc Carrère, support team.
www.orpalis.com
User avatar
Loïc
Site Admin
 
Posts: 4442
Joined: Tue Oct 17, 2006 10:48 pm
Location: France


Return to GdViewer [Pro] ActiveX

Who is online

Users browsing this forum: No registered users and 1 guest