Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Evaluating Datawindow Expressions

430 views
Skip to first unread message

Mark Pellegrino

unread,
Jun 29, 2004, 10:47:56 AM6/29/04
to
Hi,

PB 9.0.1 Build 7066
Windows 2K

I am trying to obtain the visible property of a column on the datawindow.
However the column has an expression that controls whether or not the object
is visible at run time. So I can not simply get the visible property
because doing a simple...
ls_visible = adw_data.Describe(ls_objects[ll_object_index] + ".Visible")
...returns the default value and the expression separated by a tab.
"1~tIf(describe(group_cc.expression), 'supply_name', 1, 0)"
If I strip out the default value and attempt to evaluate the true expression
only get back ! from the describe.

please help.

-mark


lt

unread,
Jun 29, 2004, 11:13:47 AM6/29/04
to
String ls_visible_exp, ls_exp
long ll, ll_dw_row_count

FOR l = 1 to ll_dw_row_count

ls_visible_exp = adw.Describe(ls_sel_objs[m] + ".Visible")
ls_exp = Right(ls_visible_exp, Len(ls_visible_exp) - Pos
&(ls_visible_exp, "~t"))

if ls_exp <> ls_visible_exp then
ls_eval = "Evaluate(~"" + ls_exp + ", " + String(l) + ")"
If Integer(adw.Describe(ls_eval)) = 1 then
//visible, do WHATEVER
End if
else
if Integer(ls_exp) = 1 then
//visible ....end if
end if
Next

hth

> Hi,
>
> PB 9.0.1 Build 7066
> Windows 2K
>
> I am trying to obtain the visible property of a column on
> the datawindow. However the column has an expression that
> controls whether or not the object is visible at run time.
> So I can not simply get the visible property because
> doing a simple... ls_visible =
> adw_data.Describe(ls_objects[ll_object_index] +

> ".Visible") ....returns the default value and the

Timothy Madsen

unread,
Jun 29, 2004, 1:00:24 PM6/29/04
to
Sometimes I find it convenient to put the "expression" into a computed
field. Then have the visible property refer to the computed field. This
also makes it easy to get the expression of the computed field for your
other purposes.

Tim.

"Mark Pellegrino" <mpell...@crucnhtime.com> wrote in message
news:40e181bd@forums-2-dub...

0 new messages