Re: Line Method Explanation?



What version of Access are you using?

I just checked Access 2003's help, and while it agrees with what you've got
below, it appears to be an error in the Help file.

Check
http://msdn.microsoft.com/library/en-us/vbaac11/html/acmthLine_HV05186433.asp
Hopefully that will answer all of your questions.

That's consistent with what Access 97's help file has for the Line Method.

--
Doug Steele, Microsoft Access MVP
http://I.Am/DougSteele
(no e-mails, please!)



"Joanthan" <Joanthan@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote in message
news:72D97EE5-9C61-41F9-93FF-22B130BC5AEA@xxxxxxxxxxxxxxxx
>I would appreciate if someone would explain how the line method works?
>
> I understand how to use the line method and get it to do what I want. It's
> just the Line method's syntax in comparison to the standard syntax of all
> other methods is very peculiar!
>
> The VB Help defines the syntax as follows:
>
> expression.Line(flags, x1, y1, x2, y2, color)
> flags Required
> x1 Required
> y1 Required
> x2 Required
> y2 Required
> color Required
>
> the VB Help then goes on to give an example and calls the line method like
> this:
> rpt.Line(sngTop, sngLeft) - (sngWidth, sngHeight), lngColor, B
>
> a) Where is the Required flag?
>
> b) Unlike what it appears from the VB Help definition, if you don't put a
> closing bracket after 'y1' as the example does, you get an error!
>
> c) Normally you don't need any brackets when passing in parameters to a
> method, unless you expect a return value?
>
> d) What is this ') - (' doing in the middle of the parameter list?
>
> e) rpt.Line(sngTop, sngLeft) - Step(sngWidth, sngHeight) How does the
> 'step'
> keyword accomplish what it does, i.e. height and width of the line, as
> opposed to the x2 and y2 positions? It's not a function?
>
> f) The 'B' at the end of the VB Help example (which isn't even mentioned
> in
> the VB Help explanation), is this the flag mentioned at the beginning of
> the
> definition?
>
> (Just for the record, B tells the line method you want a rectangle/Box,
> and
> BF tells the line method you want a Filled In rectangle/Box).
>
> g) Normally, when you pass in characters to a method (sub or function),
> the
> characters are either a variable, a constant, or you put quotation marks
> around it and pass them in as a string. What is going on with the 'BF'?
>


.



Relevant Pages

  • Re: Data logger using HP48GX
    ... this Computer Serial Temperature Meter & Data Logger, the output data is a continuous ... Use BUFLEN to see how many characters are in the 48 buffer, ... then DROP to get rid of the "result" flag in Level 1, ...
    (comp.sys.hp48)
  • Re: Be afraid of XML
    ... > XML is a general tree syntax suitable for world-wide use. ... Other nesting characters are asymmetric and can be used multiple levels ... See how braces are regular text when quoted by brackets, ...
    (comp.lang.lisp)
  • Re: Accessing syntax tables flag info
    ... are used as comment characters in the current buffer's major mode. ... This has led me to examine syntax tables. ... Having written several major modes for various programming ...
    (comp.emacs)
  • Re: Limiting characters in a text field
    ... up a "rules of use" guide for all users of Project in your organization. ... In addition to just limiting the number of characters in text fields, ... control (i.e. TaskChange event macro). ... Set up a formula in a spare flag ...
    (microsoft.public.project)
  • String handling in .txt file.
    ... have been developed with some compiler specific syntax. ... down to just a few syntax errors and am hoping for the final nudge. ... text stream to a printer on LPT1. ... characters that cause the routine to abort. ...
    (alt.comp.lang.learn.c-cpp)