Notifications
Clear all
[Closed] RadioButton Problem
Page 2 / 2
Prev
Apr 10, 2008 12:50 am
I create a “Getto” solution for the moment… Since my variable is only getting integer values back from the Radiobuttons, instead of the text like is should be. I created this script for it:
FileType = rdoFileType.state as integer
if Filetype == 1 then
(
Filetype = ".rpf"
)
if Filetype == 2 then
(
Filetype = ".tga"
)
if Filetype == 3 then
(
Filetype = ".jpg"
)
It works now, but this seems like a bad way to code… Oh well Thanks for helping guys!!
Apr 10, 2008 12:50 am
Here is what I did, and works fine for me.
(
rollout test "TEST"
(
group "Final Rendering"
(
radiobuttons rdoFileType labels:#("rpf", "tga", "jpg") default:1
button butFinal "Setup Final Rendering"
)
on butFinal pressed do
(
fileType = case rdoFileType.state of
(
1: ".rpf"
2: ".tga"
3: ".jpg"
)
print fileType
)
)
createDialog test 500 100
)
Before you were calling state, which was just giving you the current state of the radio button (returning an integer)
Apr 10, 2008 12:50 am
Labbejason,
It’s working now! That was exactly my problem Thanks man!
Page 2 / 2
Prev