Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > microsoft.public.scripting.vbscript > #12397
| 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 | 2022-02-05 13:41 +0100 |
| Organization | Aioe.org NNTP Server |
| Message-ID | <stlrao$18ah$1@gioia.aioe.org> (permalink) |
Cross-posted to 2 groups.
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