Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
VFP syntax for this VB statement
Message
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
01227095
Message ID:
01227114
Views:
18
Sorry,
No other suggestions :-(
Just maybe:
DIMENSION TheArray(4)
COMARRAY(myTextFrame,10)
TheArray(1) = "6p0"
TheArray(2) = "6p0"
TheArray(3) = "18p0"
TheArray(4) = "18p0"
myTextFrame.GeometricBounds(@TheArray)

*or
COMARRAY(myTextFrame,11)
...
myTextFrame.GeometricBounds(@TheArray)

*or (I am not sure at all if this will work)
myTextFrame.GeometricBounds = @TheArray
>>>>What is obj? Was it created with CREATEOBJECT() command before? My point
>>
>>Try:
>>
>>DECLARE myArray[4]
>>myArray[1] = "6p"
>>myArray[2] = "6p"
>>myArray[3] = "24p"
>>myArray[4] = "24p"
>>myTextFrame.GeometricBounds = myArray
>>
>
>I got this error:
>
>
>OLE error code 0x80070057: The parameter is incorrect
>
>
>I have tried the following formats:
>
>
>*!*	myTextFrame.GeometricBounds[1] = "6p0"
>*!*	myTextFrame.GeometricBounds[2] = "6p0"
>*!*	myTextFrame.GeometricBounds[3] = "18p0"
>*!*	myTextFrame.GeometricBounds[4] = "18p0"
>
>*!*	DIMENSION TheArray(4)
>*!*	COMARRAY(myTextFrame,0)
>
>*!*	TheArray(1) = "6p0"
>*!*	TheArray(2) = "6p0"
>*!*	TheArray(3) = "18p0"
>*!*	TheArray(4) = "18p0"
>*myTextFrame.GeometricBounds(@TheArray)
>
>*!*	myTextFrame.GeometricBounds[0] = ("6p0")
>*!*	myTextFrame.GeometricBounds(1) = "6p0"
>*!*	myTextFrame.GeometricBounds[2] = "18p0"
>*!*	myTextFrame.GeometricBounds[3] = "18p0"
>
>*!*	myTextFrame.GeometricBounds = '6p0,6p0,18p0,18p0'
>
>*!*	myTextFrame.GeometricBounds = ['6p0','6p0','18p0','18p0']
>
>*!*	myTextFrame.GeometricBounds = ["6p0","6p0","18p0","18p0"]
>
>*!*	myTextFrame.GeometricBounds = ['6p0,6p0,18p0,18p0']
>
>*!*	myTextFrame.GeometricBounds = ["6p0,6p0,18p0,18p0"]
>
>*!*	myTextFrame.GeometricBounds = ["6p", "6p", "24p", "24p"]
>
>*!*	myTextFrame.GeometricBounds = COMARRAY(["6p", "6p", "24p", "24p"])
>
>*!*	DECLARE myArray[4]
>*!*	myArray[1] = "6p"
>*!*	myArray[2] = "6p"
>*!*	myArray[3] = "24p"
>*!*	myArray[4] = "24p"
>*!*	myTextFrame.GeometricBounds = myArray
>
Against Stupidity the Gods themselves Contend in Vain - Johann Christoph Friedrich von Schiller
The only thing normal about database guys is their tables.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform