New Components on a form overwrite existing components in some cases
Publicado: Mié Jul 15, 2009 9:00 pm
With Xailer 2.0.0 (January 2009), when you add a new component to a form,
and its variable name is similar to a pre-existing component on another part
of the form, it seems that the original component is lost. I wish I could be
more specific about this problem, but I only discover the problem when I
attempt to compile the project and Xailer tells me that a component is
missing. The component still exists on the form, so if I go back and
manually add the component statement in the .prg file, everything compiles
correctly.
Xailer does not warn if the new component name is the same as a component
that already exists on the form. That would be helpful. Of course, in this
case, the new component I am adding does not have the same name, but a
similar name, such as:
Original component: oButtonEdit
New component: oButtonEditCase
Perhaps the part of the program that is generating and updating the .prg
file and keeping it in sync with the .xfm file is only comparing the first
10 characters of the component name or something like that, but, in my
humble opinion, Xailer should warn you at the time the component is named if
there is a problem with the component name.
Thanks,
Gary
and its variable name is similar to a pre-existing component on another part
of the form, it seems that the original component is lost. I wish I could be
more specific about this problem, but I only discover the problem when I
attempt to compile the project and Xailer tells me that a component is
missing. The component still exists on the form, so if I go back and
manually add the component statement in the .prg file, everything compiles
correctly.
Xailer does not warn if the new component name is the same as a component
that already exists on the form. That would be helpful. Of course, in this
case, the new component I am adding does not have the same name, but a
similar name, such as:
Original component: oButtonEdit
New component: oButtonEditCase
Perhaps the part of the program that is generating and updating the .prg
file and keeping it in sync with the .xfm file is only comparing the first
10 characters of the component name or something like that, but, in my
humble opinion, Xailer should warn you at the time the component is named if
there is a problem with the component name.
Thanks,
Gary