>On the other hand, what would be the best approach in order to replace the use of forms' DEs with remote views, but giving me the ease of building the form by dragging the fields at design time?
What Tamar said. OTOH, I preferred a simpler way - having a builder. Something like this:
ASELOBJ(aa,1)
RETURN aa[1]
so, while editing, I'd do this in the command window:
ox=curform()
and then the ox would be a reference to the form being edited. Then I'd use intellisense to reference the fields, like this
ox.container1.txtBlaBla.controlSource=alias.
and it would drop down the list of fields to pick. I'd have to add quotation marks around the alias.field, but that's all. The downside of dragging fields is that you always get the same class of control, so for any combo, listbox and few other controls you still had to do it manually anyway.
I even often did that part manually too - I'd add the controls from the command window:
ox.pgf.page3.addobject("cboTr", "myCboClass")
oCbo=ox.pgf.page3.cboTr
oCbo.controlsource=alias. ...
oCbo=...
and I'd keep adding stuff to the oCbo on-the-fly, and intellisense was at hand. Even the size and position was easy to do this way, retyping a few digits from another control with which this one was to be aligned was no problem. I actually found this, after some practice, easier to do than ctrl-clicking or navigating through containership hierarchy in the PEM window to get to the place where I want to add the control. Getting the hierarchy right is easier with keyboard and intellisense than through visual editing means, IMO. Or I'm just the old keyboard type and clumsy with the mouse :).