Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
VB Constants
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Titre:
Divers
Thread ID:
00780963
Message ID:
00781114
Vues:
17
There's also a little trick I use at development time to find a constant value. This takes advantage of the scripting component (which I believe is installed with IE).
oScript= CreateObject("msscriptcontrol.ScriptControl")
oScript.Language ="VBScript"
? oScript.Eval("vbRed")
(Note that if you pass a name that VB doesn't recognize, it returns null.)


>That's what I'm looking for. Thanks
>
>>You are right, they are standard VB constants. There are defined here: http://tinyurl.com/a7xr
>>
>>>I've already looked in that file. The constant(s) I'm looking for are not defined there. I think I'm looking for standard VB constants, not specific to this control.
>>>
>>>>>OK, I have 326 TLB files on my machine. Where do I start?
>>>>On the first one -- Just kidding... :)
>>>>
>>>>Try to find out the name of the OCX that you are using. That should give you a clue as of to what name the TLB will have. A lot of times the TLB file will have the same name as the OCX file that you are using.
>>>>
>>>>
>>>>>
>>>>>>Check Rick's Get Constants utility out:
>>>>>>http://www.west-wind.com/webconnection/docs/_0190idtn6.htm
>>>>>>
>>>>>>>I'm using an activeX control that only has sample code in VB. I need to set some properties, but don't know what the actual values are. For example:
>>>>>>>
>>>>>>>
>>>>>>>oCtrl.ForeColor = vbRed
>>>>>>>
>>>>>>>
>>>>>>>Does anybody know where I can lookup what these values are so I can set them in my VFP app?
The whole problem with the world is that fools and fanatics are always so certain of themselves, but wiser people so full of doubts. - Bertrand Russell
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform