Function true or false - mark questions
I have a problem.I want to do 2 questions, which user must answer decision yes or no .I want to do somthing like CheckBox without input text - only mark. Result which answer will be give by user will transfer to different sites, so for this problem I need function responsible for this event. I request for help with this issue because I don't even know how begin.
Best regards
check the flash help files. a lot of effort went into creating them and they are packed with useful information. here's sample code, copied from the help files:
import fl.controls.RadioButton;
import fl.controls.RadioButtonGroup;
var rbg1:RadioButtonGroup = new RadioButtonGroup("group1");
var rbg2:RadioButtonGroup = new RadioButtonGroup("group2");
var rb1:RadioButton = new RadioButton();
var rb2:RadioButton = new RadioButton();
var rb3:RadioButton = new RadioButton();
var rb4:RadioButton = new RadioButton();
rb1.addEventListener(MouseEvent.CLICK, announceGroup);
rb2.addEventListener(MouseEvent.CLICK, announceGroup);
rb3.addEventListener(MouseEvent.CLICK, announceGroup);
rb4.addEventListener(MouseEvent.CLICK, announceGroup);
rb1.group =
rb2.group = rbg1;
rb3.group =
rb4.group = rbg2;
rb1.move(10,10);
rb2.move(10,50);
rb3.move(150,10);
rb4.move(150,50);
addChild(rb1);
addChild(rb2);
addChild(rb3);
addChild(rb4);
function announceGroup(e:MouseEvent):void {
var rb:RadioButton = e.target as RadioButton;
trace(rb.groupName);
Similar Messages
-
Hello!
I want to decide dynamically while running a sequence to log the results to a database or not.
So I need to set the "database logging enabled" property by a activex function call.
Does a activex api function exist? I didn't found one, or is their an other way to change the property value?
Thanks and regards
M. BrosigHi,
Ah! I understand.
You can change the runtime properties from you sequence or inside your step by using the Lookup string of
"RunState.Caller.Locals.DatabasesOptions.DisableDatabaseLogging"
Use the TS API PropertyObject.SetValBoolean("DatabasesOptions.DisableDatabaseLogging", 0, newValue) method with RunState.Caller.Locals as your ActiveX Reference. (where newValue would be True or False.)
Depending at what level you perform this API method depends how many "RunState.Caller" you have in your lookup string.
eg.
My example of
PropertyObject.SetValBoolean("DatabasesOptions.DisableDatabaseLogging", 0, newValue) with RunState.Caller.Locals as your ActiveX Reference is based on a step in MainSequence which has been called by the Process Model sequence.
If you have a step in a Sub-Sequence of MainSequence then the lookup string would be
"RunState.Caller.RunState.Caller.Locals" as the activeX reference.
Hope this helps
Regards
Ray Farmer
Regards
Ray Farmer -
I have two inputs within my LV program. I need to output true (or value for true) if input 1 is true but output false (or value for false) if input 2 is true. The select function allows different outputs but for only 1 input.
It should be fairly eeasy to come up with a boolean structure fo this. For example, you have if input 1 as a true and input 2 as a true, what does it output???
Normally you can make a table to figure out what structure you could use. 1 = true, 0 = false
Input 1 Input 2 Output
0 0 0
0 1 0
1 0 1
1 1 0 (I am assuming)
That means if you write it out out need (input 1) * (input 2)' or an And terminal with input 1 wired to a terminal and input 2 wired to a not and then to the other and terminal (see picture)
Kenny
Attachments:
ab not.gif 3 KB -
Hi all,
Pls tell me whether this sentence is true or false.
A transaction used by a BMT bean MUST have been started by the bean.
In book this question is marked as false, but as far as I think it should be true.
Pls update.
Regards,
SanjeevAs it's written I would say it's true as well.
Bean-managed transactions are only allowed for session beans(stateful and stateless) and message-driven beans. Furthermore, if there is any client transaction context propagated on the call to the BMT bean, the container is required to suspend the client tx before calling the business method. So, BMT beans cannot inherit client transactions.
For BMT stateless session beans and message-driven beans, there cannot be an active user transaction when the business method completes. If there is, the container is required to treat it as an error.
The slightly more interesting case is for stateful session beans. For BMT SFSBs, it's o.k. for the transaction to still be active when the business method returns. In that case, the container suspends the tx and assoicates it with the SFSB. Whenever the SFSB is invoked again, the previously associated transaction is resumed before the business method is called. ( The same rule holds for client transactions. If there is one, it will be suspended and resumed when the business method completes. ) However, even if the container resumes a previously suspended transaction before invoking the SFSB, it can only be a transaction that was started by that bean.
--ken -
Can we save a True or False state in Labview?
I'm using Labview 4.01 and I'm trying to control my testing process. In
this case, I have 3 gas cylinders and every one of them can be turned on
or off through the digital out lines. After one tank is empty, I can
turn it off and turn on another one. My question is, how we can save
this status either it's true or false so next time, we can open the
other one instead of this empty one. After this one is turned off, I can
show its state with an indicator, but the program can not read an
indicator, so we still can not check the state of this tank. Any one
have a solution for this problem?
Thanks in advance,
Guangde WangGuangde Wang wrote:
>
> I'm using Labview 4.01 and I'm trying to control my testing process. In
> this case, I have 3 gas cylinders and every one of them can be turned on
> or off through the digital out lines. After one tank is empty, I can
> turn it off and turn on another one. My question is, how we can save
> this status either it's true or false so next time, we can open the
> other one instead of this empty one. After this one is turned off, I can
> show its state with an indicator, but the program can not read an
> indicator, so we still can not check the state of this tank. Any one
> have a solution for this problem?
>
> Thanks in advance,
>
> Guangde Wang
Your version is too old. So I believe that saving data in any kind of
configuration file will
do the job (like .ini or .conf).
It also depends on if you are closing application between your vi runs.
If you don't remove the vi from memory, you have a chance to use global
or functional global to store your state.
In latest versions you can do it another way.
Sergey Krasnishov
Automated Control Systems
National Instruments Alliance Member
Moscow, Russia
[email protected]
http://acs.levsha.ru -
Hi,
My question: In my vi there are three terms (for example LEDs), which give my true or false and now the problem is that if one, two or all three give me a false something should happen, but there is only the possibility to connect two wires at the and/or functions. I wish to get a short message that something went wrong with one, two or all three terms, if the vi is finished. If everythiny is true, it´s OK, but if not i want to know it.
Has anybody an idea?!
Thanks, ThomasMaybe something like this?
Message Edited by altenbach on 09-28-2007 10:40 AM
LabVIEW Champion . Do more with less code and in less time .
Attachments:
Count-ON-LEDs.png 10 KB -
Hi all
A total newbie to director and need some help as i'm really
stuck,
For part of my college work I am trying doing a True or False
game based on 10 questions but unsure how to script this, what game
involves is when a question has been answered correctly the user is
sent to a marker named "Right", showing an animation telling them
they have answered it correctly, if they have answered the question
incorrectly they get sent to another marker named "Wrong" again
showing an animation telling them they have answered incorrectly.
The way I have decided to do this is by importing the
questions from text file that hold 10 question, the current script
i have for Director to load the questions is.....
on mouseUp me
openAndReadText
end
but wanting to randomize them.
I also have 2 buttons named True and False, and because 5
questions are true and 5 are false, the only code i have so far in
different scripts is
on startMovie
Answer
end
on Answer
global gQuestions
gQuestions = True
end
global gQuestions
on mouseUp me
if gQuestions = True then
go to "Right"
else
go to "Wrong"
end if
end
and dont know what code i needs to be added to determine
which correct answer goes to the correct marker
Thanks ifor any help in advance
ChrisConsider the low tech aproach.
If you don't have a big library of questions that have to be
imported
dynamically, I would suggest going with a less programatic
intensive
approach, in which each question is contained in a predefined
text
member displayed in a separate score marker.
Again the simplest least programatic approach would have the
actions for
the True False answer buttons assigned separately for each
individual
question, that is in question number 3 you might have the
True button go
to the wrong marker.
You could avoid writing any lingo code by using the navigate
to marker
behavior from the library palette to access a marker from a
series you
already have setup in the score.
A hard coded series of markers might look like:
question1
right1
wrong1
question2
right2
wrong2
question3
right3
wrong3
They would all show up in the parameter popup menu in the
behavior.
A score script at the start of the right wrong markers could
increment
the global question tally
on exitFrame
global rightCount, totalCount
totalCount = totalCount + 1
rightCount = rightCount + 1 -- this line is only in the righ
marker
script
end -
[Help plz]Can't set a boolean attribute to true or false
Hello,
I'm new in NWDS development. I need to develop a download functionality
I used a FileDownload UIElement for that and I created a node context (ExcelExport) with 3 attributes :
- ExcelFile
- ExcelIcon
- And ExcelEnabled (Boolean type)
My problem is that everytime I try to set the attribute ExcelEnabled to true or false, it return me a java.lang.NullPointerException
I'm binding this attribute with "Enabled" property of the UIElement.
Have anyone got this error before? Thanks a lot for your help.
Kind regards,
Safae.Hello Safae,
Have you tried to put true/false value for the enabled property? I mean without using a context attribute?
Also try to create the attribute out of the node.
Regards,
ImaneA. -
Item Event - BeforeAction - true or false?
Hi,
Is there a basic rule for BeforeAction?
I know you can play with BeforeAction for personal use; but it is there a basic rule like:
et_CLICK: then it is BeforeAction == false
I like to know for following event:
et_CLICK
et_COMBO_SELECT
et_MATRIX_LINK_PRESSED
et_MATRIX_LOAD
et_CHOOSE_FROM_LIST
et_MENU_CLICK
Is there a Pattern for BeforeAction for ALL Item Events?
Thank you,
RuneHi Rune,
there's no real rule, because the events are different.
but usual it is before/after displaying or before/after mouseup
EventType | beforeaction = true | beforeaction = false
et_CLICK | before you release the mouse button/Button is pressed | after you release the mousebutton
et_ITEM_PRESSED | before you release the mouse button | after you release the mousebutton
et_COMBO_SELECT | Selection has not changed | Selection has changed
et_MATRIX_LINK_PRESSED | before you release the mouse button/Button is pressed | after you release
et_MATRIX_LOAD | matrix is empty | matrix is loaded
et_MENU_CLICK | Button is pressed/before release on menu item (without submenus) | after release
et_CHOOSE_FROM_LIST | before the Choose From List form is displayed | displayed
any other questions ?
greetings to montreal
David -
I recieved a message from e-mail told me that the nokia can Detect Radar on the road
Nokia Speed Trap Detector
The settings for radar speed traps detector.
Your Nokia cell phone can be programmed to pick
up radar speed traps, when programmed your cell
phone picks up the radar and alerts you on the
message alert tone. ( Doesn't work with Nokia
7110! )
1. Enter your menu
2. Select settings
3. Select security settings
4. Select closed user group
5. Select on
6. Enter 00000
7. Press ok
8. Clear back to normal, within a few seconds
your phone will display a radar sign with five
zero's next to it. It is now activated.
Unfortunately only Nokia phones have this
function. Cell info display needs to be de-
activated. Settings -> Phone Settings -> Cell
Info display
Each time you turn off your phone, or even each
time you loose contact with your carrier, you'll
have to activate it again... It is done by steps
1 through 5, but the number (00000) will be
already on the field as default.
Is that True or False ?It is false.closed user group is an operator based service by which your phone can be made to make phone calls only to those numbers in that group id.it is service provides dependant.contact your operator.
-
Last parameter in the raise_application_error (true or false)
Hi everyone,
I have a question reagrding the last parameter in the raise_application_error clause.
The last parameter says
true: purge error stack
false: do not purge error stack.
I raised an exception and captured it with both parameters.
In the case of false(do not purge previous errors) I could see the exect error no and msg (like No data found).
But in the case of true (purge previous errors) i got an exception, but not the exact error msg.
Is this the difference.
In the case of true, it should purge previous errors, why is it purging the most recent error also.
Is there anything more to true and false. Please highlight.
And is there a way i can see the error stack.
I am so keen to see that.
It always says error is placed on the stack of previous errors.
I want to see the previous errors.
Can I.
Any ideas.
meenakshiSee:
http://www.oracle.com/technetwork/issue-archive/2005/05-mar/o25plsql-093886.html
DBMS_UTILITY.FORMAT_ERROR_BACKTRACE -
All,
In my Form_Load module, I use For Loop to get data from Microsoft Access database to the texbox and that works fine. The problem I have is that there is one column with True/False condition in the access database and I would like to know how to check
if it is set to True or False.
In the For Loop I use something like this for the textbox:
Textbox1.text = row.cells("columnname").value.tostring()
How do I check the column with the True/False condition
VS 2008
OS: XP
Thanks,
LA_Bob
Hello,
Thank you for your post.
I am afraid that the issue is out of support range of VS General Question forum which mainly discusses the usage issue of Visual Studio IDE such as
WPF & SL designer, Visual Studio Guidance Automation Toolkit, Developer Documentation and Help System
and Visual Studio Editor.
I am moving your question to the moderator forum ("Where is the forum for..?"). The owner of the forum will direct you to a right forum.
If you are doing your code using visual basic, Visual Basic forum within Visual Studio Language Forums:
http://social.msdn.microsoft.com/Forums/vstudio/en-US/home?category=vslanguages may help you.
Best regards,
We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
Click
HERE to participate the survey. -
Display Yes / No instead of True or false for radio buttons in SSRS 2008R2
Hi All,
I have one report with two radio buttons as parameters. In the report display I see True / false beside the radio buttons. Is there a way where I can display it as
YES instead of True and NO for False beside radio buttons?
Thanks,
RH
sqlHi sql9,
According to your description, you want to show "Yes" and "No" in Boolean parameter instead of "True" and "False". Right?
In Reporting Services, it doesn't has any property for the text of radio button in a Boolean parameter. So we can't modify the "True" and "False" into "Yes" and "No". For your requirement, a workaround is changing the type into drop down
list and put the "Yes" and "No" into values.
Reference:
SSRS boolean
parameter Yes and NO instead of True and False in prompt area
If you have any question, please feel free to ask.
Best Regards,
Simon Hou -
TRUE or FALSE if cell contains number value
I'm looking for the equivalent of the NUMBERVALUE function in Excel.
My equation in excel is:
=IF(AND(NUMBERVALUE($I8),NOT(NUMBERVALUE($C8)),NOT(NUMBERVALUE($D8)),NOT(NUMBERV ALUE($E8)),NOT(NUMBERVALUE($F8)),NOT(NUMBERVALUE($G8))),"ERROR","")
Reworking it to use ISBLANK, or a combination of EVEN and ODD doesn't work because it interprets blank cells as even (blank = 0) and spaces as not being blank (makes sense as it does have a length the the string instead of it just being length=0).
So I want to find a function that will tell me whether or not there is actual numerical data (integer between 0-1000) in a cell.Tan-Tan wrote:
I'm now using checkboxes in a True or False 10-item test. I once used buttons, but I gave up and went to checkboxes. I managed to display them using this:I'm confused. So does your code use JRadioButtons (like your code says), or JCheckBoxes (like this sentence says)?
I intentionally just have 2 groups of radio button displayed to test if I could tally the right answer. No luck.How did you attempt to tally the right answer? How do you have the right answers stored? How were you getting the status of each JRadioButton?
So how do I tally the right answer upon clicking 'submit'. I know you have to have a new frame for that, but it's about tallying. Like the right answer for number 1 is false, for number 2 is true. If you click Submit, I should be able to show "You got 1 correct answer".Worry about how you display the tally later. For now just use a System.out.println. I'd use a for loop to get the status of each JRadioButton or JCheckBox, and check that against an array of correct answers. -
True or False - re $99 Triple Play
Simple question, but I have gotten conflicting answers from VZ reps: For the current "triple play" promotion that includes "$150 Cash Back" (and is being aggresively promoted in my neighborhood, where virtually everyone already has Verizon phone service only), is it true or false that a current Verizon phone-only customer (not Fios, just copper POTS) is ineligible for the full $150 but will get instead a "pro-rated" $100 cash back?
I cannot find this referenced in *any* of the promotional materials, even in the fine print. Is it true, and if so, why is it not documented anywhere?
Thanks,
JerryThis is what I see for the current offer and is in the fine print at the bottom. If you are a copper subscriber and enroll for all three
services you must commit to the terms of the contract.
This it what it shows in my area. It may depend on your area. If you do not have FIOS or never had it it should apply to you. Perhaps one of the good Verizon people here will confirm this.
http://www22.verizon.com/residential/bundles/verizonbundles/
SPECIAL OFFER:Order online and get $125 Back for Double Play and $175 Back for Triple Play!
Plus, order online and take $5 off the monthly rate for the first year. HURRY! Offer ends soon.
** $125 and $175 provided via prepaid bank card. Card can be used where prepaid bank cards are accepted. To obtain cash from your card, visit a participating bank and present your card and ID. Must be enrolled in service for 31 days to receive card which will be sent within 60 days of in-service date. Must reimburse total value of card if service is canceled within 6 months. Prepaid bank card delivery may be delayed or withheld in the event of suspected fraud. Valid 2/22/09 through 4/18/09. Must install by 6/18/09.
Sorry but FIOS bundle does show this.
SPECIAL OFFER:ACT NOW AND GET $150 Back. Plus, order online and take $5 off the monthly rate for the first year.
HURRY! Offer ends soon.
* $150 provided via prepaid bank card. Card can be used where prepaid bank cards are accepted. To obtain cash from your card, visit a participating bank and present your card and ID. Must be enrolled in service for 31 days to receive card which will be sent within 60 days of in-service date. $179 early termination fee applies. Prepaid bank card delivery may be delayed or withheld in the event of suspected fraud. Price Guarantee applies to base monthly rate only and is void if changes are made to the service plan. Valid 2/22/09 through 4/18/09. Must install by 6/18/09.
Message Edited by prisaz on 04-10-2009 08:09 AM
Message Edited by prisaz on 04-10-2009 08:09 AM
Maybe you are looking for
-
INSERT Script stored as "SQL Statement Script" not firing on Oracle Alert
We are using Alert Manager to run Alerts based on absence information in EBS R12.1.3 HR tables. Application: Human Resources Period/Event: Periodic Frequency: Every Day The Alert has 2 actions. One is to email a supervisor based on the Alert SQL find
-
Same PIR updation for multiple vendors
Hi, How to update the PIR for multiple vendors at a time whenever there is change in price. Thanks, Kiran Bodla
-
Will a something show up on my screen if I have water damage?
My phone was face down in the snow, and it happened to be dead. It had been in the snow for about 40 min before I found it. Right now its charging, because it was dead and it is taking longer that usual. How long does it usually take for the phone to
-
IPad Mini (first gen) won't update to 8.1?
Hi, I have an iPad mini (first gen 16gb with 10gb free space), and it won't update to 8.1. I've tried doing it through iTunes connected to my Windows 7 laptop and I've tried to do it over wifi and cellular -- it will download, but when it "prepares t
-
Ampassword returns NullPointerException
I got error running /opt/SUNWam/bin/ampassword -e The exception isException in thread "main" java.lang.NullPointerException at com.iplanet.services.util.Base64.encode(Base64.java:55) at com.iplanet.services.util.Crypt.encode(Crypt.jav