Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > microsoft.public.scripting.vbscript > #12405

Re: IDL - how to define and call an objects default method ?

Path csiph.com!news.mixmin.net!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 Re: IDL - how to define and call an objects default method ?
Date Tue, 8 Feb 2022 20:51:48 +0100
Organization Aioe.org NNTP Server
Lines 41
Message-ID <stuhlv$6if$2@gioia.aioe.org> (permalink)
References <stlrao$18ah$1@gioia.aioe.org> <11xezf8j3kybx$.1b5n7cn4g91t5$.dlg@40tude.net> <stqonn$vlf$1@gioia.aioe.org> <6ztcgp3tbz71$.1pd80gla5yth$.dlg@40tude.net> <stts39$utq$1@gioia.aioe.org> <xw8d4vgh1hq1.t8tqughxioxy.dlg@40tude.net>
Injection-Info gioia.aioe.org; logging-data="6735"; posting-host="BHGTVyTGRwF2ntnqLVfpDg.user.gioia.aioe.org"; mail-complaints-to="abuse@aioe.org";
X-MimeOLE Produced By Microsoft MimeOLE V6.00.2900.5512
X-MSMail-Priority Normal
X-Newsreader Microsoft Outlook Express 6.00.2900.5512
X-Priority 3
X-RFC2646 Format=Flowed; Original
X-Notice Filtered by postfilter v. 0.9.2
Xref csiph.com microsoft.public.scripting.vbscript:12405 comp.os.ms-windows.programmer.win32:6313

Cross-posted to 2 groups.

Show key headers only | View raw


JJ,

> There's simply not enough information to see what went wrong.

As far as I can tell nothing goes wrong.  Its just a question of how to 
handle what I'm getting presented.


Your suggestion to give a propertyget/propertyset combination an ID of Zero 
did work.  Its just that I've than tried to use the VBS commands as 
described in my initial post, but not getting the expected results (I do not 
see a propertyget / propertyset - and sometimes errors are thrown).

Though I found out that all objects are supposed to be able to be part of a 
'collection', and that the first "( )" is supposed to indicate which element 
of the collection the object is supposed to be.

IOW, I can now write

MyArray()(3,4) = 42

and

wscript.echo MyArray()(3,4)

and see my object be accessed - and than throwing an error because it wants 
to access a method, not a property.

Personally I do not have a problem with that "lets just call a method" 
behaviour, but I'm now having a bit of a problem in trying to figure out how 
I'm supposed to discern between a "write" and a "read" action on that 
function ...


Does that give you a bit more to work with ?  If not, please do tell me what 
you need.

Regards,
Rudy Wieser

Back to microsoft.public.scripting.vbscript | Previous | NextPrevious in thread | Next in thread | Find similar


Thread

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