F
faramir
Hi
I have made a function, that takes the value from a custom property ID
on a shape. Then uses this id to collect the other custom property
values from a DB.
The thing is this works fine on shapes that are not grouped. I have
made one shape, a box and two ekstra text field piping to two
different custom properties. The custom properties are on the group.
I drop the shape gives it an ID, and runs my function and nothing
happens. I know it gets the ID, and collects the values in the DB, but
shape.CellExistsU("prop." + name, 1) returns false, so the values
aren't set on the shape.
Then i tried to write a value in every property on the shape manual,
just something like "asldfkj". And when i run the function now
shape.CellExistsU("prop." + name, 1) suddenly returns true.
Here is the code i use to set the property
If shape.CellExistsU("prop." + name, 1) Then
shape.Cells("prop." + name + ".value").FormulaU = _
StringToFormulaForString(values.getString)
End If
"values" is an object that contains strings
Have anybody experienced the same problem and come up with a solution?
Soren
I have made a function, that takes the value from a custom property ID
on a shape. Then uses this id to collect the other custom property
values from a DB.
The thing is this works fine on shapes that are not grouped. I have
made one shape, a box and two ekstra text field piping to two
different custom properties. The custom properties are on the group.
I drop the shape gives it an ID, and runs my function and nothing
happens. I know it gets the ID, and collects the values in the DB, but
shape.CellExistsU("prop." + name, 1) returns false, so the values
aren't set on the shape.
Then i tried to write a value in every property on the shape manual,
just something like "asldfkj". And when i run the function now
shape.CellExistsU("prop." + name, 1) suddenly returns true.
Here is the code i use to set the property
If shape.CellExistsU("prop." + name, 1) Then
shape.Cells("prop." + name + ".value").FormulaU = _
StringToFormulaForString(values.getString)
End If
"values" is an object that contains strings
Have anybody experienced the same problem and come up with a solution?
Soren