RE: Box Method has me boxed IN !!

Author: Tracy Pearson

Posted: 2011-01-31 at 14:36:54

william tormey wrote on 2011-01-31:

> Hi all.

> Am trying to use Box(x1,y1,x2n,y2) to draw rectangles on a Forms.

> to outline rolling displays for process parameters.

>

> DG VFP 5.0 says Syntax is Object.Box(----) Have tried things like

> myform.Box(----) as code & in Init Thisform.Box(----), but get errors

> telling me cant find Box from the compiler and interpreter. Seem to

> need to tell the form it has a Box method. Don't know how.

>

> The original code for all this used Code page 437 & IBM Vga line

> drawings to do the same.

>

> Dumb I know, but needs must.

> William Tormey

>

William,

VFP 9 SP 1 it's working. Checking the help file for VFP 3, shows it existed.

[Form.Init]

THISFORM.Box(10, 20, 20, 30)

That code draws a small square near the upper left of the form when it gets

created.

I thought perhaps it was the INIT of a contained object that might be

causing the problem so moved the code to the INIT of a COMMANDBUTTON. Still

draws the square.

Tracy Pearson

PowerChurch Software

_______________________________________________

Post Messages to: ProFox@leafe.com

Subscription Maintenance: http://leafe.com/mailman/listinfo/profox

OT-free version of this list: http://leafe.com/mailman/listinfo/profoxtech

Searchable Archive: http://leafe.com/archives/search/profox

This message: http://leafe.com/archives/byMID/profox/001101cbc17e$374e4eb0$a5eaec10$@com

** All postings, unless explicitly stated otherwise, are the opinions of the author, and do not constitute legal or medical advice. This statement is added to the messages for those lawyers who are too stupid to see the obvious.

©2011 Tracy Pearson