Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Invalid Subscript on ActiveX call
Message
De
03/08/2009 22:15:38
Dragan Nedeljkovich (En ligne)
Now officially retired
Zrenjanin, Serbia
 
 
À
01/08/2009 13:59:27
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Versions des environnements
Visual FoxPro:
VFP 9 SP2
OS:
Vista
Network:
Windows 2003 Server
Database:
Visual FoxPro
Application:
Desktop
Divers
Thread ID:
01415259
Message ID:
01416007
Vues:
39
>>>The first workaround that comes to mind would be to get a reference to the object you are addressing - if it's some sort of a cell, >>and if you could get
>
>>>oCells=control.Cells(lnHandle)
>
>>>or something like that, i.e. something that would give you the object retrieved via the handle, and then you'd just address the cells >>inside that object without the need for three parameters. Analogously to having a reference to a range in Excel, and then going >>oRange.Cells(...) instead of oSheet.Range("some name").Cells(...), even though the latter works, even with more parameters, so I >>wouldn't say it's Fox. Though, Office may be a special case. Theoretically, it's possible that once upon a time the Office and the >>VFP teams were allowed to meet.
>
>Thanks Dragan, I thought of that and asked the txText control guys, but they say no it's not possible. Also tried to see it there as an equivelant to ActiveCell but no joy.

The next thing to try is to fire up is the object browser, and then a getinterface() based on what it says. Did it once, three years ago, with the WPCubed's RTF/Html editor control (and actually the author found that trick, after reading VFP help - herr Ziersch was unbelievable). Using that, I managed to get an interface to objects which weren't otherwise exposed. It was tricky, but the results were above what I hoped for.

back to same old

the first online autobiography, unfinished by design
What, me reckless? I'm full of recks!
Balkans, eh? Count them.
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform