reading custom properties

Deploying to Windows? Utilizing VB Script execution? This is the place to ask Windows-specific questions.

Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller, robinmiller

Post Reply
shadowslash
Posts: 344
Joined: Tue Feb 24, 2009 6:14 pm
Contact:

reading custom properties

Post by shadowslash » Wed Mar 11, 2009 6:49 pm

i've been wondering, i made a custom property in the stack... the custom propery has the name "test".. it contains a text string "this is just a test".. now i want to use "this is just a test" as the content of my answer dialog, how do i do that?? i tried looking for an answer but i can't seem to locate any... Image
Parañaque, Philippines
Image
Image

SparkOut
Posts: 2945
Joined: Sun Sep 23, 2007 4:58 pm

Post by SparkOut » Wed Mar 11, 2009 7:27 pm

answer the test of this stack

(assuming you stored this as a property of the stack, and not a button or other object)

You can get and set custom properties just like built in properties.

You could:
answer the width of this stack
or
answer the cTestProperty of this stack
or
put the cTestPropery of this card into field "fldDisplay"

and
set the width of this stack to 500
or
set the cTestProperty of this stack to "Hello World"
or
set the cSomeProperty of button "btnPushButton" [of card "cardName" of stack "stackName"] to "This is some stored text"

I know this is just a test example, but you might want to adopt a naming convention to determine the names of the properties are custom properties, as opposed to variables or built-ins or literals. (Such as cPropertyName or uPropertyName - which are the general conventions).
HTH

shadowslash
Posts: 344
Joined: Tue Feb 24, 2009 6:14 pm
Contact:

Post by shadowslash » Wed Mar 11, 2009 7:36 pm

hey! thanks for the reply, it worked! but i'll get to it later, i'm still playing Dance Battle Audition Philippines right now x)
Parañaque, Philippines
Image
Image

Post Reply