Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > microsoft.public.scripting.vbscript > #12397
| Path | csiph.com!aioe.org!BHGTVyTGRwF2ntnqLVfpDg.user.46.165.242.75.POSTED!not-for-mail |
|---|---|
| From | "R.Wieser" <address@not.available> |
| Newsgroups | microsoft.public.scripting.vbscript, comp.os.ms-windows.programmer.win32 |
| Subject | IDL - how to define and call an objects default method ? |
| Date | Sat, 5 Feb 2022 13:41:42 +0100 |
| Organization | Aioe.org NNTP Server |
| Lines | 24 |
| Message-ID | <stlrao$18ah$1@gioia.aioe.org> (permalink) |
| Injection-Info | gioia.aioe.org; logging-data="41297"; posting-host="BHGTVyTGRwF2ntnqLVfpDg.user.gioia.aioe.org"; mail-complaints-to="abuse@aioe.org"; |
| X-MimeOLE | Produced By Microsoft MimeOLE V6.00.2900.5512 |
| X-Priority | 3 |
| X-RFC2646 | Format=Flowed; Original |
| X-Notice | Filtered by postfilter v. 0.9.2 |
| X-Newsreader | Microsoft Outlook Express 6.00.2900.5512 |
| X-MSMail-Priority | Normal |
| Xref | csiph.com microsoft.public.scripting.vbscript:12397 comp.os.ms-windows.programmer.win32:6307 |
Cross-posted to 2 groups.
Show key headers only | View raw
Hello all, I've written a simple array-type object, and would like to be able to set a default getter and setter for the object. IOW, instead of (in VBScript) writing MyArray.SetField(3,2) = "42" wscript.echo MyArray.GetField(3,2) I would be able to use (something like) MyArray(3,2) = "42" wscript.echo MyArray(3,2) Although I've seen the "default action" possibility somewhere (Python IIRC), I do not even know if its possible in Windows (win32). Question: Is it possible to define (in the typelib?) a default action (method, property) for an object ? And if so how ? Regards, Rudy Wieser
Back to microsoft.public.scripting.vbscript | Previous | Next — Next in thread | Find similar
IDL - how to define and call an objects default method ? "R.Wieser" <address@not.available> - 2022-02-05 13:41 +0100
Re: IDL - how to define and call an objects default method ? JJ <jj4public@gmail.com> - 2022-02-06 23:46 +0700
Re: IDL - how to define and call an objects default method ? "R.Wieser" <address@not.available> - 2022-02-07 10:25 +0100
Re: IDL - how to define and call an objects default method ? JJ <jj4public@gmail.com> - 2022-02-08 16:09 +0700
Re: IDL - how to define and call an objects default method ? "R.Wieser" <address@not.available> - 2022-02-08 14:44 +0100
Re: IDL - how to define and call an objects default method ? JJ <jj4public@gmail.com> - 2022-02-09 00:11 +0700
Re: IDL - how to define and call an objects default method ? "R.Wieser" <address@not.available> - 2022-02-08 20:51 +0100
Re: IDL - how to define and call an objects default method ? Found it. "R.Wieser" <address@not.available> - 2022-02-09 13:11 +0100
csiph-web