cant seem to make 3 regions visible / hidden via a procedure - case statement ?
using reportbuilder12 we have 3 regions "layered over each other"
i want to create a procedure to show each region (address) depending on the result of a string field in my case country
region 3 is back layer (say UK), region 2 is middle layer (say EUROPE), region 1 is top layer (say US)
so i need
if address['country'] = 'US' then region1.visible :-true
if address['country'] = 'EUROPE' then region1.visible :-false
if address['country'] = 'UK' then region1.visible :-false AND region2.visible :-false
problem is that using an if statement then you cannot use an AND function
has anyone used the case statement to do something like this?
i want to create a procedure to show each region (address) depending on the result of a string field in my case country
region 3 is back layer (say UK), region 2 is middle layer (say EUROPE), region 1 is top layer (say US)
so i need
if address['country'] = 'US' then region1.visible :-true
if address['country'] = 'EUROPE' then region1.visible :-false
if address['country'] = 'UK' then region1.visible :-false AND region2.visible :-false
problem is that using an if statement then you cannot use an AND function
has anyone used the case statement to do something like this?
Comments
region2.visible:=(address['country'] = 'EUROPE'); // show region2 if country = EUROPE
//region1.visible:=not (address['country'] = 'EUROPE'); // hide region1 if country=EUROPE
// if country = UK then region1 is already hidden and region2 is also hidden, so we don't need to check for this line:
// if address['country'] = 'UK' then region1.visible :-false AND region2.visible :-false
MicrotronX - Speditionssoftware vom Profi
https://www.microtronx.com