Alice Community  

Go Back   Alice Community > Alice 2 > How do I...?

Reply
 
Thread Tools Display Modes
Using function "[Object]'s Variable named [variableName] of type [valueClass] "
Old
arielargentina
Guest
 
Status:
Posts: n/a
Unhappy Using function "[Object]'s Variable named [variableName] of type [valueClass] " - 07-03-2012, 07:55 PM

Hello, can anyone tell me how and for what this function works?

In a custom method with a list as parameter ,i am trying to do the next:

For each Object in list -> Object set property [CustomProperty] to [value]

For this i was wondering if i could use the function "[Object]'s Variable named [variableName] of type [valueClass]" found in Object as "other" functions.

Like the function [Object]'s part named [key]. But my problem is i can't drag it anywhere. Where should it be placed?


I am really stuck at Generics Methods with this, because i can't set an object custom property.

Hope my english was good.
   
Reply With Quote
Old
arielargentina
Guest
 
Status:
Posts: n/a
Default 07-04-2012, 05:59 PM

I could use this function in the print function and also iterating a list. But it is read-only access, my problem is I can not write the variable obtained by the function.


How to access a generic property of an object passed as a parameter?

Any ideas?
   
Reply With Quote
Old
djslater107
Administrator
 
Status: Offline
Posts: 145
Join Date: Jan 2007
Default 07-05-2012, 09:23 AM

This function never worked as it was intended to, and it should be removed in the next release of Alice 2.2.

Sorry


Don Slater
Alice Team
Carnegie Mellon University
   
Reply With Quote
Reply

Tags
generic, method, methods, type, variable named

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump



Copyright ©2018, Carnegie Mellon University
Alice 2.x 1999-2012, Alice 3.x 2008-2012, Carnegie Mellon University. All rights reserved.