doc Posted October 14, 2006 Share Posted October 14, 2006 I have a button on my otl that I want disabled when renderType(a string parameter) is set to "random" I 've tried the following: { renderType random } { renderType "random" } but neither seem to work. Any idea what I'm doing wrong. Quote Link to comment Share on other sites More sharing options...
old school Posted October 16, 2006 Share Posted October 16, 2006 I betcha the parameter that you are trying to grab is really an int type with a menu where you are attempting to use Tokens but alas, it won't work. If that's the case, then you need to use the numeric index in to the menu of choices starting at zero. If the source parm was a real String Type, then you have a typo. Best to change the type to string if you want to index by the Token string. The confusing thing with Type: int parms and their Menu lists is that it allows you to use string names for the Token. The tokens are not used. Even if you use integers that are not consecutive (trying to be clevar ) it won't work. The abolute index from top to bottom starting at 0 is what is used. Quote Link to comment Share on other sites More sharing options...
doc Posted October 16, 2006 Author Share Posted October 16, 2006 Hey Jeff, I was actually using a string menu parameter, but it didn't seem to work. Anyways I used a int menu paramter instead and that works just dandy. If I get a chance I'll put a bug file together and send it to sesi. luca Quote Link to comment Share on other sites More sharing options...
jhiggins Posted October 26, 2006 Share Posted October 26, 2006 Hey Jeff,I was actually using a string menu parameter, but it didn't seem to work. Anyways I used a int menu paramter instead and that works just dandy. If I get a chance I'll put a bug file together and send it to sesi. luca hey luca, are you using the label or the token for your disable? if your using the token, than i'm surprised it doesn't work, b/c i was using something like this recently. here's sample hip which uses a menu string parameter to disable a toggle. good luck, jeff h. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.