How to convert the following code in as3?
As the title says... How to convert the following code to as3?... Thanks in advance.
import flash.display.BitmapData;
linkageId = "landscape";
myBitmapData = BitmapData.loadBitmap (linkageId);
MC = this.createEmptyMovieClip ("mc", 1);
mc.attachBitmap (myBitmapData, 1);
onMouseMove = function() {}
myNewColor = "0 x" + myBitmapData.getPixel(_xmouse,_ymouse).toString (16);
newColor.setRGB (myNewColor);
selectedColor.colorValue.text = myNewColor;
}
selectedColor.swapDepths (_root.getNextHighestDepth ());
newColor = new Color (selectedColor.sample);
:
var myBitmapData:landscape = new landscape (0,0);
var bmp:Bitmap = new Bitmap (myBitmapData);
addChild (bmp);stage.addEventListener (MouseEvent.MOUSE_MOVE, f);
function f(e:MouseEvent):void {}
var myNewColor:String = "0 x" + myBitmapData.getPixel(mouseX,mouseY).toString (16);
newColorTransform.color = uint (myNewColor);
selectedColor.sample.transform.colorTransform = newColorTransform;
selectedColor.colorValue.text = myNewColor;
}
addChild (selectedColor);
var newColorTransform:ColorTransform = selectedColor.sample.transform.colorTransform;
Tags: Adobe Animate
Similar Questions
-
How to explain the following code?
How to explain the following code?
1 set setOpenTradeIds = mapTrades.keySet (filter);
2 map mapResults = null agent, map.invokeAll ((Filter));
Is defined a class and setOPenTradeIds a new object?
Is card calss and mapResults a new object?
Thank you
Published by: frank.qian on June 7, 2009 10:48Hi Frank,.
Is mapTrades an object and a set of keys one of its methods?
mapTrade is a reference variable refers to an instance of a class that implements the keySet() method that returns a reference to an instance of a class that implements the interface of game
What is map.invokeAll? Where to get the information about it?
map is a reference variable refers to an instance of a class that implements the invokeAll() method that returns a reference to an instance of a class that implements the map interface In case of card to make reference to an instance of a class that implements the InvocableMap interface, you can find consistency documentation 3.4.2 method to InvocableMap.
Kind regards
Harv
-
My stop laptop periodically and gives the following codes:
BCCode d1
BCP1 00000010
BCP2 00000002
BCP3 00000001
8A25F1C8 BCP4I was not able to find a solution to restart windows by clicking find a solution online. The system is free of viruses and other items malcious. Any ideas would be helpful because my laptop did not come with a repair disc and I'm afraid to make one with these questions.
Thank you
Hello
Think video drivers especially if it may be others. Refer to the section of driver in my generic bluescreen
methods of troubleshooting below. BIOS, low and antispyway/antivirus/security chipset drivers
programs may also cause this. Check the resolution of problems and when you get to the section driver view
for generic methods in the next message and then back to the if necessary troubleshooting tool.BCCode: D1 0x000000D1
Cause
A driver tried to access a pageable (or that is completely invalid) address while the IRQL was too high.
This bug check is usually caused by drivers who used a wrong address.
If the first parameter has the same value as the fourth parameter, and the third parameter indicates a runtime operation, this bug check was probably caused by a driver who was trying to run code when the code itself has been paginated outside. The possible causes for the error page are:
- The function was marked as pageable and was operating at an IRQL higher (including obtaining a lock).
- The function call was made to a function in another pilot, and that this driver has been unloaded.
- The function was called by using a function pointer that was an invalid pointer.
======================================================
Look in the Event Viewer to see if something is reported on those.
http://www.computerperformance.co.UK/Vista/vista_event_viewer.htmMyEventViewer - free - a simple alternative in the standard event viewer
Windows. TIP - Options - Advanced filter allows you to see a time rather
of the entire file.
http://www.NirSoft.NET/utils/my_event_viewer.html-------------------------------------------------------------------------
Also this, so you can see the probable bluescreens.Windows Vista restarts automatically if your computer encounters an error that requires him to plant.
http://www.winvistatips.com/disable-automatic-restart-T84.html-------------------------------------------------------------------------
Here are a few ways to possibly fix the blue screen issue. If you could give the blue screen
info that would help. Such as ITC and 4 others entered at the bottom left. And all others
error information such as codes of STOP and info like IRQL_NOT_LESS_OR_EQUAL or PAGE_FAULT_IN_NONPAGED_AREA and similar messages.As examples:
BCCode: 116
BCP1: 87BC9510
BCP2: 8C013D80
BCP3: 00000000
BCP4: 00000002or in this format:
Stop: 0 x 00000000 (oxoooooooo oxoooooooo oxoooooooo oxooooooooo)
Tcpip.sys - address blocking 0 x 0 00000000 000000000 DateStamp 0 x 000000000It is an excellent tool for displaying the blue screen error information
BlueScreenView scans all your minidump files created during 'blue screen of death '.
http://www.NirSoft.NET/utils/blue_screen_view.html
hangs and displays information about all accidents of a table - freeBlueScreens many are caused by old or damaged, drivers particularly video drivers but it
are other causes.You can do without if needed fail or the Vista DVD or recovery command prompt mode
Options if your system was installed by the manufacturer.This tells you how to access the System Recovery Options and/or a Vista DVD
http://windowshelp.Microsoft.com/Windows/en-us/help/326b756b-1601-435e-99D0-1585439470351033.mspxYou can try a system restore to a point before the problem started when one exists.
How to make a Vista system restore
http://www.Vistax64.com/tutorials/76905-System-Restore-how.html-------------------------------------------------------------------------
Start - type this in the search box-> find COMMAND at the top and RIGHT CLICK – RUN AS ADMIN
Enter this at the command prompt - sfc/scannow
How to analyze the log file entries that the Microsoft Windows Resource Checker (SFC.exe)
program generates in Windows Vista cbs.log
http://support.Microsoft.com/kb/928228The log can give you the answer if there is a corrupted driver. (Says not all possible
driver problems).Also run CheckDisk, so we cannot exclude as much as possible of the corruption.
How to run the check disk at startup in Vista
http://www.Vistax64.com/tutorials/67612-check-disk-Chkdsk.html-------------------------------------------------------------------------
Often drivers up-to-date will help, usually video, sound, network card (NIC), WiFi, part 3
keyboard and mouse, as well as of other major device drivers.Look at the sites of the manufacturer for drivers - and the manufacturer of the device manually.
http://pcsupport.about.com/od/driverssupport/HT/driverdlmfgr.htmHow to install a device driver in Vista Device Manager
http://www.Vistax64.com/tutorials/193584-Device-Manager-install-driver.htmlHow to disable automatic driver Installation in Windows Vista - drivers
http://www.AddictiveTips.com/Windows-Tips/how-to-disable-automatic-driver-installation-in-Windows-Vista/
http://TechNet.Microsoft.com/en-us/library/cc730606 (WS.10) .aspx-------------------------------------------------------------------------
How to fix BlueScreen (STOP) errors that cause Windows Vista to shut down or restart
quit unexpectedly
http://support.Microsoft.com/kb/958233Troubleshooting, STOP error blue screen Vista
http://www.chicagotech.NET/Vista/vistabluescreen.htmUnderstanding and decoding BSOD (blue screen of death) Messages
http://www.Taranfx.com/blog/?p=692Windows - troubleshooting blue screen errors
http://KB.wisc.edu/page.php?id=7033-------------------------------------------------------------------------
In some cases, it may be necessary.
The Options or Vista recovery disk Startup Repair
How to do a startup repair
http://www.Vistax64.com/tutorials/91467-startup-repair.htmlThis tells you how to access the System Recovery Options and/or a Vista DVD
http://windowshelp.Microsoft.com/Windows/en-us/help/326b756b-1601-435e-99D0-1585439470351033.mspxI hope this helps.
Rob - bicycle - Mark Twain said it is good.
-
Explain to me please copy the following code (in English)! Thank you.
Hi all
I work with some AS3 code that someone else wrote. The code creates data tables and filled by pulling of a webservice .NET using SOAP and data tables.
I copied and pasted the code below. Most of it makes sense and I understand it, however, there are some things that I've never seen before and have not been able to find on the internet. Most of the things I have a problem with, I created uppercase comments with my questions.
If someone could take a look and tell me what's going on I'd be happy.
Thank you.
//Load result data into XMLList structure var xmlData:XML = XML(myService.GetViewResults.lastResult); //gets the DataTables data, length of tableXML is the number of Tables you got var tableXML:XMLList = xmlData.GetViewResultsResult.DataTables.children(); //gets the number of tables returned in the result var numTables:int = tableXML.children().length(); //seperates out the data for each table var tempXMLArray:Array = new Array(); var tempXML:XML; for (var i:int=0; i<numTables; i++) { tempXML = tableXML[i]; tempXMLArray.push(tempXML); } //create a datagrid for each table var datagrid1:DataGrid, datagrid2:DataGrid, datagrid3:DataGrid; //create array collections to feed datagrids var ac1:ArrayCollection, ac2:ArrayCollection, ac3:ArrayCollection; var currentTableXML:XML; var columns:Array = new Array(); var dgc:DataGridColumn; var obj:Object; // WHY IS THIS OBJECT NEEDED? //CREATING TABLE 1 currentTableXML = tempXMLArray[0]; datagrid1 = new DataGrid(); datagrid1.width = 1000; datagrid1.height = 200; datagrid1.y = 0; columns = new Array(); for (i=0; i<currentTableXML.Columns.children().length(); i++) { dgc = new DataGridColumn(currentTableXML.Columns.NHRCViewResultColumn.ColumnName[i].toString()); dgc.dataField = currentTableXML.Columns.NHRCViewResultColumn.ColumnName[i]; columns.push(dgc); } datagrid1.columns = columns; ac1 = new ArrayCollection; // looping through each piece of data in the row for (i=0; i<currentTableXML.Rows.children().length(); i++) { trace("table 1:creating row " + i); // I HAVE NO IDEA WHATS GOING ON HERE... WHAT IS THIS OBJECT DOING EXACTLY? obj = { // I DON'T UNDERSTAND THIS SYNTAX - WHAT ARE THE COLONS FOR??? AND WHY STORE IN AN OBJECT??? ((datagrid1.columns[0] as DataGridColumn).dataField.toString()):(currentTableXML.Rows.NHRCViewResultRow.Values[i].string[0]), ((datagrid1.columns[1] as DataGridColumn).dataField.toString()):(currentTableXML.Rows.NHRCViewResultRow.Values[i].string[1]), ((datagrid1.columns[2] as DataGridColumn).dataField.toString()):(currentTableXML.Rows.NHRCViewResultRow.Values[i].string[2]), ((datagrid1.columns[3] as DataGridColumn).dataField.toString()):(currentTableXML.Rows.NHRCViewResultRow.Values[i].string[3]), ((datagrid1.columns[4] as DataGridColumn).dataField.toString()):(currentTableXML.Rows.NHRCViewResultRow.Values[i].string[4]), ((datagrid1.columns[5] as DataGridColumn).dataField.toString()):(currentTableXML.Rows.NHRCViewResultRow.Values[i].string[5]) }; ac1.addItem(obj); } datagrid1.dataProvider = ac1; this.addChild(datagrid1); //Adding populated datagrid to the screeen
The following code creates a variable of type obj Object. You must declare the variable, and you don't want to do that inside the loop where the object is built, because then it will be to be worn in the block of the loop, so it is first declared outside the loop.
var obj:Object; // WHY IS THIS OBJECT NEEDED?
Now, you construct the object. Here's the logic of what happens.
Objects of this type in Flex are constructed as follows:
objName = {}
fieldName1: fieldVal1,.
fieldName2: fieldVal2,.
fieldName3: fieldVal3
};
In this code, the field names are:
(datagrid1.columns[0] as DataGridColumn).dataField.toString()
and you must first caste as DataGridColumn.
The field values are:
(currentTableXML.Rows.NHRCViewResultRow.Values[i].string[0])
It seems here that you take the first element in the element of the chain of the ith values element, which is obtained by the analysis in the currentTableXML, the lines, the element NHRCViewResultRow element.
// I HAVE NO IDEA WHATS GOING ON HERE... WHAT IS THIS OBJECT DOING EXACTLY? obj = { // I DON'T UNDERSTAND THIS SYNTAX - WHAT ARE THE COLONS FOR??? AND WHY STORE IN AN OBJECT??? ((datagrid1.columns[0] as DataGridColumn).dataField.toString()):(currentTableXML.Rows.NHRCViewResultRow.V alues[i].string[0]), ((datagrid1.columns[1] as DataGridColumn).dataField.toString()):(currentTableXML.Rows.NHRCViewResultRow.V alues[i].string[1]), ((datagrid1.columns[2] as DataGridColumn).dataField.toString()):(currentTableXML.Rows.NHRCViewResultRow.V alues[i].string[2]), ((datagrid1.columns[3] as DataGridColumn).dataField.toString()):(currentTableXML.Rows.NHRCViewResultRow.V alues[i].string[3]), ((datagrid1.columns[4] as DataGridColumn).dataField.toString()):(currentTableXML.Rows.NHRCViewResultRow.V alues[i].string[4]), ((datagrid1.columns[5] as DataGridColumn).dataField.toString()):(currentTableXML.Rows.NHRCViewResultRow.V alues[i].string[5]) };
-
How to disconnect the access code from my iPad 2
How to disconnect the access code from my iPad 2
What do you mean by "disconnect"? If you mean stop using an access code then settings > password (enter your current password) > disable password
-
I do not have Measurement Studio, but I use the 4 available with DAQmx .NET support.
The following code throws a timeout when calling ReadMultiSample(). Can someone please tell me what I'm doing wrong? I would get 40 000 samples with a sampling rate of 20 kHz. I've renamed by device USB-6216 of 'Meas1' by using MAX.
[edit] I want to emphasize that I use AnalogMultiChannelReader because I intend to grab more than one channel once I understand that.
Thanks in advance!
using (task task = new Task()) {}
task. AIChannels.CreateVoltageChannel ("Meas1/ai1", "", AITerminalConfiguration.Differential, -0.2, 0.2, AIVoltageUnits.Volts);
task. Timing.SampleQuantityMode = SampleQuantityMode.FiniteSamples;
task. Timing.SampleClockRate = 20000;
task. Timing.SamplesPerChannel = 40000;
AnalogMultiChannelReader reader = new AnalogMultiChannelReader (task. Stream);
task. Start();
samples is reader. ReadMultiSample (40000); // <-- timeout="" occurs="" during="" this="">-->
task. Stop();
}I forgot to put the SampleTimingType:
task. Timing.SampleTimingType = SampleTimingType.SampleClock;
-
How to convert the precision extended float to float in C++
Hello
Could someone me please how to convert the extended precision (floatExt) float normal float in C++?
What is the difference in the float between Labview and C++ data type?
When I tried to receive a range of float of a function of the DLL generated by Labview in C++, data are bad.
Thank you
Victor King
You can search for numeric data types in LabVIEW help for more information on the different types of data. Before sending the data to the C++ application, you can use the function of Double precision on digital / range of Conversion to convert number to Double precision.
-
Lean how to run the stop code when the highest level VI ends
Hi people.
I am a newbie of LV with 30 years of experience in embedded SW engineering. I searched for how to run the stop code when a VI of highest level ends. I found many examples, but they are horribly complicated. A little birdie told me that such a model of simple design should not be so compilicated.
My application is an application of high tension control to disable all HV checkpoints when the SW ends. My VI code is running in a while loop with a stop button that leads out of the loop. I can easily accomplish my requirement by programming with a sequence of plate that runs after the end of the main loop. The technique of flat sequence does not work when the user clicks the Cancel button in the toolbar of façade, more than that market when the user clicks the close button of the application (X button) when you run the exe application.
Can someone tell me please a simple technique, the code example that can show me a lean and elegant way to accomplish my task? It doesn't have to be an obvious solution (for example a stop induced watchdog seems simple enough).
Thank you - John Speth
1. place this code in a VI:
(also attached)
Calling code in your VI of highest level like this:
-
I have a Hp laptop, 2000 but I neeed to access the bios and I do not know the password the error I get is the following code.
85280672
Help
Hello
Come in:
30188274
-
How to convert the date in milliseconds?
Hi all
Can I know how to convert the date in milliseconds?
My current datetime like this Formate
QDateTime::currentDateTime (m:System.NET.SocketAddress.ToString ("MMMM dd, yyyy HH"))
Seconds since January 1, 1970
http://Qt-project.org/doc/Qt-4.8/QDateTime.html#toTime_t
Sinds milliseconds January 1, 1970
http://Qt-project.org/doc/Qt-4.8/QDateTime.html#toMSecsSinceEpoch
-
can someone help with the following code plsql errors...
Hello
If anyone can help with the following code... to get a successful outing.
create or replace package lib_01 as
procedure lib_proc01 (p_user_id in numbers, p_user_name in varchar2);
end lib_01;
create or replace package body lib_01 as
procedure lib_proc01 (p_user_id in numbers, p_user_name in varchar2) as
number of v_user_id;
v_user_name varchar2 (50);
number of v_avl_books;
number of v_avl_days;
date of v_end_date;
date of v_return_date;
Start
dbms_output.put_line ('Enter User Name');
dbms_output.put_line (' username :'|| p_user_name);
Select user_id, user_name in v_user_id v_user_name of user_registration where user_name = p_user_name;
If v_user_name <>p_user_name then
dbms_output.put_line (' username is not.) Please submit full name ');
end if;
If v_user_id is null or v_user_name is null then
dbms_output.put_line ("' user not found");
validate_userLogin;
on the other
validate_issuedbooks (p_issuecount);
end if;
If v_issuecount < v_avl_books then
issuebooks;
on the other
Number of return of late_fee (p_mem_id, p_extradays, p_latefee_total);
end if;
If paid_flag = "Y" then
issuebooks;
on the other
dbms_output.put_line ("' book may be issued due to its maximum reached late fees");
end if;
end lib_proc01;
procedure validate_userLogin is
procedure reg_proc is
procedure user_validate (p_id_proof in varchar2, p_id_no out varchar2) is
v_id_proof varchar2 (20);
v_id_no varchar2 (20);
Start
Select user_name, id_proof, id_no, v_user_name, v_id_proof, v_id_no of user_registration where id_proof = p_id_proof;
If v_id_proof = "Adhar_Card" then
dbms_output.put_line ('user a valid proof of ID');
dbms_output.put_line (' and the id no. :'|| is p_id_no).
on the other
dbms_output.put_line ('Invalid ID evidence.) Please submit valid proof of ID ');
end if;
exception
When no_data_found then
dbms_output.put_line ('No Data found');
end user_validate;
procedure member_validate (p_mem_id series)
v_mem_flag char (1);
curr_date date: = sysdate;
date of v_mem_enddate;
Start
dbms_output.put_line('Mem_flag:'|| v_mem_flag);
Select mem_flag in the v_mem_flag of user_login where user_id = v_user_id;
If v_mem_flag = 'n' or v_mem_flag is null then
dbms_output.put_line ('The User do not have membership');
on the other
Select mem_id in the v_mem_id of user_login where user_id = v_user_id;
dbms_output.put_line ('the user has membership');
v_mem_id: = p_mem_id;
Select mem_enddate in the member_login v_mem_enddate where mem_id = v_mem_id;
If v_mem_enddate < curr_date then
dbms_output.put_line ('Membership has expired' | v_mem_id |' on ' | v_mem_enddate);
on the other
dbms_output.put_line ('User a validity again' | v_mem_enddate);
end if;
end if;
exception
When no_data_found then
dbms_output.put_line ("' no data found");
while others then
dbms_output.put_line (' another error.) Please find");
end member_validate;
Start
insert into user_registration values ('& first_name ',' & last_name', null, ' & user_type',)
address_ty ("& bldg_no",
'& bldg_name',
'& Street',
' & city ",
'& State',
'& zip'
),
user_phone ',' & user_mail ',' mem_idproof', ' & id_no');
Dbms_output.put_line ('user is properly registered');
exception
When no_data_found then
dbms_output.put_line ("' data not found");
end reg_proc;
Start
Dbms_output.put_line (' enter ID or user name ');
Dbms_output.put_line (' username: ' | p_user_name);
If v_user_name is null then
Dbms_output.put_line ('user not found');
reg_proc;
Insert user_login SELECT user_id_seq. NEXTVAL, user_name, NULL, mem_id_seq. NEXTVAL, user_type FROM user_registration WHERE user_name is lower (p_user_name);
Dbms_output.put_line (' because the user wants to have the membership? ");
Dbms_output.put_line ('If Yes, please pay dues");
INSERT INTO member_login SELECT mem_id_seq. CURRVAL, SYSDATE, SYSDATE + avl_days, 500, 'Y' of user_login ul, bl book_loan WHERE ul.mem_type = bl.mem_type AND user_name = p_user_name;
END IF;
exception
When no_data_found then
dbms_output.put_line ("' no data found");
When too_many_rows then
dbms_output.put_line (' too many lines).
END validate_userLogin;
procedure validate_issuedbooks (p_issuecount series)
number of v_issuecount;
Start
Select user_login u, bl book_loan, avl_days, avl_books in v_avl_days, v_avl_books where bl.mem_type = u.mem_type and user_id = p_user_id;
SELECT count (case when end_date < end return_date then p_mem_id) as invalidcount in v_issuecount from book_count where mem_id = p_mem_id;
v_issuecount: = p_issuecount;
dbms_output.put_line (' no. books that the user contains the :'|| p_issuecount);
end validate_issuedbooks;
procedure issuebooks is
procedure book_avl (p_avl_now_flag in p_avl_date Boolean, date) is
v_avl_now_flag char (1);
date of v_avl_date;
procedure reader_bookissue is
Start
insert into values drive (p_user_id, v_book_id, sysdate, sysdate, null);
insert into book_count values(p_mem_id,v_book_id,sysdate,sysdate,null);
Update book_availability set issued_to is "Reader" where book_id = v_book_id;.
end reader_bookissue;
Start
Select book_name, b.book_id avl_now_flag v_book_name, v_book_id, v_avl_now_flag of the book b, book_availability b where b.book_id = ba.book_id and ba.book_id = p_book_id;
If v_avl_now_flag = "Y" then
dbms_output.put_line ('the book is available for issuance' | v_book_id);
on the other
Select mem_type in the v_mem_type of user_login where user_id = (select user_id from book_availability where avl_now_flag = 'n' and book_id = p_book_id);
If v_mem_type = "Reader" then
reader_bookissue;
dbms_output.put_line (' the book is with Reader.) Please try tomorrow.') ;
on the other
dbms_output.put_line ('the book is member');
end if;
Select avl_date in the book_availability v_avl_date where book_id = p_book_id;
v_avl_date: = p_avl_date;
dbms_output.put_line (' the available date is: ' | p_avl_date);
end if;
end book_avl;
Start
insert into book_count values(p_mem_id,p_book_id,sysdate,sysdate+v_avl_days,v_return_date);
Update book_availability set book_id = p_book_id, avl_now_flag = 'n', avl_date is to_date (sysdate + v_avl_days,' dd-mm-yyyy ""), issued_to = v_mem_type, user_id = p_user_id where mem_id = p_mem_id;
commit;
dbms_output.put_line ("' the book published successfully");
end issuebooks;
Number of function return late_fee (p_mem_id in number, p_extradays series, p_latefee_total number) is
number of v_extradays;
number of v_latefee_total;
number of v_latefee_per_book;
number of v_latefee_per_day;
number of v_book_count;
Start
Select trunc (sysdate) - v_end_date in v_extradays from book_received where mem_id = p_mem_id and book_id = p_book_id;
p_extradays: = v_extradays;
v_latefee_per_book: = v_latefee_per_day * v_extradays;
v_latefee_total: = v_latefee_per_book * v_book_count;
p_latefee_total: = v_latefee_total;
dbms_output.put_line ('The total AMT for not returned books' | p_latefee_total);
end late_fee;
end lib_01;
Hello
I checked the first 10 lines after the beginning and I could count already several errors.
Is it an exercise or a real code, you must provide?
Kind regards.
Alberto
-
Please how to convert the photo to the second
Please guys how to convert the kia rio pictures the second perfect like this, and with any program, I know that all steps in details please its very important
That looks just like you would use the tool pen to redraw on the image and create shape layers (black areas). It could be done in Photoshop or Illustrator.
-
Hello, I have a full desktop in Adobe Muse, site and I want to convert it into a version Tablet & phone, then, how would convert the site Office to Tablet & phone to copy the entire office content and site structure? Thanks for any help.
You can not automatically convert. Click on the "tablet" or "Phone" at the top of your plan view to create these versions.
You can then copy and paste on any content you want has more of your office.
-
Hello everyone,
Parameter Value Oracle Version Enterprise Edition Release 11.2.0.1.0 - 64 bit OPERATING SYSTEM Linux Fedora Core 17 (X86_64) Consider the following code:
SET SERVEROUTPUT ON BEGIN sys.dbms_output.put_line('sleeping for 3 seconds'); sys.dbms_lock.sleep(3); sys.dbms_output.put_line('done.'); END; / SET SERVEROUTPUT OFF;
I expect the above code to make, made in order the following:
- Print the message "sleep for 3 seconds"
- Sleep switch for 3 seconds
- Print the message 'done '.
Yet, what is happening is that the program runs respectively then Step2 step 1 and finally Stap3. In other words the program first, sleeps, and once past the sleep period messages are printed.
Could someone explain to me why?
Thanks in advance,
Kind regards
Dariyoosh
"
Note:
Messages sent using
DBMS_OUTPUT
are not actually sent to the mailing of subroutine or complete relaxation. There is no mechanism to flush the output during execution of a procedure.
"
http://docs.Oracle.com/CD/E11882_01/AppDev.112/e25788/d_output.htm#CIHEGBBF -
How to convert the numeric value to 2 decimal places in java
Hi all
My requirement is a double value in the print format #, #. ##. I used the following code
Double val = 1000;
DecimalFormat d = new DecimalFormat("#,###.##");
d.format (Val);
the output I got is 1,000, but I need the output as 1 000,00
Can someone please help?
Thank you
SunnyFelipe says:
If you still need print 2 decimal places, use model #, #. # 00Nope.
DB
Maybe you are looking for
-
Qosmio G50 - 11F speaker is lost
Hi all Unfortunately, we tried to install a helmet. hereby, we lost our speakers. and we are not able to activate it again. We have a qosmio G50 11(f) with MS Vista. Thanks in advance Good byeChristian
-
Date and time on the graph (read from Excel)
Hi everone, I m new to this forum.I'm stuck with one of my projects.The program is, READ the excel file and it draw on the graph.Registered solar energy output is doing, basically I'm trying to see the chart of the outputs and readings at different t
-
where can I buy a combo of 6-one - with ports usb memory card reader and headphone and microphone jack. I can't find any place that has always part
-
I recently did a system restore and now my scheduled backups fail. the error that says that "0x810000ED error while doing Backup, error:"Backup could not verify your backup settings"also my backups are scheduled for backup on the DVD edrive.» When I
-
Problem with update display Pavilion dv6 drivers - 3023ca
Hello I am not well eaten English so I do short... I have this type of laptop: HP Pavilion dv6 - 3023ca Entertainment Notebook PC I just installed a new version of windows 7 Home premium x 86 When I tried to install my display drivers her did not wor