Declaring Variables of types in ActionScript ValueObject.
Hello
Since the tutorials went through net I always saw that the authors used a (underlined) _ each time to declare a private inside the ValueObjects ActionScript Variable.
Can you please tell me why is the underscore (_) is required when dealing with the private variables.
Waiting for your answers.
Thanks in advnace.
Hi kiran7881,
It's just a naming convention adopted in coding and a best practice... nothing more than that...
Especially in Flash, we used for that adopt and same follwoed in Flex as well.
Especially it meaning is using the set and get methods in Flex... see below
private var _dataProvider:ArrayCollection;
public function set dataProvider(data:ArrayCollection):void
{
_dataProvider = data;
}
Check the Sub lonks, you will get more of what I'm talking about...
http://arcware.NET/coding-guideline-do-use-an-underscore-for-class-member-variables/
http://blog.DClick.com.br/WP-content/uploads/Adobe-Flex-coding-guidelines-V12-English.PDF
Thank you
Jean Claude Chari
Tags: Flex
Similar Questions
-
Error of variable data Type.
I have a quick question. I'll put up a variable with a data type of number, when I declare the variable, it has a default value.
I am trying to transfer data to the variable to an input text box but I get an error when I run the movie. I tried both a text entry box and a dynamic text box, but they both produce the same error.
If I remove the variable declaration seizure figures series film and it updates the variable data but everything I read is not a good practice.
I enclose the code, could someone please help me. I don't remember having such problems with ActionScript 2.
Thanks for the help.
Code:
Shape: rectangle var;
thick var: number = 2; line thickness
var color: Number = 0x000000; Contains the value of color
myButton_btn.addEventListener (MouseEvent.CLICK, onClick);
function onClick(event:MouseEvent):void
{
Color = colorField_txt.text; (Line 11)
thickness = lineThick_txt.text; (Line 12)
Rectangle = new Shape();
rectangle.graphics.lineStyle (thickness, color,. 5);
rectangle.graphics.drawRect (10, 10, 100, 150);
addChild (rectangle);
}
myButton_btn.buttonMode = true;
ERROR MESSAGE:
1067: constraint implied to a value of type String to a type unrelated to number. (Refers to line 11)
1067: constraint implied to a value of type String to a type unrelated to number. (Reference to line 12)
Thanks again for any help.
Mikethe text property of a textfield is a string, so to put this string in a variable of type number, you must first convert it to a number to
for example.
thickness = Number (lineThick_txt.text);ActionScript 2 performs this conversion automatically.
-
How to check if the variable (of type uint) has a value or not?
Hi all
I'm just trying to write an instruction conditional to check if my uint variable has a value or not. I tried to check "null" and "undefined", but without any luck (see below)
private var _tempIndex:uint;
...
...
If (_tempIndex! = null) {}
code here
}
had an error with that one, then tried
If (_tempIndex! = undefined) {}
code here
}
had an error with that as well.
So, how can I check if a variable has been assigned a value or not? Any ideas? Thanks in advance!
Mike
A uint always has a value between 0 and 2 ^ 32-1 inclusive. It cannot store a value 'no' as undefined or null. If you declare a variable of type uint without assigning a value, it is given a default value of 0.
You need to maintain an indicator Boolean separate or to use a type of data larger such as number (which can store NaN), object (which can store NaN or null), or * (which can store a value, including NaN, null, and undefined).
Gordon Smith
Adobe Flex SDK team
-
Value data named to bind variables of Type table
Hello
I have a display object with a query that has a where clause, clause which use 'en' (e.g. Select projTitle PROJECT where PROJID in: projIds)
'projIds' is a variable of type table of liaison.
I'm moving in that variable binding expects (an array of projIds that can be used by the sql statement), and I did not. I'm calling a method in the bean to support the named child tag data from the action tag in the pageDef file links section.
Can you give me the proper syntax and object Array as this variable binding will accept, please? Maybe I used the wrong NDType? I found a couple of different options, but none that I can make it work.
The page definition file:
< action IterBinding = "ProjPendingApprovalByApproverVO1Iterator" id = "loadPendingApproval".
InstanceName = "SystemAMDataControl.RooProjIdArrayt.ApprovalAM1.ProjPendingApprovalByApproverVO1"
DataControl = "SystemAMDataControl" RequiresUpdateModel = "true" Action = "executeWithParams" >
< NamedData NDName = 'PROJID"NDValue =" #{dashboard.projIdArray} "NDType="oracle.jbo.domain.Array"/ >"
< / action >
Application of VO:
SELECT ProjectEO.PROJ_ID,
ProjUtnDtlEO.UTN_TYPE,
ProjectEO.PROJ_SHORT_DESC,
ProjUtnDtlEO.PROJ_DTL_ID,
ProjectEO.PROJ_OWNER,
VEmployeeInfoEO.FIRST_NAME,
VEmployeeInfoEO.EMPLOYEE_ID,
VEmployeeInfoEO.FIRSTNAMELASTNAME,
VEmployeeInfoEO.LAST_NAME,
VEmployeeInfoEO.LASTNAMEFIRSTNAME,
ProjApprovalDecisionDtlEO.PROJ_APPROVAL_DECISION_DTL_ID,
ProjApproverEO.PROJ_APPROVER_ID,
ProjApproverEO.APPROVER_LEVEL,
ProjApproverEO.APPROVER_NUMBER,
ProjApproverEO.APPROVER_ROLE,
ProjApprovalDecisionDtlEO.COMMENTS,
ProjApprovalDecisionDtlEO.PROJ_APPROVAL_DECISION_ID,
ProjApprovalDecisionDtlEO.LASTUPDATEDBY,
ProjApprovalDecisionDtlEO.APPROVEDDATE,
ProjectEO.SYS_STATUS,
ProjApproverEO.LASTUPDATEDBY AS LASTUPDATEDBY1,
ProjApprovalDecisionDtlEO.PROJ_APPROVAL_TYPE_ID,
ProjStatusLkpEO.STATUS_DESC,
ProjStatusLkpEO.PROJ_STATUS_ID,
ProjectEO.PROJ_CATEGORY_ID,
STRING. APPROVAL_DESC
OF PTS. ProjectEO PROJECT,
PTS. PROJ_UTN_DTL ProjUtnDtlEO,
PTS. V_EMPLOYEE_INFO VEmployeeInfoEO,
PTS. PROJ_APPROVAL_DECISION_DTL ProjApprovalDecisionDtlEO,
PTS. PROJ_APPROVER ProjApproverEO,
PTS. PROJ_STATUS_LKP ProjStatusLkpEO,
PTS. Channel PROJ_APPROVAL_CHAIN_LKP
WHERE ((ProjectEO.PROJ_ID = ProjUtnDtlEO.PROJ_ID (+))
AND (ProjectEO.PROJ_ID = ProjApprovalDecisionDtlEO.PROJ_ID))
AND (ProjectEO.PROJ_ID = ProjApproverEO.PROJ_ID)
AND (ProjectEO.SYS_STATUS = ProjStatusLkpEO.SYS_STATUS)
AND (ProjectEO.PROJ_OWNER = VEmployeeInfoEO.EMPLOYEE_ID)
AND (ProjApprovalDecisionDtlEO.PROJ_APPROVER_ID = ProjApproverEO.PROJ_APPROVER_ID)
and PROJAPPROVEREO. PROJ_APPROVAL_CHAIN_ID = STRING. PROJ_APPROVAL_CHAIN_ID
AND (ProjApprovalDecisionDtlEO.PROJ_APPROVAL_DECISION_ID = 0)
and PROJAPPROVEREO. APPROVER_LEVEL <>2
and PROJAPPROVEREO. PROJ_ID in: PROJID
Thank you!
Please refer to http://www.jobinesh.com/2010/09/using-bind-variable-for-sql-statements.html?m=1 for an example of this.
Timo
-
How to add a variable of type text in a package?
Hi guys,.
After a few years as an OWB guy, get my feet wet with ODI. This day - love her!
In any case, a question. If I want to add a variable of type text as a step in my package - how should I do this? I see how to refresh based on a query, but did not understand how to get this query to include the current value of the variable, and I have a tired, a number of things in the Variable value box assignment hat that I thought might work out but without success.
-Is it possible?
See you soon,.
MikeI can do a ' Select #variable_name | "new information"double"as the update one application for my variable and concatenation work?
Yes, you can
If the #variable is text / alphanumeric then use single quote around like below
SELECT '#V_NAME' |' INDIA "OF THE DOUBLE
-
What happens to dynamically declared variables when I'm not with them?
Hello, I'm doing a game using Flash Pro cc. But I wonder what happens to the article, that is dynamically declared variable MovieClip in a loop. And every article gets the EventListener 2.
for (var i: Number = 0; i < pVector.length; i ++) {}
var aTile:ATile = new ATile();
aTile.x = pVector [i] .x;
aTile.y = pVector [i] there;
aTile.gotoAndStop (Math.ceil (Math.random () * Color));
nVector.push (article);
Spr.addChild (article);
aTile.addEventListener(MouseEvent.CLICK,Clicked,false,0,true);
aTile.addEventListener (Event.COMPLETE, false, 0, true);
the current function ends here. What happens to the article now? It will be garbage collected? Moreover, this piece of code runs whenever a player starts a new level of my game. And I do not have the use of the variable article in other functions. I only use the nVector variable. And declare a dynamic variable in a loop means a multiple of them are created? For example, if the piece of code above loop 5 times, means 5 article variable are created? Or whenever you declare
var aTile:ATile = new ATile(); Once again, it replaces the 'old' with the 'new' article article and so 1 only article exists after the loop?
}
need no gc d because it seems that it is added to the display (but it depends on if the RPD is added to the display).
-
How to declare variables in PL/SQL (dynamically)
Hello
Please inform me how can I declare variables in PL/SQL dynamically (I want used in other projects). I tried the following code, but this error
SQL > /.
declare
*
ERROR on line 1:
ORA-06550: line 1, column 74:
PL/SQL: ORA-00933: SQL not correctly completed command
ORA-06550: line 1, column 35:
PL/SQL: SQL statement ignored
ORA-06512: at line 10
-----------------------------------------
This is the code.
declare
v_temp varchar2 (300);
x varchar2 (20);
y varchar2 (20);
Start
BBB: = "X varchar2 (20);"
y : = '1' ;
run immediately 'declare '.
|| v_temp
|| "start."
|| 'Select name '.
|| "Ali where id =: yy '.
|| ' x using the ' | There
|| ' ; '
|| ' end; ';
end;
concerning
WAeluser3098640 wrote:
Hi, thanks a lot for all. OK I'll show you that I want to achieve. So please help me
refer to the following table it consist of four columns and three rows.
I only want to show the column that has a value of ZERO : like the following querySelect REC1 IMAGE_VALUE where corr = 'x' and rec1 = '1';
Do you want that ZERO or '1 '? Contradict you yourself.
Good to see you're requirements are clear.
in this case are easy, but in my case the columns may be more than 100 columns (this is will automatically create - already made the number of columns is not fixed but it start by REC1 REC2, REC3, REC4... etc)
the question is How can I DISPLAY the columns containing only '1' for specfic "corr" is X, Y or Z in PL - SQLWhy you have a table that automatically creates with an unknown number of columns?
It of very bad database design and get the basics of the design by the window completely.When you say 'Show' to what it means? SQL and PL/SQL "shows" nothing, because it has no user interface. It simply processes the data, and if these data are not in a known structure at the time where the application has been designed, and all code must be dynamic to try to deal with it. It is simply false in many ways.
A better structure would be something like this...
SQL> create table image_value (corr varchar2(20), rec varchar2(10), rec_val varchar2(20)); Table created. SQL> SQL> insert into image_value (corr, rec, rec_val) values ('X','REC1','1'); 1 row created. SQL> insert into image_value (corr, rec, rec_val) values ('X','REC2','0'); 1 row created. SQL> insert into image_value (corr, rec, rec_val) values ('X','REC3','0'); 1 row created. SQL> insert into image_value (corr, rec, rec_val) values ('Y','REC1','0'); 1 row created. SQL> insert into image_value (corr, rec, rec_val) values ('Y','REC2','1'); 1 row created. SQL> insert into image_value (corr, rec, rec_val) values ('Y','REC3','1'); 1 row created. SQL> insert into image_value (corr, rec, rec_val) values ('Z','REC1','1'); 1 row created. SQL> insert into image_value (corr, rec, rec_val) values ('Z','REC2','0'); 1 row created. SQL> insert into image_value (corr, rec, rec_val) values ('Z','REC3','1'); 1 row created. SQL> SQL> commit; Commit complete. SQL> SQL> with r as (select '&Required_Corr' as req_corr from dual) 2 -- 3 -- end of input 4 -- 5 select corr 6 ,max(decode(rn,1,rec)) as c1 7 ,max(decode(rn,2,rec)) as c2 8 ,max(decode(rn,3,rec)) as c3 9 ,max(decode(rn,4,rec)) as c4 10 ,max(decode(rn,5,rec)) as c5 11 ,max(decode(rn,6,rec)) as c6 12 ,max(decode(rn,7,rec)) as c7 13 ,max(decode(rn,8,rec)) as c8 14 ,max(decode(rn,9,rec)) as c9 15 ,max(decode(rn,10,rec)) as c10 16 from ( 17 select corr, rec, row_number() over (partition by corr order by rec) as rn 18 from image_value, r 19 where corr = req_corr 20 and rec_val = '1' 21 ) 22 group by corr; Enter value for required_corr: X old 1: with r as (select '&Required_Corr' as req_corr from dual) new 1: with r as (select 'X' as req_corr from dual) CORR C1 C2 C3 C4 C5 C6 C7 C8 C9 C10 -------------------- ---------- ---------- ---------- ---------- ---------- ---------- ---------- ---------- ---------- ---------- X REC1 SQL> / Enter value for required_corr: Y old 1: with r as (select '&Required_Corr' as req_corr from dual) new 1: with r as (select 'Y' as req_corr from dual) CORR C1 C2 C3 C4 C5 C6 C7 C8 C9 C10 -------------------- ---------- ---------- ---------- ---------- ---------- ---------- ---------- ---------- ---------- ---------- Y REC2 REC3 SQL> / Enter value for required_corr: Z old 1: with r as (select '&Required_Corr' as req_corr from dual) new 1: with r as (select 'Z' as req_corr from dual) CORR C1 C2 C3 C4 C5 C6 C7 C8 C9 C10 -------------------- ---------- ---------- ---------- ---------- ---------- ---------- ---------- ---------- ---------- ---------- Z REC1 REC3 SQL>
And you support the maximum number of values REC you expect.
Other than that, what you're really talking is a reporting requirement that requires that the data to be read once before, it is then processed and only the required data is queried with a second query. This can be done in PL/SQL using DBMS_SQL (or versions using EXECUTE IMMEDIATE), but really, that should be done by tools that are designed to query data then format and place based on the content of the reporting data.
Yet, you have not really explained why you are trying to do. It's alright saying you are trying to achieve, but which does not justify as being the right way to do things. What you have shown us so far, is not how to design a database or application code.
-
the declaration of the type of this expression is ill-formed incompleteor
error 320 to the column of the row 22 14
the declaration of the type of this expression is ill-formed incompleteor
error on line 22, column 4 0
Declaration ignored
Please GuideDECLARE v_value VARCHAR2(50); v_prod_id varchar2(100); v_prod_name VARCHAR2(100); BEGIN v_value:=:product.SIZE_LONG; v_prod_id:=:product.prod_id; v_prod_name:=:product.prod_name; IF v_value is not null then insert into product (prod_id,prod_name,DRESS_COMPOSITION,WASH_LABEL_INSTRUCTION,PRESSING_CHARGE,DYEING_CHARGE, EXTRA_CHARGE,FINISHING_CHARGE,ITEM_TYPE,TOTAL_FOB,SEASON_YEAR,INTERSTAT_CODE,RETAIL_EURO,WHOLESALE_EURO, RETAIL_USD,WHOLESALE_USD,RETAIL_GBP,WHOLESALE_GBP,CATEGORY) values (v_prod_id||'-L',v_prod_name||'-Long',:product.DRESS_COMPOSITION,:product.WASH_LABEL_INSTRUCTION, :product.PRESSING_CHARGE,:product.DYEING_CHARGE,:product.EXTRA_CHARGE,:product.FINISHING_CHARGE,:product.ITEM_TYPE, :product.TOTAL_FOB,:product.SEASON_YEAR,:product.INTERSTAT_CODE,:product.RETAIL_EURO, :product.WHOLESALE_EURO,:product.RETAIL_USD, :product.WHOLESALE_USD,:product.RETAIL_GBP,:product.WHOLESALE_GBP,:product.CATEGORY); LOOP insert into product_detail1(prod_id,item_code,item_name,qty,price,unit,avg_rate) values (:product_detail1.prod_id,:product_detail1.item_code,:product_detail1.item_name, :product_detail1.qty,:product_detail1.price,:product_detail1.unit,:product_detail1.avg_rate); exit when NO_DATA_FOUND; NEXT_RECORD; END LOOP; elsif v_value is null then delete from product where prod_id=(v_prod_id||'-L'); end if; END;
Why this errro comes
Thanks and greetings
Vikas SinghalI don't know why not use is not the same as I showed. The error is coming because the closer you get the lower case letter in the condition. Before apply the code, you first need to examine carefully.
Change This. exit when :system.last_record = 'true';to exit when :system.last_record = 'TRUE';
Don't forget to use VALIDATION after END of LOOP
After that he will even record to another record, the only change is prod_code
LARGE, SMALL or SHORT etc.But you said before that the product size = LONG then you want to insert the record. And now, for all sizes. In any case, if yes, then remove the IF condition.
-Clément
-
Whence ODI stores its values variable if type is text
Hi all
I've already lost my time of 2 to 3 just try to find "where ODI stores its value for variables if type is text. "SNP_VAR" is certainly not the answer.
I tried one of the following ways:
(1) can't find that no matter what tat column that can contain more than 400 characters in my working repository.
(2) seek to implement Oracle disk track to discover sql get questions when we hit the Refresh button on the ODI variable. Does anyone know how to trace sqls pilot?
Kind regards
AmitHi Amit,
When it's a text variable it is stored in SNP_EXP_TXT in the documents as necessary once the text is 'broken' in blocks of 256 characters long. This means that if the variable has a 700-character text, you will find 3 files to SNP_EXP_TXT.
This help you?
-
PLS-00320 - the declaration of the type of the expression is incomplete or
Hello
Please help me get rid of this error?
PLS-00320 - the declaration of the type of the expression is incomplete or incorrect
PROCEDURE wip_reversal_proc ( p_packing_id IN packing.packing_id%TYPE, o_return_msg OUT VARCHAR2 ) IS CURSOR c_packing IS SELECT p.client ,p.order_number ,pa.dc ,p.status ,o.status ,o.bo_child_order_id FROM packing p ,packing_attributes pa ,orders o WHERE p.packing_id = p_packing_id AND pa.packing_id = p.packing_id AND o.client = p.client AND o.order_number = p.order_number; ------------------------------------------------------------------ -----------------------------MAIN--------------------------------- ------------------------------------------------------------------ BEGIN pack_rec c_packing%ROWTYPE; OPEN c_packing; FETCH c_packing INTO pack_rec; v_lock := TRUE; invrec.client := pack_rec.client;
Try this,
Procedure wip_reversal_proc( p_packing_id IN packing.packing_id%Type , o_return_msg OUT Varchar2 ) Is Cursor c_packing Is SELECT p.client , p.order_number , pa.dc , p.status , o.status , o.bo_child_order_id FROM packing p , packing_attributes pa , orders o WHERE p.packing_id = p_packing_id AND pa.packing_id = p.packing_id AND o.client = p.client AND o.order_number = p.order_number; pack_rec c_packing%Rowtype; Begin Open c_packing; Loop Fetch c_packing INTO pack_rec; Exit When c_packing%Notfound; v_lock := True; invrec.client := pack_rec.client; End Loop; Close c_packing; End;
Kind regards
Christian Balz -
Newbie how to set the variable of type element?
JDEV 10.1.3.1
When I do the following in JDEV BPEL Designer...
new variable
create the variable
Select the element type
Select a file local xsd schema
Select the item of choice
Seems to define OK but fails to compile. Namespaces seem to include the namespace defined in the xsd.
When I define variables of type message and navigate to the appropriate wsdl file and choose a message there that seems to work / compiles very well.
I'm sure that since I am just getting started it's a common error, please help and thank you. All variables must be defined as messages types and reside in a WSDL file?
Thank you
JohnHi John,.
I don't know if it is possible to import a schema in a process directly. What I usually do is to import the WSDL describing the interface. This is the file that you use to define the client-partnerlink. If your schema is imported correctly, you can access the type definition via the partner-links-node in the type selector (this works at least in JDEV 10.1.3.3 and 10.1.3.4).
To import your schema in the wsdl, you must switch to the display structure in wsdl editor and after a right-click on the node types to select "insert types." Inside types, you insert the XML schema within the schema, you must insert an import tag. The properties for this tag are the location of the file and the target namespace used in the schema. The XML structure that results should look like this:-----
namespace = "http://xmlns.oracle.com/Order_Booking___Shipment" / >
-----Greetings,
Christoph
-
PLS-00320: the declaration of the type of this expression is (incomplete)
It is a procedure that I created in order to read and write to a directory. I get this error messages I'm not what I'm you hurt here can help me.
error messages include
1. the declaration of the type of the expression is incomplete e
2 PLS-00201: identifier 'FTP.T_STRING_TABLE' must be declared.
3.pls - 00201: identifier 'FTP.LOGIN' must be declared
4 PLS-00201: identifier 'FTP.LOGOUT' must be declared.
PROCEDURE SP_TESTOMG_SIG
AS
l_conn UTL_TCP.connection;
l_list ftp.t_string_table;
BEGIN
l_conn: = ftp.login ('172.20.100.240', '21', 'ftpuser', 'ftppassword');
ftp.LIST (p_conn = > l_conn p_dir = > ' / xch/signatures ', p_list = > l_list);
ftp.LOGOUT (l_conn);
IF l_list. COUNT > 0
THEN
BECAUSE me IN l_list. FIRST... l_list. LAST
LOOP
Dbms_output.put_line (I |) ': ' || l_list (i));
END LOOP;
END IF;
END;
Published by: kama021 on June 10, 2009 01:37you do not have access to a package named FTP..., that's what it means.
-
declare the custom type as a variable % ROWTYPE package
I create a bunch of FOLDER custom types in a specification of package as follows:
For consistency, I want to create a custom package type that uses a table % ROWTYPE, something like this:CREATE OR REPLACE PACKAGE mypackage AS TYPE t1 IS RECORD (a number, b number); ...
Is it possible somehow?TYPE t2 IS RECORD (table%ROWTYPE);
TomYou can use a subtype:
http://docs.Oracle.com/CD/E11882_01/AppDev.112/e25519/datatypes.htm#LNPLS99935SUBTYPE t2 is table%ROWTYPE;
Edited by: bencol on 6 June 2013 18:01
-
Passing a variable of type CHAR to to_date
I'm loading and transforming data inherited from main frame that stores dates in a numeric field in Julian, about a date format format Oracle RRDDD. A date between 2000 and 2009 down the 0 key s, for example in 2009, giving a data as 931, which could be 1 January 1993 or January 31, 2009. I can stuff a zeros to the number field to give me "0931" in a char field that my top_date Oracle interprets as January 31, 2009 with the correct mask "RRDDD." BUT, I can't find a way to spend my character sting ' 0931 "which is a variable to my my Oracle to_date, who seems to want the bounding apostrophes, even a character variable:"
Thus
my_Julian_date = 345 - East February14, 2003, leading 0 is not available from source inherited |
|
SELECT TO_DATE('00345', 'RRDDD') FROM DUAL returns OK 14 February 03 |
SELECT TO_DATE(345, 'RRDDD') FROM DUAL returns 14_FEB-03 OK too.
|
But if I put my date as character in a variable |
DECLARE my_date VARCHAR2 (5); |
BEGIN |
my_date: = '00345'; |
SELECT TO_DATE (my_date, "RRDDD" "")... fail to read my_date | / * Please ignore that this DOUBLE selection does not work * /.
SELECT TO_DATE ('| my_date |) "," RRDDD ")... |" / * with the variable my_date, the question is to_date accepts a variable value * /.
How can you pass a varchar2 or char VARIABLE with a VALUE like '00345' to TO_DATE?
Hi, I think I found a solution, having abandoned my convoluted case statement and go with something much simpler. Here it is:
Select cit_warr_tm_py_ky, iss_dte,.
() my_to_date2
LPAD)
To_CHAR (iss_dte),
5, '0')
) as My_Date
OF sats_common_data_v
order by My_Date;
-----------------------------------------------------------------------------------------------------------
Before I spent the legacy of Julian date as a number, but here I convert it to VARCHAR type and changed my my_to_date UDF to
accept the varchar2 instead of the parameter number parameter
And, my my_to_date2 function:
create or replace FUNCTION 'MY_TO_DATE2')
p_in_date IN VARCHAR2)
RETURN DATE IS
date of rtn_date;
BEGIN
rtn_date: = null;
Start
rtn_date: = TO_DATE (p_in_date, 'RRDDD');
exception: when others then rtn_date: = Null;
end;
RETURN rtn_date;
END my_to_date2;
-
Declaring variables in ORACLE Forms Builder 10g
Dear Sir/Madam.
I'm new in Oracle (Forms builder 10g) developer costume.
I would like to declare three variables in the form builder and when I press the button it will run the querey / extract data from the specific table.
Name of the table = Department
Column names: dept_code number (5), dept_name varchar2 (20), dept_location varchar2 (25)
Database user name; Yassen
database: test.
Please, help me to understand this problem.
Thank you and best regards,
Ghulam Yassen
Published by: Ghulam Yassen on October 6, 2011 15:46Yassen,
Try,
DECLARE Num_Code DEPARTMENT.DEPT_CODE%TYPE; Str_name DEPARTMENT.DEPT_NAME%TYPE; Str_Location DEPARTMENT.DEPT_LOCATION%TYPE; BEGIN SELECT DEPT_CODE, DEPT_NAME, DEPT_LOCATION INTO Num_Code, Str_name, Str_Location FROM DEPARTMENT WHERE DEPT_CODE =
; END; I hope this helps.
Kind regards
Manu.
Maybe you are looking for
-
Problems with Skype and Slingbox. How to return to 4?
-
I have an external drive USB (Seagate) with 1 TB, GB 999 including 727 is free. I have a Macbook Pro late 2011 500 GB including 215 computer is free. Everything is saved. Can I withdraw most of my photos of the Macbook without difficulty and so that
-
How can I configure wifi in my generation Apple 2nd tv without remote? I can't do frome the mobile app
-
How to export all my musk from my iPad to my iPad pro Air
just got an iPad pro not all my music was imported from my iPad Air via iCloud that only some titles have been exported.
-
DEP closing Acrobat Pro 9.5 in XP sp3
I can't use Acrobat for now because every time I open or open a PDF DEP closed the program. The error is listed as:EventType: BEX P1: Acrobat.exe P2:9.4.6.252 P3:4e67f603 P4:unknown P5: 0.0.0.0, P6: 00000000 P7: 01c006ef P8: c0000005 P9: 00000008Upda