Skip to main content

I can do a  set prop on “cols” to give me 10 columns

call wowsetprop using win-return vsgrid-h

        "cols" 10

 

But when I try to do a set prop on “ colposition” or “colhidden” just for example I keep getting errors.

 

call wowsetprop using win-return vsgridU-h
"colposition" 0 2

this should move column 0 to column 2 but I get this error.

 

It is like only the simple properties you can set at run time.

This is all totally new to me so any ideas would be appreciated.

 

thanks

I can do a  set prop on “cols” to give me 10 columns

call wowsetprop using win-return vsgrid-h

        "cols" 10

 

But when I try to do a set prop on “ colposition” or “colhidden” just for example I keep getting errors.

 

call wowsetprop using win-return vsgridU-h
"colposition" 0 2

this should move column 0 to column 2 but I get this error.

 

It is like only the simple properties you can set at run time.

This is all totally new to me so any ideas would be appreciated.

 

thanks

It looks like you're missing a required argument: "6 arguments needed, only 5 supplied". From the last part of the error message, the missing argument might be needed to specify the Form/Control Name. This may be a difference caused by using vsgridU-h instead of vsgrid-h (as in your "cols" example). I'm not generally familiar with VsFlexGrid, so this is just a guess.

I can do a  set prop on “cols” to give me 10 columns

call wowsetprop using win-return vsgrid-h

        "cols" 10

 

But when I try to do a set prop on “ colposition” or “colhidden” just for example I keep getting errors.

 

call wowsetprop using win-return vsgridU-h
"colposition" 0 2

this should move column 0 to column 2 but I get this error.

 

It is like only the simple properties you can set at run time.

This is all totally new to me so any ideas would be appreciated.

 

thanks

Hi:

Try to use AxsetIndexProp instead of Wowsetprop.

I can do a  set prop on “cols” to give me 10 columns

call wowsetprop using win-return vsgrid-h

        "cols" 10

 

But when I try to do a set prop on “ colposition” or “colhidden” just for example I keep getting errors.

 

call wowsetprop using win-return vsgridU-h
"colposition" 0 2

this should move column 0 to column 2 but I get this error.

 

It is like only the simple properties you can set at run time.

This is all totally new to me so any ideas would be appreciated.

 

thanks

Yes, you need to use the AxSetIndexPropr such:

Call AXSetIndexProp using win-return ctList-Firmas "ColumnText" "Title text" 0

...when zero is the first column of the control.

I can do a  set prop on “cols” to give me 10 columns

call wowsetprop using win-return vsgrid-h

        "cols" 10

 

But when I try to do a set prop on “ colposition” or “colhidden” just for example I keep getting errors.

 

call wowsetprop using win-return vsgridU-h
"colposition" 0 2

this should move column 0 to column 2 but I get this error.

 

It is like only the simple properties you can set at run time.

This is all totally new to me so any ideas would be appreciated.

 

thanks

Yes, you need to use the AxSetIndexPropr such:

Call AXSetIndexProp using win-return ctList-Firmas "ColumnText" "Title text" 0

...when zero is the first column of the control.

I can do a  set prop on “cols” to give me 10 columns

call wowsetprop using win-return vsgrid-h

        "cols" 10

 

But when I try to do a set prop on “ colposition” or “colhidden” just for example I keep getting errors.

 

call wowsetprop using win-return vsgridU-h
"colposition" 0 2

this should move column 0 to column 2 but I get this error.

 

It is like only the simple properties you can set at run time.

This is all totally new to me so any ideas would be appreciated.

 

thanks

Yes, you need to use the AxSetIndexPropr such:

Call AXSetIndexProp using win-return ctList-Firmas "ColumnText" "Title text" 0

...when zero is the first column of the control.

I can do a  set prop on “cols” to give me 10 columns

call wowsetprop using win-return vsgrid-h

        "cols" 10

 

But when I try to do a set prop on “ colposition” or “colhidden” just for example I keep getting errors.

 

call wowsetprop using win-return vsgridU-h
"colposition" 0 2

this should move column 0 to column 2 but I get this error.

 

It is like only the simple properties you can set at run time.

This is all totally new to me so any ideas would be appreciated.

 

thanks

In this sample, I'm using a ctGrid from DBi Tehcnolohies:

Call AXSetIndexProp using win-return ctGrid-Lineas "CellText" TLA-Rubro(i) W-Index 0

...where W-Index is the number of the row and the zero is the number of the column. With WowSetProp this is not possible.

I can do a  set prop on “cols” to give me 10 columns

call wowsetprop using win-return vsgrid-h

        "cols" 10

 

But when I try to do a set prop on “ colposition” or “colhidden” just for example I keep getting errors.

 

call wowsetprop using win-return vsgridU-h
"colposition" 0 2

this should move column 0 to column 2 but I get this error.

 

It is like only the simple properties you can set at run time.

This is all totally new to me so any ideas would be appreciated.

 

thanks

Thanks for everyone’s help.
I was able to get it work using the AXSetIndexProp.
I did think of using the AXSetIndexProp because I am not working with one particular cell I am trying to set something on the entire column. That’s what I get for thinking.
There was a couple of weird things like, when setting the column width the documentation and when I tried it in VB6 you would specify the column and then the twips you want to set the width to. But in WOW you had to specify the twips and then the column. No big deal just took some playing around.

Thanks again for everyone’s help.