Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
VFP syntax for this VB statement
Message
From
21/05/2007 13:46:11
 
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
01227095
Message ID:
01227379
Views:
18
>>>>>>VB is 0 based for the array. Change your indices from 1...4, to 0...3.
>>>>>
>>>>>You can't in VFP :-) That is why COMARRAY() is used.
>>>>
>>>>
>>>>No, not the VFP array, the VB object property that's expecting an array. I think if you reference it with the 0...3, it would work.
>>>
>>>It's not clear to me what you're suggesting. And I doubt we can change VB object.
>>
>>this:
>>
myTextFrame.GeometricBounds[1] = "6p0"
>>myTextFrame.GeometricBounds[2] = "61p0"
>>myTextFrame.GeometricBounds[3] = "18p0"
>>myTextFrame.GeometricBounds[4] = "62p0"
>>
>>try:
>>
myTextFrame.GeometricBounds[0] = "6p0"
>>myTextFrame.GeometricBounds[1] = "61p0"
>>myTextFrame.GeometricBounds[2] = "18p0"
>>myTextFrame.GeometricBounds[3] = "62p0"
>
>Mike tried it as well
>Re: VFP syntax for this VB statement Thread #1227095 Message #1227113

So he did, I missed it. Maybe that GeometricBounds property has an .Item[] property that can use the 0 based syntax.
myTextFrame.GeometricBounds.Item[0]...
Fred
Microsoft Visual FoxPro MVP

foxcentral.net
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform