help with my true/false statements
[CODE] onClipEvent (load) {}Speed = 3;
gravity =-1;
Base = true;
}
{onClipEvent (enterFrame)}
If (Key.isDown (Key.UP)) {}
This ._y = speed;
Base = false;
}
If (this.hitTest (_root ["base"])) {}
Base = true;
}
If (Key.isDown (Key.UP)) {}
This ._y = speed;
Base = false;
}
If (base = true) {}
This ._y = gravity;
}
} [/ CODE]
try to make a game, where you start on a basic "base" and then you fly your ship with the up arrow key, and when you let go of the key, you get shot down my gravity... but the only way gravity works if if I put
[CODE] if(base = true) {}
This ._y = gravity;
} [/ CODE]
but the seriousness and then always works waiting for me when I got up, down.
If I set it to false, it never works
In the use of comparisons == no not one.
However, don't forget that real gravity always works, even when you go upwards or downwards!
Tags: Adobe Animate
Similar Questions
-
New on Adobe need help with an if then statement
Hi, I really like what ADOBE Pro 9 can do with forms and neat and everything is included.
I'm having a problem trying to understand an if then statement for one of my forms and how to make it executable.
Here is what I have
I. Cigna Medical
(10) single $ 44.00
(11) Employee & Child (ren) $ 82.00
(12) Employee & Spouse $ 99.00
(13) Family $125.00
(14) Decline Coverage $0.00 Choice: _ Amount: $_
An employee will be choice an optiopn 10-14 and but that number of choices. After I am about to fill with this number.
For instnace, if an employee takes option 11, choice: 11 and amount: $ 44.00
I put the options in a menu drop-down. The drop down menu is titled CignaMedical and Amount_1 title for amount: $_ and I made a text box. I put this code: if (this.getField("CignaMedical").value == '10') {}
Amount_1 = 44.00} tab calculation of properties for the Amount_1 of text box on the custom calculation script tab.Any help is greatly appreciate
Yes, you can use an if-else if construction. Something like that (I got the first part because we reuse it):
CignaMedical = this.getField("CignaMedical").value;
If (CignaMedical == '10') {}
44.00 = Event.Value;
} Else if (CignaMedical == "11") {}
Event.Value = 82.00;
} Else if (CignaMedical == '12') {}
99.00 = Event.Value;
}
etc.
-
Need help with debugging case manipulation statement &; date
Hi people,
Can you get it someone please let me know what I am doing wrong?
Select to_date (23-seven.-10', 'DD-MON-yy') expiry_date,.
TO_DATE (23-sep-09', 'DD-MON-yy') order_date,.
TO_DATE (23-seven.-10', 'DD-MON-yy')-to_date (23-sep-09', 'DD-MON-yy') diff,.
(case diff
When < 365 then 'low '.
When > 365 then 'high '.
other 'similar '.
end)
Double;
ORA-00936: lack of expression
00936 00000 - "missing expression.
* Cause:
* Action:
Error on line: column 5:18
Thanks in advance
rogers42Here you go
WITH temp_tab AS (SELECT to_date('23-sep-09', 'DD-MON-yy') order_date, to_date('23-sep-10', 'DD-MON-yy') -to_date('23-sep-09', 'DD-MON-yy') diff, to_date('23-sep-10', 'DD-MON-yy') expiry_date FROM dual) SELECT( CASE WHEN diff < 365 THEN 'low' WHEN diff > 365 THEN 'high' ELSE 'same' END) FROM temp_tab;
-
Scan chain with TRUE FALSE and the comma as separator
Produced cabling 'REAL FAKE' entry as '%s %s' format as false to scan string constants
the two binary values you want, corresponding to the input string.
Whereas "TRUE, FALSE" as entry and "%s, %s" format leads to an error.
I lost a lot of time to understand that the error has its origin in the incompatible separator and not in the way I use this function.
Wouldn't be possible (ask nicely) to place a note in the online help for this function, you need to use only spaces or tabs as separators
with chains binary when you use this function?It was not clear to me why I should not use the comma as a separator.
Now, my solution is to replace all the commas with spaces before you wire the input string to scan from a string.
Is there another workaround solution or someone can provide a deeper understanding of why comma does not work?
My guess is that he was mistaken for a decimal separator and implies not being part of a binary value.
Use ' % [^,], %s ' as your specifier. ' % [^,] "will result in a string up to the next comma.
-
I need assistance with radio - quiz true/false buttons
I have a short quiz at the end of a lesson. The choices are radio buttons. Some are multiple choice, some are true/false, and they appear randomly. I have a visible set choiceNone = flase button and selected = true, so that the other options are not selected. It works very well for the choice quaestions multiple, but on the second and third true/false, it shows the previous selection. Someone else built this quiz for me, as I am a novice. When I copy in its own file it works fine, but not in this one and not as an mc. HELP!
I can't open your file because it is a CS4 file, but I guess that the problem is similar to another file that someone posted here some time. If your issues radio buttons are sitting in the adjacent keyframes, each then inherits some properties from the keyframe before. One way around this problem is to have empty key frames between keyframes of radio button... But if you need to keep the image by image sequence, then you can try alternating layers so that you can find yourself with spaces between everything keeping the image by image...
-
need help with the Update statement
Hello
I received a question in a course and I tried my best to respond, and now my brain is giving. I would really appreciate help with the update statement. I don't mind if you do not validate a solution, a little nudge in the right direction would be really useful. I'll post that I got.
THE QUESTION
/ * For these agents disabled on more than seven missions, change their date of deactivation of the first date of deactivation of all the agents that have been activated in the same year as the agent that you update currently.
*/
I have it divided into parts, here is my select statement to agents disabled on more than 7 missions, which produces the deactivation_dates in the agents table that I want to update...
.. .and the code for the first date of deactivation for each year of activation agentSELECT s.deactivation_date FROM ( SELECT a.deactivation_date, count(m.mission_id) as nomissions FROM agents a INNER JOIN missions_agents m on a.agent_id=m.agent_id GROUP BY a.deactivation_date ) s WHERE s.nomissions>7 AND s.deactivation_date IS NOT NULL
..... I am not real to marry these two statements together in the Update statement. I can't extract each date of deactivation produced in the first select statement and their match against the first date of deactivation in the year they have been activated for the second select statement.select a2.deactivation_date from agents a2 where a2.deactivation_date= ( select min(a.deactivation_date) from agents a where to_number(to_char(a.activation_date,'YYYY'))=to_number(to_char(a2.activation_date,'YYYY')) )
Any help greatly appreciated... :))I began to wonder how things would :)
user8695469 wrote:
First of all why he chooses the date the earliest of all agentsUPDATE AGENTS_COPY AC /* (1) */ SET DEACTIVATION_DATE = ( SELECT MIN(AGS.DEACTIVATION_DATE) FROM AGENTS_COPY AGS , AGENTS_COPY AC /* (2) */ WHERE TRUNC(AGS.ACTIVATION_DATE,'YEAR') = TRUNC(AC.ACTIVATION_DATE,'YEAR') /* (3) */ )
He recovers as soon as the subquery has not been correctly set in the SET clause. It seems you are trying to update a correlated, but we are still having a conceptual shift. I have added a few comments to your code above and below will explain.
(1): when you do a correlated update it is useful to the table alias that you did right here.
(2): this table statement is not necessary and is the reason why the FIRST deactivation date is selected. The alias that you use (3) refers to THIS table, not the one defined in the update statement. Remove the line indicated by (2) in the FROM clause and a correlated update will happen.
and secondly why is it to update each row, when I thought that I'm just the lines where the agents are disabled and missions > 7? Pointers on where I'm wrong would be very appreciated. (SQL = stupid query language!) :)
user8695469 wrote: then why is it to update each row, when I thought that I'm just the lines where the agents are disabled and missions > 7? Pointers on where I'm wrong would be very appreciated. (SQL = stupid query language!) :)
WHERE EXISTS ( SELECT a.agent_id, count(m.mission_id) FROM agents a /* INNER JOIN AC ON AC.AGENT_ID = A.AGENT_ID */ INNER JOIN missions_agents m ON a.agent_id=m.agent_id GROUP BY a.agent_id, a.deactivation_date HAVING count(m.mission_id)>7 AND a.deactivation_date IS NOT NULL )
Once again this problem is similar to the question above that a correlation update doesn't work. Test existence of lines in an EXISTS subquery. Since your subquery is not related to the table that you are trying to update, it will be always return a line and, therefore, it returns true for EACH LINE in the AGENTS table. To limit the game to only agents > 7 missions results, you need to add a join condition that references the table in your update statement. I added one above (with comments) as a sample.
I recommend you look over all material that you have associated with correlated subqueries, including documents that I posted above. This seems to be what you're having the problem more with. If you need me to explain the concept of correlated queries any better please let me know.
Thank you!
-
How to use a signal of true/false dynamics with a business structure?
Hey everybody-
Is it possible to enter a case structure dynamic data of true/false? We try to generate a waveform and want our structure case to run when the wave exceeds a certain threshold value and freeze execution when it drops below the threshold (If false). However, we want the case structure to run continuous - i.e. If the structure of the deal for the 'real' case running while the waveform is above the threshold, we next want to deal for 'false' structure to run when the wave goes below the threshold, and so on until we stop our program.
Any suggestions would be much appreciated!
Rachel
Remove the loop around your DAQ Assistant vi express (I hate express screws). There is already a big loop around all of the code in the lower part. As has been pointed out by Ravens Fan, don't assign continuous acquisition. Set a finite number of acquisitions. Then the rest of the code can run and the loop can travel again.
Get rid of the stop sign at the top. When the code is finished, Labview will stop on its own.
You have two stop buttons. Only one is necessary. Look at my example posted a few messages back. A STOP with local variables.
Shrink your block diagram. It takes more than one monitor space. It is difficult to read when you have to scroll all over the place.
-
Help with the insert statement
Hello
I was wondering if someone could help write me a sql statement.
Here is my table:
Here are the instructions for correct insertion. This time, I posted 2 examples with 2 numbers different otherwise.CREATE TABLE "TEMP_INVOICE" ("INVOICE" VARCHAR2(100 BYTE), "DATE_OF_DOCUMENT" DATE, "DATE_OF_PAY_DAY" DATE, "D" NUMBER, "K" NUMBER );
I want to do is make an insert allows you to table another call is MADE:insert into temp_invoice (invoice,DATE_OF_DOCUMENT,DATE_OF_PAY_DAY,d,k) values (1000,to_date('01.02.2012','dd.mm.yyyy'),to_date('01.03.2012','dd.mm.yyyy'),5000,0); insert into temp_invoice (invoice,DATE_OF_DOCUMENT,DATE_OF_PAY_DAY,d,k) values (1000,to_date('01.04.2012','dd.mm.yyyy'),'','',1000); insert into temp_invoice (invoice,DATE_OF_DOCUMENT,DATE_OF_PAY_DAY,d,k) values (1000,to_date('01.05.2012','dd.mm.yyyy'),'','',3000); insert into temp_invoice (invoice,DATE_OF_DOCUMENT,DATE_OF_PAY_DAY,d,k) values (1000,to_date('01.06.2012','dd.mm.yyyy'),'','',1000); insert into temp_invoice (invoice,DATE_OF_DOCUMENT,DATE_OF_PAY_DAY,d,k) values (2000,to_date('01.07.2012','dd.mm.yyyy'),to_date('01.09.2012','dd.mm.yyyy'),8000,0); insert into temp_invoice (invoice,DATE_OF_DOCUMENT,DATE_OF_PAY_DAY,d,k) values (2000,to_date('01.10.2012','dd.mm.yyyy'),'','',5000); insert into temp_invoice (invoice,DATE_OF_DOCUMENT,DATE_OF_PAY_DAY,d,k) values (2000,to_date('01.11.2012','dd.mm.yyyy'),'','',2000); insert into temp_invoice (invoice,DATE_OF_DOCUMENT,DATE_OF_PAY_DAY,d,k) values (2000,to_date('01.12.2012','dd.mm.yyyy'),'','',1000);
Statements in the INVOICE table should be like this:CREATE TABLE "INVOICE" ("INVOICE" VARCHAR2(100 BYTE), "DATE_OF_DOCUMENT" DATE, "DATE_OF_PAY_DAY" DATE, "DATE_OF_PAYMENT_REC" DATE, "VALUE" NUMBER, "VALUE_DEDUCT" NUMBER, "DATE_FROM" DATE, "DATE_TO" DATE );
........ The Bill... date_of_document... date_of_pay_day... date_of_payment_rec... value... value_deduct... Date_from... Date_to
1...... 1000...............1.1.2012.................1.3.2012................NULL............................ 5000... NULL... 1.3.2012...1.4.2012
2...... 1000...............1.4.2012.................NULL..................... 1.4.2012...1000... 4000... 2.4.2012... 1.5.2012
3...... 1000...............1.5.2012.................NULL..................... 1.5.2012...3000... 1000... 2.5.2012... 1.6.2012
4...... 1000...............1.6.2012.................NULL..................... 1.6.2012...1000
Can someone help me with the sql statement that would insert data from table to table Bill temp_invoice as in the example?
Thank you!
PS
I would try to explain.
(1) the first statement that is to be inserted is original imply that at which is different DATE_OF_PAY_DAY to NULL.
To this inserted negative of the original imply, we must add date_from that is exatly the same date_of_pay_day and date_to which is exactly the same as the date of the first payment. Payment which came first!
(2) we have now in the second insert statement. It will be the first payment of lease with date_of_document and date_pf_payment_rec, which is the same as date_fo_document. Value field will be populated with the amount of payment received and value_deduct field will be the value of the original imply - value of the first payment. Date is date_of_document + 1 and date_to is the date of the next payment.
(3) Insert us the next installment. Date_od_payment_rec is the same as date_of_document... value is the amount of the second payment and value_deduct's previous value_deduct which was of 4000 - value of this second payment. date_from date_of_payment_rec + 1 and date_to is the date of the next payment
So we continue this same pattern until we reached the final payment when we finish insert with the statement:
Date of the document (date of the last payment received) and even for date_of_payment_rec and field value with the amount of the payment receieved. The rest (value_deduct, date_from, date_to) is null.
I really hope you understand what I'm trying to do here.
If you have any other questions please.
Published by: user13071990 on November 22, 2012 04:16
Published by: user13071990 on November 22, 2012 04:16Hello
user13071990 wrote:
... Here are the instructions for correct insertion. This time, I posted 2 examples with 2 numbers different otherwise.Ok!
Be sure to post the results you want new data.You probably need to add "PARTITION BY the Bill" to all analytical clauses in my solution:
INSERT INTO invoice ( invoice, date_of_document, date_of_pay_day, date_of_payment_rec , value, value_deduct, date_from, date_to ) SELECT invoice , date_of_document , date_of_pay_day , CASE WHEN k > 0 THEN date_of_document END AS date_of_payment_rec , NVL (d, k) AS value , NVL2 ( date_of_pay_day , NULL , SUM (d) OVER ( PARTITION BY invoice ORDER BY date_of_document ) - SUM (k) OVER ( PARTITION BY invoice ORDER BY date_of_document ) ) AS value_deduct , NVL ( date_of_pay_day , date_of_document + 1 ) AS date_from , LEAD (date_of_document) OVER ( PARTITION BY invoice ORDER BY date_of_document ) AS date_to FROM temp_invoice ;
Because I'm not an English speaker nativ, that I just posted what it should look like after the insert is successful.
OK, so you can't explain as you want, but you still need to explain.
... @Frank Kulash: you are very close, but still not quite what I'm looking for.
Point out where my solution is the production of incorrect results, and explain (as you can) how to get good results in these places.
-
Need help with display of the container / States
Greetings!
I try to use States to change the content of a canvas that is the second of two within a browser tab. Buttons trigger functions to change the State and replace the selectedIndex property of the browser the second tab.
Functions work very well if you first switch to the second tab. If you click the buttons before watching the second tab, it explodes. Here is a link to the app: http://test.arsandbox.com/player.cfm any idea would be appreciated!
Code:
<? XML version = "1.0" encoding = "utf-8"? >
"" < mx:Application xmlns:mx = ' http://www.adobe.com/2006/mxml ' creationComplete = "initApp (); ">
< mx:Script > <! [CDATA]
private function initApp (): void {}
}
private function displayDirectory (): void {}
switchTab();
currentState = "stateDirectory";
}
private void displayWriter(selectedWriter:String):void {}
currentState = "stateWriter";
switchTab();
}
private void displaySong(selectedSong:String):void {}
currentState = "stateSong";
switchTab();
}
private function switchTab (): void {}
ContentTabs.selectedIndex = 1;
}
[]] > < / mx:Script >
< mx: states >
< name mx: State = "stateDirectory" >
< mx:SetProperty target = "{directoryBox}" name = 'visible' value = 'true' / >
< mx:SetProperty target = "{writerBox}" name = 'visible' value = "false" / >
< mx:SetProperty target = "{songBox}" name = 'visible' value = "false" / >
< / mx: State >
< name mx: State = "stateWriter" >
< mx:SetProperty target = "{directoryBox}" name = 'visible' value = "false" / >
< mx:SetProperty target = "{writerBox}" name = 'visible' value = 'true' / >
< mx:SetProperty target = "{songBox}" name = 'visible' value = "false" / >
< / mx: State >
< name mx: State = "stateSong" >
< mx:SetProperty target = "{directoryBox}" name = 'visible' value = "false" / >
< mx:SetProperty target = "{writerBox}" name = 'visible' value = "false" / >
< mx:SetProperty target = "{songBox}" name = 'visible' value = 'true' / >
< / mx: State >
< / mx: states >
< mx:Panel id = "Main" width = "100%" height = "100%" layout = "horizontal" title = "Example" horizontalAlign = "center" verticalAlign = "middle" backgroundColor = "0xB3C0C6" >
< mx:DividedBox direction = "horizontal" width = "100%" height = "100%" >
< mx:VBox width = "250" height = "100%" backgroundColor = "#ffffff" >
< mx:Button label = "Directory" click = "displayDirectory (); "/ >
< mx:Button label = "Writer" click = "displayWriter('1'); "/ >
< mx:Button label = "Song" click = "displaySong('1'); "/ >
< / mx:VBox >
< mx:TabNavigator id = "ContentTabs" width = "100%" height = "100%" visible = "true" >
< mx:Canvas label = "Homepage" width = "100%" height = "100 percent" horizontalScrollPolicy = "off" >
< / mx:Canvas >
< mx:Canvas label = "Writers" width = "100%" height = "100%" horizontalScrollPolicy = "off" >
< mx:VBox id = "directoryBox" width = "100%" height = "100%" visible = "true" top = "0" left = "0" >
< mx:Label text = "Directory box" / >
< / mx:VBox >
< mx:VBox id = "writerBox" width = "100%" height = "100%" visible = "false" top = "0" left = "0" >
< mx:Label text = "Writer Box" / >
< / mx:VBox >
< mx:VBox id = "songBox" width = "100%" height = "100%" visible = "false" top = "0" left = "0" >
< mx:Label text = 'Song box' / >
< / mx:VBox >
< / mx:Canvas >
< / mx:TabNavigator >
< / mx:DividedBox >
< / mx:Panel >
< / mx:Application >
The items presented in the second tab are not really created or instantiated until they are first read. It is a performance setting built in Flex. You can however get around the setting and force all the contents of the tab to render immediately when the tab navigator is created. To do this, you set the creationPolicy on the TabNavigator and set the value to 'all '. Beware, this is going to hurt performance if the browser tab has a lot of big kids.
-
Help with making SQL query references to column aliases in the Case statement
I need help with a sql query that I'm trying. I can go about it the wrong way, but I would be grateful if I could get any suggestions on possible solutions. This is my query:
SELECT DISTINCT spriden_pidm, spriden_id id, spriden_last_name | ',' | spriden_first_name name,
CASE
WHEN rcresar_comm_code_01 IN ('268 ', '269', ' 270') THEN rcresar_comm_code_01
WHEN rcresar_comm_code_02 IN ('268 ', '269', ' 270') THEN rcresar_comm_code_02
WHEN rcresar_comm_code_03 IN ('268 ', '269', ' 270') THEN rcresar_comm_code_03
WHEN rcresar_comm_code_04 IN ('268 ', '269', ' 270') THEN rcresar_comm_code_04
WHEN rcresar_comm_code_05 IN ('268 ', '269', ' 270') THEN rcresar_comm_code_05
WHEN rcresar_comm_code_06 IN ('268 ', '269', ' 270') THEN rcresar_comm_code_06
WHEN rcresar_comm_code_07 IN ('268 ', '269', ' 270') THEN rcresar_comm_code_07
WHEN rcresar_comm_code_08 IN ('268 ', '269', ' 270') THEN rcresar_comm_code_08
WHEN rcresar_comm_code_09 IN ('268 ', '269', ' 270') THEN rcresar_comm_code_09
WHEN rcresar_comm_code_10 IN ('268 ', '269', ' 270') THEN rcresar_comm_code_10
END acg_elig_comm_code
CASE
WHEN acg_elig_comm_code = ' 268' THEN 'rigorous HS course. "
WHEN acg_elig_comm_code = '269' THEN ' 2 or several AP or IB"
WHEN acg_elig_comm_code = '270' THEN 'NOC as possible ".
END comm_code_description
OF spriden, rcresar, rcrapp1
WHERE (rcresar_comm_code_01 IN ('268 ', '269', ' 270')
OR rcresar_comm_code_02 ('268 ', '269', ' 270')
OR rcresar_comm_code_03 ('268 ', '269', ' 270')
OR rcresar_comm_code_04 ('268 ', '269', ' 270')
OR rcresar_comm_code_05 ('268 ', '269', ' 270')
OR rcresar_comm_code_06 ('268 ', '269', ' 270')
OR rcresar_comm_code_07 ('268 ', '269', ' 270')
OR rcresar_comm_code_08 ('268 ', '269', ' 270')
OR rcresar_comm_code_09 ('268 ', '269', ' 270')
OR rcresar_comm_code_10 ('268 ', '269', ' 270'))
Rcresar_aidy_code = & aidy_code
AND rcrapp1_aidy_code = rcresar_aidy_code
AND rcrapp1_curr_rec_ind = 'Y '.
AND rcrapp1_seq_no = rcresar_seq_no
AND spriden_pidm = rcresar_pidm
AND rcrapp1_pidm = rcresar_pidm
AND spriden_change_ind IS NULL
ORDER BY name
The second case statement is where I don't know exactly what it takes to get what I want.
Output should be like:
spriden_pidm name ID acg_elig_comm_code comm_code_description
«0000000000', ' 1111111111 ","John Doe","268", «rigorous HS race"»
If I take the second case statement it works great except that I do not have my comm_code description column. My question is how can I use my first statement value box to determine this column? I think that I need a case statement as I have, but I don't know how to reference the value of acg_elig_comm_code. Any help would be greatly appreciated. Thank you.
Published by: blackhole82 on January 20, 2009 09:20Hello
You cannot use the alias column in the query, even where it is set (except in the ORDER BY clause).
You can set the alias in a subquery and then use it in a great query, like this:WITH sub_q AS ( SELECT DISTINCT spriden_pidm,spriden_id id, spriden_last_name||', '||spriden_first_name name, CASE WHEN rcresar_comm_code_01 IN ('268','269','270') THEN rcresar_comm_code_01 WHEN rcresar_comm_code_02 IN ('268','269','270') THEN rcresar_comm_code_02 WHEN rcresar_comm_code_03 IN ('268','269','270') THEN rcresar_comm_code_03 WHEN rcresar_comm_code_04 IN ('268','269','270') THEN rcresar_comm_code_04 WHEN rcresar_comm_code_05 IN ('268','269','270') THEN rcresar_comm_code_05 WHEN rcresar_comm_code_06 IN ('268','269','270') THEN rcresar_comm_code_06 WHEN rcresar_comm_code_07 IN ('268','269','270') THEN rcresar_comm_code_07 WHEN rcresar_comm_code_08 IN ('268','269','270') THEN rcresar_comm_code_08 WHEN rcresar_comm_code_09 IN ('268','269','270') THEN rcresar_comm_code_09 WHEN rcresar_comm_code_10 IN ('268','269','270') THEN rcresar_comm_code_10 END acg_elig_comm_code -- Originally posted with , here (error) FROM spriden, rcresar, rcrapp1 WHERE (rcresar_comm_code_01 IN ('268','269','270') OR rcresar_comm_code_02 IN ('268','269','270') OR rcresar_comm_code_03 IN ('268','269','270') OR rcresar_comm_code_04 IN ('268','269','270') OR rcresar_comm_code_05 IN ('268','269','270') OR rcresar_comm_code_06 IN ('268','269','270') OR rcresar_comm_code_07 IN ('268','269','270') OR rcresar_comm_code_08 IN ('268','269','270') OR rcresar_comm_code_09 IN ('268','269','270') OR rcresar_comm_code_10 IN ('268','269','270')) AND rcresar_aidy_code = &aidy_code AND rcrapp1_aidy_code = rcresar_aidy_code AND rcrapp1_curr_rec_ind = 'Y' AND rcrapp1_seq_no = rcresar_seq_no AND spriden_pidm = rcresar_pidm AND rcrapp1_pidm = rcresar_pidm AND spriden_change_ind IS NULL ) SELECT sub_q.*, CASE WHEN acg_elig_comm_code = '268' THEN 'Rigorous HS course' WHEN acg_elig_comm_code = '269' THEN '2 or more AP or IB' WHEN acg_elig_comm_code = '270' THEN 'ACG possible' END comm_code_description FROM sub_q ORDER BY name
Furthermore, you might think to rearrange your table, so that you do not have 10 columns (rcresar_comm_code_01, rcresar_comm_code_02,...) that essentially do the same thing. The usual way to handle this kind of one-to-many relationship is to have all rcresar_comm_codes in a separate table, one per line, with a pointer to the table where you have them now.
Published by: Frank Kulash, January 20, 2009 11:35
Syntax error has been corrected -
Execution of Code with the participation of true/false
OK, so I have to be over thinking on how to do it. I'm trying to run some of my code when I get a value of True. If set to False I don't want it to do anything. Ive tried using a true/false case structure, but the obligation to hang the false case something is screwing me. Also tried a while loop, but it simply snaps and never reads the false after his already on.
Murielle says:
Very well and I'll check out the tutorials. I just got stupid all this code because I wanted to take the last element of the array and write them on the worksheet without adding other values, BUT at the same time allow him to add to the file because I'll repeat this code on.
You don't have a table until make you a right there on a single element. There is no 'another value '. There is an element in the table, which is the first and the last element and exactly the same as the value that you used to build the table. Once you do the tutorials, you'll laugh about your code. It is absolutely useless.
-
Help with the situation where a simple group by statement does not work
There is a table with two columns, which is memo (varchar2), another is recording_date (date). This table is used to recode an every day event. Right now, I need to know how many events registered each day during the time period (between any of the given day and any given end day). the result by selecting should have two columns the numeration of the event, the recording_date. chances are one day it is not just any event, in this situation there not all inserted rows so far here, but the result by selecting must contain also that day with the column count is set to zero.
Can anyone help with this? Thank you in advance!between 2010-4-5 and 2010-4-8 Count recording_date 2 2010-4-5 0 2010-4-6 1 2010-4-7 9 2010-4-8
Kind regards!Hello
See if this helps:I create a dummy cursor that contains one row for each day of the last year - I then outer join the result of the query against the log_table.
Here are my RAW file
Select * from log_data07/05/2010 1, TEST
TEST 2 05/05/2010
02/05/2010 3, TEST
30/04/2010 4, TEST
TEST OF 5 30/04/2010
30/04/2010 6, TEST
7-30/04/2010 TEST
8 TEST 06/05/2010
9 TEST 06/05/2010
10 06/05/2010 TEST
11 06/05/2010 TEST
06/05/2010 12, TEST
13 TEST 06/05/2010
2010-05-06 14, TEST
15 06/05/2010 TEST
16 06/05/2010 TEST
2010-05-06 17, TESTAnd here's the query
with date_ranger as (select trunc (sysdate-) level datecol
from dual connect by level<= 365="">=>
RAW_DATA as)
Select recording_date, count (*) numrows in log_data
Group of recording_date)
Select datecol, date_ranger numrows, raw_data
where = date_ranger.datecol raw_data.recording_date (+)
and datecol sysdate-10-sysdate
order by 1And the result
1 28/04/2010
2 29/04/2010
30/04/2010 3, 4
4 01/05/2010
02/05/2010 5, 1
6 03/05/2010
7 04/05/2010
8 05/05/2010 1
9 06/05/10/2010What you want?
See you soon,.
Harry -
Help with authentication error [R0107005]
OS X 10.10.1 and Thunderbird 31.4.0.
I have two accounts with my ISP (Time Warner). Both use the same password. Suddenly, I am unable to send one of these accounts (works well for months). There has been no change before this problem. After that the problem began, I've updated Thunderbird to 31.4.0.
When I try to send from the affected account, I get this error message:
An error occurred while sending mail. The mail server responded: authentication is needed before sending it [R0107005]. Please make sure that your e-mail address is correct in your e-mail preferences and try again.
I am able to send from this account by using the access webmail, but not Thunderbird.
Troubleshooting information follows. I appreciate any assistance.
Application Basics
Name: Thunderbird Version: 31.4.0 User Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.10; rv:31.0) Gecko/20100101 Thunderbird/31.4.0 Profile Folder: Show in Finder Application Build ID: 20150109111741 Enabled Plugins: about:plugins Build Configuration: about:buildconfig Memory Use: about:memory
Mail and News Accounts account1: INCOMING: account1, , (none) Local Folders, plain, passwordCleartext
account3: INCOMING: account3, , (pop3) mail.twc.com:110, plain, passwordCleartext OUTGOING: smtp-server.roadrunner.com:587, plain, none, true
account4: INCOMING: account4, , (pop3) mail.twc.com:110, plain, passwordCleartext OUTGOING: smtp-server.roadrunner.com:587, plain, none, true
Crash Reports
Extensions
Important Modified Preferences
Name: Value
accessibility.typeaheadfind.flashBar: 0 browser.cache.disk.capacity: 358400 browser.cache.disk.smart_size_cached_value: 358400 browser.cache.disk.smart_size.first_run: false browser.cache.disk.smart_size.use_old_max: false extensions.lastAppVersion: 31.4.0 font.internaluseonly.changed: true mail.openMessageBehavior.version: 1 mail.spotlight.firstRunDone: true mailnews.database.global.datastore.id: 677c277e-84f2-5245-9c66-47b73a933dc network.cookie.prefsMigrated: true places.database.lastMaintenance: 1422571014 places.history.expiration.transient_current_max_pages: 104858 places.history.expiration.transient_optimal_database_size: 85899344 plugin.importedState: true plugin.state.adobepdfviewernpapi: 0 plugin.state.divxbrowserplugin: 0 plugin.state.silverlight: 0
Graphics
Vendor ID: 0x8086 Device ID: 0x a26 WebGL Renderer: false GPU Accelerated Windows: 1/1 OpenGL
AzureCanvasBackend: quartz AzureSkiaAccelerated: 0 AzureFallbackCanvasBackend: none AzureContentBackend: quartz
JavaScript
Incremental GC: 1
Accessibility
Activated: 0 Prevent Accessibility: 0
Library Versions
Expected minimum version Version in use
NSPR 4.10.6 4.10.6
NSS 3.16.2.3 Basic ECC 3.16.2.3 Basic ECC
NSS Util 3.16.2.3 3.16.2.3
NSS SSL 3.16.2.3 Basic ECC 3.16.2.3 Basic ECC
NSS S/MIME 3.16.2.3 Basic ECC 3.16.2.3 Basic ECC
I have read how to have multiple identities of SMTP and followed the instructions. It works fine now. Thanks again for your help.
-
1st time scripter... needs help with conditional step 2
Never write the script in any form. JavaScript can be Cuniform as far as I know.
Really want to understand such things.
Download all guides... they make my head ache. Would like any suggestions on a good starting book. entry level stuff.
Should I go to learn Javascript, then it'll all be easier?
This is the purpose of the script that I want to write.
I have a folder folders containing main/artist name/backup / retouched / * this is the lie of the images *.
also / intact / * this is the lie of the images *.
I would like to write a script that sends Photoshop thanks to all subfolders looking for files.
Open the file.
Determine if the file is grayscale.
If this isn't the case, close the file.
If grayscale determine the longest side of the image and resize it to 300 DPI maintaining proportions making long side 10 inches.
Save the file in the folder '_8x10' file name added
Save the file in "' C: / getty /" add "_8x10" file name "
Close the file without saving changes
OTHER IMPORTANT FACTS
Emphasizing the need that the originals should not be harmed in any way.
99% of the files are .tiffs others would jpg - I can't ignore jpg files in order to remove a variable.
I worked on it for 2 days, trying to teach me, and it is not just by clicking. I can't pick it up quickly.
Here's what I wrote and tried to patch all of the other scripts on the web in the hope that I understood why I was picking up this code.
I'm short on time and would like advice on this.
Here is my code:
GrayscaleThenLandOrPortTo10Inches300dpi.jsx
Copyright 2012
Written by Brian Shupe steal shamelessly on the net
/*
Description:
This script finds the folder and all subfolders for images.
Check to see if they are grayscale
If so, he trims the long side at 10 inches at 300 dpi
*/
turn on double click of the
Macintosh Finder or Windows Explorer
#target photoshop
Make Photoshop the frontmost application
where we double clicked on the file
app.bringToFront ();
///////////////////////////
// SET-UP //
///////////////////////////
Close all open documents
so that {(app.documents.length)
app.activeDocument.close)
}
Create the dialog select parent folder
var imageFolder is Folder.selectDialog ("select a folder with images to treat");.
Set variables naming for easier coding
var doc = app.activeDocument;
set the units to inches
Save current preferences
var strtRulerUnits = app.preferences.rulerUnits;
var strtTypeUnits = app.preferences.typeUnits;
Adobe Photoshop CS4 use pixels and display without the value dialog boxes
app.preferences.rulerUnits = Units.INCHES
app.preferences.typeUnits = TypeUnits.INCHES
app.displayDialogs = DialogModes.NO
Recursively process all subfolders
If (image! = null) processFolder (imageFolder);
function processFolder (folder) {}
List of files of the var = folder.getFiles)
for (var i = 0; i < fileList.length; i ++) {}
var file = list of files [i];
}}
Check if the active document isn't in grayscale. If this is true do nothing
If (doc.mode! = DocumentMode.GRAYSCALE) {}
} else
Check if the document is higher than it is wide
If (doc.height > doc.width)
{
Perform this action if the IF statement is true. Action of sizes both height to 10 inches and 300 DPI
doAction ("Port", "Getty");
}
on the other
{
Perform this action if the IF statement is false. Action sizes two length of 10 inches and DPI to 300
doAction ("Land", "Getty");
}
Create a folder to contain a file duplicate
myFolder var = new Folder("c:/Getty/");
myFolder. Create();
saveFile = new file ("C: / Getty /' + imgName +"_"+"8 x 10")
var CurrentFolder = activeDocument.path;
var ParentFolder = decodeURI (activeDocument.path.parent);
saveFile = new file (parentFolder + ' /' + 'CONTAINER BACKUP' + ' /' + imgName + "_" + "8 x 10")
app.activeDocument.close (SaveOptions.DONOTSAVECHANGES)
I think that, right now, the problem is when it gets to the point where he seeks an image open... There are jumps to zero and it.
Anyone can see that for my clumsy attempt and course correct me?
would be happy to discuss tutoring services.
This is a full version that could help with all of the necessary steps...
#target photoshop app.bringToFront(); main(); //call the main function function main(){ var folders =[]; var topLevel = Folder.selectDialog("Please select top level folder"); if(topLevel == null) return; //if cancelled quit folders = FindAllFolders(topLevel, folders); folders.unshift(topLevel); var outputFolder = Folder("/c/Getty/"); //create output folder if it does not exist if(!outputFolder.exists) outputFolder.create(); for(var z in folders){// loop through all subfolders var fileList = folders[z].getFiles("*.tif"); //get a list of all tifs in this folder for(var a in fileList){//loop through all files in folder app.open(fileList[a]);//open file var doc = activeDocument; if(doc.mode != DocumentMode.GRAYSCALE){//if not greyscale close and get next doc. doc.close(SaveOptions.DONOTSAVECHANGES); continue; } if(doc.width > doc.height){//landscape //resize document, only one value is required otherwise it might distort the document. doc.resizeImage(new UnitValue(10,'in'), undefined, 300, ResampleMethod.BICUBIC); }else{//portrait doc.resizeImage(undefined, new UnitValue(10,'in'), 300, ResampleMethod.BICUBIC); }//end resize //get the name without the .tif extension var Name = app.activeDocument.name.replace(/\.[^\.]+$/, ''); //create the output file path and name var saveFile = File(outputFolder + "/" + Name + "_8x10.tif"); //save and close SaveTIFF(saveFile); doc.close(SaveOptions.DONOTSAVECHANGES); }//end filelist }//end folders }//end main function function FindAllFolders( srcFolderStr, destArray) { var fileFolderArray = Folder( srcFolderStr ).getFiles(); for ( var i = 0; i < fileFolderArray.length; i++ ) { var fileFoldObj = fileFolderArray[i]; if ( fileFoldObj instanceof File ) { } else { destArray.push( Folder(fileFoldObj) ); FindAllFolders( fileFoldObj.toString(), destArray ); } } return destArray; } function SaveTIFF(saveFile){ tiffSaveOptions = new TiffSaveOptions(); tiffSaveOptions.embedColorProfile = true; tiffSaveOptions.alphaChannels = true; tiffSaveOptions.layers = true; tiffSaveOptions.imageCompression = TIFFEncoding.TIFFLZW; activeDocument.saveAs(saveFile, tiffSaveOptions, true, Extension.LOWERCASE); }
-
Help with the Structures of the case
I have a problem switching between the true and false cases between the structures of the case. I'm writing a VI that generates a random number between 0 and 10 once every 0.5 seconds, and then adds the numbers until the total reaches or exceeds 100. At that time, it should start to subtract the number generated at random until it reaches 0, then switch again adding etc.
I have a problem switching to the case of 'false' once the sum exceeds 100. If anyone can help with that would be great!
To make things more simple exchange the Boolean value for an enumeration with only two values you can call "Count Up" and "Count Down".
Create a second shift register to hold the enumerated value specifying whether to "Count Up" or "Count Down". Initialize the new register shift to count up, and in the case of "Count Up" in the structure of the case, increment the value of data and test to see if it is greater than 100. If this is not the case, do not change the value in the registry to shift direction. If data has exceeded the limit, change the values in the shift of direction register account to "Count Down".
In the case of 'Count Down', decrement the value of data and test a value less than 0. When the value of the data is less than the lower limit, change the values in the change of direction of the County Register to "Count Up" and you're done.
Mike...
Maybe you are looking for
-
Cursor flashes quickly between the pointer and the hand when you move the link.
Whenever it starts occurring, the status bar will start also flickering between showing the value of href of the link target and nothing, and tooltips (which would normally appear on the overview) briefly appear and disappear. The same thing happens
-
Can I use a Belkin 10 watt car charger to charge my iPhone 6 s?
Can I use a Belkin 10 watt car charger to charge my iPhone 6 s?
-
Hi all I work with data files generated by data acquisition equipment. The files consist of 56 column (the first column is a timestamp and the rest are values of the voltage sensors). I am interested in converting the values of voltage to pressure va
-
Windows 8: no multitouch on the Vostro V131 touchpad
Dear all, Is it just me or Windows 8 cannot recognize the V131 as capable of multitouch touchpad, or dedicated drivers are available from Dell on http://www.dell.com/support/drivers/us/en/04/Product/vostro-v131? If I'm wrong and it is a question, is
-
Hi allEBS 11iLinux 5.5We didn't change anything either, but all of a sudden our listener does not start.start at $ /u02/oracle/oaproddb/9.2.0/appsutil/scripts/OAPROD_oel5/addlnctl.sh OAPRODYou run addlnctl.sh version 115.6Logfile: /u02/oracle/oaprodd