Syntax error in Access 97

Discussions about document viewing.
Post Reply
thine
Posts: 7
Joined: Tue Sep 25, 2007 3:43 pm

Syntax error in Access 97

Post by 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

User avatar
Loïc
Site Admin
Posts: 5881
Joined: Tue Oct 17, 2006 10:48 pm
Location: France
Contact:

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

Try:

Code: Select all

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


Loïc

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

type mismatch error now

Post by 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

User avatar
Loïc
Site Admin
Posts: 5881
Joined: Tue Oct 17, 2006 10:48 pm
Location: France
Contact:

Post by 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

Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest