Hello All and thank in advance for the help.

I'm sure that some of you know that you can use both @ SAY and ? inside of a
window for writing information. The functions Row() and Col() also continue
to work in VFP so that you can tell where in the window you are.

My question is:

Is there a way to convert the values returned by Row() and Col() into values
that will work for the Top and Left properties of a control.

I've tried the assumption that a 25 by 80 character window is translated
into a 640 x 480 pixel window but things aren't going where they belong when
I use:

oObject.Top = Row() * 20
oObject.Left = Col() * 8

I could probably figure this out by trial and error but if there is a
formula or algorithm that someone knows I'd appreciate hearing about it.

Thanks again,

Jeff

Re: row(), col(), top, and left by lemmebe

lemmebe
Sun Mar 07 17:59:37 CST 2004

On Sun, 7 Mar 2004 15:45:11 -0500, "Jeff Grippe" <jeff@door7> wrote:

Maybe you'd be better off using CurrentY and CurrentX rather than Row() and
Col().

Alan

>Hello All and thank in advance for the help.
>
>I'm sure that some of you know that you can use both @ SAY and ? inside of a
>window for writing information. The functions Row() and Col() also continue
>to work in VFP so that you can tell where in the window you are.
>
>My question is:
>
>Is there a way to convert the values returned by Row() and Col() into values
>that will work for the Top and Left properties of a control.
>
>I've tried the assumption that a 25 by 80 character window is translated
>into a 640 x 480 pixel window but things aren't going where they belong when
>I use:
>
>oObject.Top = Row() * 20
>oObject.Left = Col() * 8
>
>I could probably figure this out by trial and error but if there is a
>formula or algorithm that someone knows I'd appreciate hearing about it.
>
>Thanks again,
>
>Jeff
>

My real address is alan at sprint dot ca
(with a 'p' on 'alan' making it 'alanp',
and no spaces). I'm sick of email spam.