Re: Meta

From: [at]} <Gérard>
Date: Thu, 12 Aug 2004 19:07:52 +0200

----boundary-LibPST-iamunique-354374179_-_-
Content-type: text/plain

Chris,

> > I would be interested too in learning how I
> > could get the name of a variable (e.g. a record).
> > Services.GetTypeName can give the name of its type, but not
> > its name itself.
>
> You can use a Meta.Scanner to iterate through the list of all of the
> public variables in a module, using GetObjName to retrieve the name of
> the object. You could then use some other attribute (address, perhaps?)
> to isolate the variable name that you are interested in. It is a
> recursive exercise - see the following example to get started.

Yes, it's perhaps the better solution. I hoped that there was a more direct
and quick way, but it seems there is not.
The bad news is that, apparently, Meta is buggy. For my task, I need to scan
all available modules, since I've no information about the location of the
variable I'm looking for. But when a Meta.Scanner is connected to all
modules (Meta.Scanner.ConnectToMods), it behaves very strangely (at least
with BB 1.4 + SP1). Try the following module, derived from yours:

PacCoder.Decode
/I:.Pk/h.5..:k....5P1SK9E/.6Uk0UTH.FSoHQ9i2hgRXvQUP61vZ/zaI7Dcyu5PSqqZi3acOl
YuYf1/q2LOz1QokpLPCq7dk5k:iTURPy04TwCoWntM7ESeGo4fECa9EEGoNPE5fdh.JIpcG:h0/u
rq9E6ypc3xqPNq2nRq8wTCl2NIyvvikIv62o3c4TTMsKBVzDDg2tnyUiqfHzP36xjWk/dzM3Q/iG
kTBU1BSu9.uhUO/vG0qV6BUDXmvfM:.g2i/xg5JM4OkSa2g5SK.ug5hM498g9MDik4rydg14PX:N
ad2..q:CGBIuv9BpbhSNzNNJKKvDe:5v5wwSa/N2qKLWNda2nNBcojpYkaPKmNvHEwH8SkJTl:dK
6HFQ7Z42o87c6H:6aOmZU0:ds7Uv.2cMMGQGrZo.n1W3FxaqzbcXWhnW2csVGC79XWTnWEXWUCNQ
4BD2jcvY1lEoabW55x8wI0p8x:4HyyXlF8oged3PlJyOi90MrhQ8FXTNMViLWLG7uHlyXt92OTcL
jlxw/DJLSK7wZW8jYKW3vjaW87h2nQoLjWYZnyzTeEZWRyGCZWXIRxLnShvGpBlaDTMtiyy1X7C9
h6azJy2eHpSxvJL5jxtcOKzBnzoMB:rNvsxBzDhdMWpNvL0yOQ7DIvK.QQ/PrMNp2LlY9D4xG7tE
R2RfkdbuFHij61USVtPSr4Zlt556uC16vdPJNgoBLkarnvH9HkkeBD3N:rpPh0TC2U8kkvsf2WBq
z.ZUqfqChw2xvFfqxcuoym7nn4y2WTVn3VPFpXjVQwZMu3RbLF49pjUv7DOqS3JzzFiW.EQ4b:yS
3jNOWE1cRD8pqa2xJmylNnfH/amOcvH/SreydsNuyCSxvJxXWFgQ3U:gBvyzv4B5Vp5:DK3MI8Yb
tO4E:Prv/UHzF7HiF8FqjH:4nyHgfKb3giBgwNGN7ubnf3evhogstHOSpZEtZj8K5JF0DBnNQNGr
FLEYwnUpS:8HzNl8mL1LPYUdPfMhTTCiZ/6NBqDDvS3dbCNILf1xq/vIt.j3s8kBtz6b:boXz4ji
foZcS1jFbpRhpeKi5miE2.C4..
AtEndOfEncoding

But with a twisted programmation, you obtain an almost good behaviour (I
think that the first module is lost):

