Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
VFP syntax for this VB statement
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
01227095
Message ID:
01227113
Vues:
22
>>>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 
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform