1. IDE generated function does not work

# function setLayerVisible(integer windowName,object layerName,integer state)
This function allows you to change the visibility of controls in a layer for a
window.
layerName may be alpha or numeric. When alpha layerName is the layer's caption,
for example,
"Layer 0." If numeric is the layer's number, example 0. Even if you have renamed
your
layer names, the first layer number is 0.
state is true or false 

function setLayerVisible(integer windowName,object layerName,integer state)
    integer foundIt
    foundIt=0
    for i=1 to length(IDE_labeltable) do
        if sequence(layerName) then
            if equal(windowName,IDE_labeltable[i][1])
            and equal(layerName,IDE_labeltable[i][2]) then
                setVisible(IDE_labeltable[i][3],state)
                foundIt=w32True
            elsif foundIt then
                exit
            end if
        else
            if equal(windowName,IDE_labeltable[i][1])
            and layerName=i-1 then
                for j=1 to length(IDE_labeltable) do
                    setVisible(IDE_labeltable[j][3],state)
                end for
                foundIt=w32True
            elsif foundIt then
                exit
            end if
        end if
    end for
    if foundIt then
        return 0
    else
        return 1
    end if
end function


There are two ways to call this function. One is with a sequence for the
name of the layer and the other is for a number. The reason why the
number does not work can be seen in the j loop in that part of the code.

Andy Katz

new topic     » topic index » view message » categorize

2. Re: IDE generated function does not work

Andrew Katz wrote:
> 
> 
> # function setLayerVisible(integer windowName,object layerName,integer state)
> This function allows you to change the visibility of controls in a layer for
> a window.
> layerName may be alpha or numeric. When alpha layerName is the layer's
> caption,
> for example,
> "Layer 0." If numeric is the layer's number, example 0. Even if you have
> renamed
> your
> layer names, the first layer number is 0.
> state is true or false 
>
snip 
> 
> There are two ways to call this function. One is with a sequence for the
> name of the layer and the other is for a number. The reason why the
> number does not work can be seen in the j loop in that part of the code.
> 
> Andy Katz

This routine and the table it works from has been fixed for the next IDE release
(targeted for mid April.) If anyone wants the changes before then, please e-mail
me.

judith evans

new topic     » goto parent     » topic index » view message » categorize

Search



Quick Links

User menu

Not signed in.

Misc Menu