PacCoder.Decode
/I:.Pk/h.5..:k....2:a7yHE/.6Uk0UTH.FSoHQ9i2hgRXvQUP61wmUzr82CDMu6vxqRTVNeSng
vIUkllV3qVViH1JTua7dyy:19zUVy/nsRjWne.iBmh/qQfE:ZBECHINQqvQi3uV70iP69e.z1I0z
DtR:tdEfDVlljn2vZkIL63o/uLk3nph9V1cDJGs7TlELrJdPvWYKIxlC9EzHr0FPvZQJx5iyN:Ks
9kL9naUrQ7pS7/fXsywkwgk0KGtkmKRIgNdNuGkS4kZX1STf92GBZY3ztZVWGl7hSoNaK1EU43:s
h2OfOKdamnah:zggh8oyPeWnxQT4t0lK/Ndd3XDIWldNl9wXD5DWYqPGmWm.xyFGJ8WSWmwVsZrd
tlztlStUOs/lfLC:RnXbnW:CC0QsgR/wsR5Qs8zOuzoKV3DHuixQs8Lt1nXtrjL2jVd1mzsNS00k
L7EwszSLf3v/fgHtm3dNJE5ilJop8KDaQVQnUzuJ9z:sBnC/dTsFDHC/2RzzHC45TxxyzVzLm2:k
L/H5WRTTva0xvr233gVPNz:xKJns6jtVJJdT:R2zn00yN2zbsxKQnZRy1Ns8K07ttgQfvJtG3T:S
LejaCxfjdeoOTQjtUbQTsyhuxbDF5n5emHeyMKdOFxvUslYybtc/tyVjJsH92LfrMyIJ7LbT:6vt
PbMj45bhmjBNZSuxzQm9vKR1Q9D:gJi3lvhoRLtxNv7sMz7zIpn6lIL5hg49txqVTXPQKwaPgyr8
V6fRaKog4ewCq1Lh4Pa.GhvZiQwXanfggkfKoR9fl9bhJhQ3xePcn1ulsRabhfD2ezzcr:k684Ha
OhGSD08dRZR0dVDQlsZZC/FGhpXknOwS9fgS3vSD1PNMpvSkrMa9wFYP8:95gzSxzTzDbzN3FN8p
UK/0csIR8QKDHxykHdTcPcTbFwJfonv3Vu0mLh8nghyqSQX1YDTQql8ir33:IXh.pbXH1LYmJoIs
ZnvQVaPQHELO5zzYEdNNVe:U4bygmFG8r5S:qUQFrZP1c1sGbPtYUR83.MXMw9TH9bMtpFQURa5x
zH2pO9YpQ:Bh2zCU8Dgrhw4crtj.ydzhL5u.OComXE2.CG.
AtEndOfEncoding

Regards.

Gérard

--------------------------------------------

To unsubscribe from this mailing list, send a message containing the word "unsubscribe" to:
   blackbox-request{([at]})nowhere.xy

To get a list of valid e-mail commands and instructions on their usage, send a message containing the word "help" to the above address.

Send any problem reports or questions related to this email list to the list owner at
   owner-blackbox{([at]})nowhere.xy

Current posting policy:

a) To post you should use the same address by which you are subscribed to the mailing list. That way, the list server will recognize you as subscriber and forward your posting immediately, without creating any overhead.

b) If, for some reason, you cannot post from the address, by which you are subscribed, your message will be moderated to avoid spam. Please understand that moderation will often cause some delay, in particular over weekends or holydays.


----boundary-LibPST-iamunique-354374179_-_-
Content-type: application/rtf
Content-transfer-encoding: base64
Content-Disposition: attachment; filename="rtf-body.rtf"

e1xydGYxXGFuc2lcYW5zaWNwZzEyNTJcZnJvbXRleHQgXGRlZmYwe1xmb250dGJsD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kgb3ZlcmhlYWQuXHBhcg0KXHBhcg0KYikgSWYs
IGZvciBzb21lIHJlYXNvbiwgeW91IGNhbm5vdCBwb3N0IGZyb20gdGhlIGFkZHJlc3MsIGJ5IHdo
aWNoIHlvdSBhcmUgc3Vic2NyaWJlZCwgeW91ciBtZXNzYWdlIHdpbGwgYmUgbW9kZXJhdGVkIHRv
IGF2b2lkIHNwYW0uIFBsZWFzZSB1bmRlcnN0YW5kIHRoYXQgbW9kZXJhdGlvbiB3aWxsIG9mdGVu
IGNhdXNlIHNvbWUgZGVsYXksIGluIHBhcnRpY3VsYXIgb3ZlciB3ZWVrZW5kcyBvciBob2x5ZGF5
fX0AM01JOFli


----boundary-LibPST-iamunique-354374179_-_---
Received on Thu Aug 12 2004 - 19:07:52 UTC

This archive was generated by hypermail 2.3.0 : Thu Sep 26 2013 - 06:28:40 UTC