Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

ClassID and ActiveX

Status
Not open for further replies.

Trudye

Programmer
Sep 4, 2001
932
0
0
US
These are some REAL novice questions.

I am reading an old book on VBScript(I picked it up for $10.00). Currently I am reading about Object Declaration for Labels. In the example the declaration includes a "Classid". The book suggests that classid's may soon be passe'. I tried to search FAQ but didn't get a hit. Are they still necessary or is some other form of object identification used now?

Also while I have your attention, are my VB ActiveX objects usable in VBScript (i.e. calendar, listbox)?

Thank you so much
Trudye
 
Trudye,
I think that this refers to the CreateObject method which is used to access automation components. Instead of using the Classid, you need to find the automation object interface.

For example, to use the FileSystemObject you use:
Set fso = CreateObject("Scripting.FileSystemObject")

or for Office applications:
objWord = CreateObject("Word.Application")

where FileSystemObject and Application are the application interfaces.

I have a post on thread329-649904 about how to find the object interfaces.

Zy
 
Thanks Zy for responding, I'd forgotten I posted the question. You are right that is exactly what classid is used for.

I read you previous post but I must be missing something (which is nothing new). Here is the code I was given to create a label object that appears slanted.

<OBJECT
classid=&quot;clsid:99B42120-6EC7-11CF-A6C7-00AA00A47DD2&quot;
id=lblFeedback1
width=200
height=80
align=center
hspace=0
vspace=0
>
<param name=&quot;angle&quot; value=&quot;0&quot; >
<param name=&quot;alignment&quot; value=&quot;4&quot; >
<param name=&quot;BackStyle&quot; value=&quot;0&quot; >
<param name=&quot;caption&quot; value=&quot;Hint: not &lt.ACTIVEX&gt.!&quot;>
<param name=&quot;FontName&quot; value=&quot;Arial&quot;>
<param name=&quot;FontSize&quot; value=&quot;12&quot;>
<param name=&quot;FontBold&quot; value=&quot;0&quot;>
<param name=&quot;FontItalic&quot; value=&quot;1&quot;>
<param name=&quot;FontUnderline&quot; value=&quot;0&quot;>
<param name=&quot;FontStrikeout&quot; value=&quot;0&quot;>
<param name=&quot;forecolor&quot; value=&quot;0&quot;>
</OBJECT>

How do I create this object in todays VBScript.

Sorry to be taking up so much of your time
Trudye
 
Trudye,
Do you mean a mailing label or a bookmark? If you could reporduce what you want to do with the Record Macro function on, then post the VBA/macro code here that would make it clearer.

Zy
 
No not a mailing label. Just a label with text in it that is displayed on a HTML page. It is at a 90 degree angle.

Thanks
Trudye
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top