Problem with form center

In this category you can exchange your programming questions and solutions.
Post Reply
falsam
Posts: 5
Joined: Tue Nov 08, 2005 3:00 pm

Problem with form center

Post: # 41Post falsam
Wed May 30, 2007 1:10 pm

Hi from France and sorry for my english,
I have a problem with this code

object f as form
     f.Center
end object

f.ShowModal

the form is not centered ?:-/

Marco
Site Admin
Posts: 246
Joined: Sat Sep 15, 2018 8:41 pm

Problem with form center

Post: # 42Post Marco
Wed May 30, 2007 3:32 pm

hi,

First, within the object declaration you do not need to use the object name.
Second, center is not a method but a property.

This will center your form:

object f as form
  center=true
end object

f.showmodal

Or:

ocject f as form
end object

f.center=true
f.showmodal

Thanks for your comment and best regards.

falsam
Posts: 5
Joined: Tue Nov 08, 2005 3:00 pm

Problem with form center

Post: # 43Post falsam
Wed May 30, 2007 3:49 pm

Sorry, I usually practise rapid-q. I will look at documentation attentively.

Post Reply