Execute Immediate and the in list
Hello,
How do I format the in list when i am executing a query with execute immediate ?
I want to check if a character value is in ('5', '6', '7') ? Execute immediate treats my in list as a string instead of checking to see if the given value is in ny list of values or not. Please see the code / output below.
SQL> declare
2
3 v_result VARCHAR2 (1) := 'N';
4 v_num_list1 VARCHAR2 (40) := '''5''';
5 v_num_list2 VARCHAR2 (40) := '''5'',''6'',''7''';
6
7 v_in VARCHAR2 (100)
8 := 'BEGIN IF (:txn_value IN (:case_list)) THEN :result := ''Y''; END IF; END;';
9 v_ctrl_no varchar2(40) := '''5''';
10 BEGIN
11
12 DBMS_OUTPUT.PUT_LINE ('txn_value: ' || v_ctrl_no);
13 DBMS_OUTPUT.PUT_LINE ('case_list: ' || v_num_list1);
14
15 EXECUTE IMMEDIATE v_in
16 USING IN v_ctrl_no, v_num_list1, OUT v_result;
17
18 DBMS_OUTPUT.PUT_LINE ('result is ''' || v_result || '''');
19 v_result := 'N';
20
21 DBMS_OUTPUT.PUT_LINE ('txn_value: ' || v_ctrl_no);
22 DBMS_OUTPUT.PUT_LINE ('case_list: ' || v_num_list2);
23
24 EXECUTE IMMEDIATE v_in
25 USING IN v_ctrl_no, v_num_list2, OUT v_result;
26
27 DBMS_OUTPUT.PUT_LINE ('result is ''' || v_result || '''');
28
29 END;
30 /
txn_value: '5'
case_list: '5'
result is 'Y'
txn_value: '5'
case_list: '5','6','7'
result is 'N'
Thanks,
Anna
you can't use a bind variable for an in-list string.
you can rebuild the dynamic statement each time, without a bind variable:
sql := '... in ( ' || in_list_var ||' )...
or, you can use instr:
sql := ' ... instr(:in_list_var, :txn_val) > 0 ...'
using ','||in_list, ','||txn_val||','; -- notice the extra commas
Similar Messages
-
How can I get my "Now Playing" screen back? I can't scroll or change screens at all. All I have is the album picture and the song list page. I can toggle between the two but nothing else. It did this all by itself. Now it's stuck.
what happens when you tap the screen?
Next try:
- Reset the iOS device. Nothing will be lost
Reset iOS device: Hold down the On/Off button and the Home button at the same time for at
least ten seconds, until the Apple logo appears.
- Reset all settings
Go to Settings > General > Reset and tap Reset All Settings.
All your preferences and settings are reset. Information (such as contacts and calendars) and media (such as songs and videos) aren’t affected.
- Restore from backup. See:
iOS: Back up and restore your iOS device with iCloud or iTunes
- Restore to factory settings/new iOS device. -
Execute immediate and dynamic sql
Dear all;
Just curious....Why do developers still use dynamic sql..and execute immediate, because I always thought dynamic sql were bads and the use of execute immediate as well...
or am I missing something...There are no 'bad' things and 'good' things.
There are 'correctly used' and 'incorrectly used' features.
It depends what you want to do.
One simple example: Oracle 11.2 - you write a package that fetches data from range interval partitioned table (a new partition is created automatically every day when new key values are inserted). If you use static SQL then whenever Oracle creates a new partition then your package gets invalidated and has to be compiled. If your package is heavily used (by many sessions running in parallel) then you may get this:
ORA-04068: existing state of packages has been discarded
ORA-04061: existing state of package body "PACKAGE.XXXXX" has been invalidated
ORA-06508: PL/SQL: could not find program unit being called: "PACKAGE.XXXXX" Nice, isn't it?
You can avoid this kind of problems by simply using dynamic SQL. You break dependency with the table and your package is not invalidated when new partition is created. -
Question about timeline navigation and the display list-
I’ve got a movieclip called “rotatorProxy” that spans the entire timeline. I’ve got nav buttons that jump to various frames on that timeline. I need to get the display depth of rotatorProxy each time the nav buttons move the playhead. The AS3 code is easy enough:
var zIndex:int = this.getChildIndex(getChildByName("rotatorProxy")) ;
my problem is where to put it. If I put this code in any script that executes in the target frame, it works, but only if I hit the nav buttons slowly. If I bang on a single nav button rapidly, getChildByName("rotatorProxy”) can return null. I don’t know much about how the display list works but I assume the display list is rebuilt after every jump and the frame scripts are executing asynchronously, so it’s possible my getChildByName call is executed before the display list is complete. Is there an event or some other handle that would allow me to call my code before the frame is rendered but after the display list is complete?Wow, thanks for the fast response...
“if rotatorProxy exists in all frames, it should never return null.”
That’s what I thought, but not what I’m seeing, rapidly jumping around on the timeline seems to confuse the player and it temporarily looses track of rotatorProxy.
You can sort of see it in action here: http://www.appliedcd.com/newACT/act.html
The zIndex is used to establish the depth of the rotating screens which have been added to the display list via AS. If you bang on the nav buttons quickly you’ll see the stacking order screw up, if you had been in the development environment you’d see the null error thrown.
I’ll see if I can use the render event to sort this out. I know testing in the frame after the jump will work, but it’s cleaner if I can establish the proper stacking order before the first jump frame is rendered. -
Help with EXECUTE IMMEDIATE and DROP
Hi all,
we are trying to create a procedure to do the following:
* We have in the database some tables named like C$_XXXXXXXXX
* We want to drop some of these tables that have a common prefix (f.e C$_1203101)
DECLARE
v_sql VARCHAR2(300);
BEGIN
SELECT 'DROP TABLE ODISTAG.'|| TABLE_NAME ||';' INTO v_sql FROM USER_TABLES WHERE TABLE_NAME LIKE 'C$_1203101%';
EXECUTE IMMEDIATE v_sql;
END;
But we get this error:
Error report:
ORA-00911: invalid character
ORA-06512: at line 5
00911. 00000 - "invalid character"
*Cause: identifiers may not start with any ASCII character other than
letters and numbers. $#_ are also allowed after the first
character. Identifiers enclosed by doublequotes may contain
any character other than a doublequote. Alternative quotes
(q'#...#') cannot use spaces, tabs, or carriage returns as
delimiters. For all other contexts, consult the SQL Language
Reference Manual.
*Action:
Any help on that please?
Thanks!This will not work if you fetch more than one row..instead you can do this..
DECLARE
v_sql VARCHAR2(30000);
BEGIN
for c2 in (
SELECT 'DROP TABLE ODISTAG.'|| TABLE_NAME drp
FROM USER_TABLES WHERE TABLE_NAME LIKE 'C$_1203101%'
loop
v_Sql := c2.drp;
EXECUTE IMMEDIATE v_sql;
end loop;
END; -
PL/SQL Proc, execute immediate and materialized view 9.2.0.6
Hello,
Environement description: Sun Solaris 8 , Oracle database 9.2.0.6
I've a problem trying to execute this PL/SQL Procedure:
I'm loged in with PMU user
CREATE OR REPLACE PROCEDURE PMU.PROC_TEST_PMU_C035 (part_arrete in integer, part_session in integer) AS
lv_p_arrete number := part_arrete;
lv_p_session number := part_session;
lv_stmt varchar2(31000);
BEGIN
lv_stmt := ' ';
lv_stmt := lv_stmt || 'CREATE MATERIALIZED VIEW 'PMU''.''TEST_PMU_C035'' ';
lv_stmt := lv_stmt || 'TABLESPACE PMU_8M_DATA ';
lv_stmt := lv_stmt || 'BUILD IMMEDIATE ';
lv_stmt := lv_stmt || 'REFRESH COMPLETE AS ';
lv_stmt := lv_stmt || 'SELECT * FROM ACTION ';
lv_stmt := lv_stmt || 'WHERE LIBELLE IN ( ''SOCIETE 1'', ''SOCIETE 2'', ''SOCIETE 3'' ) ;';
dbms_output.put_line ( lv_stmt) ;
execute immediate ( lv_stmt);
END;
When I comment the line : execute immediate ( lv_stmt); It works fine and my statement appear on the screen:
CREATE MATERIALIZED VIEW PMU.TEST_PMU_C035 TABLESPACE PMU_8M_DATA BUILD
IMMEDIATE REFRESH COMPLETE AS SELECT LIBELLE FROM ACTION WHERE LIBELLE IN (
'SOCIETE1', 'SOCIETE2', 'SOCIETE3' ) ;
When I execute manually this query it works.
But when I try to do the execute immediate, it gives me this error:
BEGIN "PMU"."PROC_TEST_PMU_C035" ( 13, 14); END;
ERROR at line 1:
ORA-00911: invalid character
ORA-06512: at "PMU.PROC_TEST_PMU_C035", line 15
ORA-06512: at line 1
Action Table has this description and datas:
SQL> desc action
Name Null? Type
ISIN NOT NULL VARCHAR2(20)
LIBELLE VARCHAR2(100)
SQL>
ISIN LIBELLE
FR1 SOCIETE 1
FR2 SOCIETE 2
FR3 SOCIETE 3
FR4 SOCIETE 4
FR5 SOCIETE 5
FR6 SOCIETE 6
FR7 SOCIETE 7
FR8 SOCIETE 8
FR9 SOCIETE 9
FR10 SOCIETE 10
FR11 SOCIETE 11
This is a sample description of my probleme because the real case is on multiple partition tables with million rows, but the problem is the same with this sample.
My question is why it doesn't work ? Could anybody help me ?
Thanks In advance.
LoicYes but you did not show where you want the parametersOK this is my Original Query :
CREATE OR REPLACE PROCEDURE "PMU"."PROC_TEST_PMU_C035" (part_arrete in integer, part_session in integer)AS
lv_p_arrete integer := part_arrete;
lv_p_session integer := part_session;
lv_stmt varchar2(31000);
BEGIN
lv_stmt := 'CREATE OR REPLACE MATERIALIZED VIEW PMU.TEST_PMU_C035 ';
lv_stmt := lv_stmt || ' TABLESPACE PMU_8M_DATA ';
lv_stmt := lv_stmt || ' BUILD IMMEDIATE ';
lv_stmt := lv_stmt || ' REFRESH COMPLETE AS ';
lv_stmt := lv_stmt || ' select CD_SOCIETE, MONTANT, MOIS, TYPEDET, LIEUCONS, DETPEA, PERSPHYS, SECTDET, PAYSDET, ZONEDET, CSPDET, AGEDET, TRMONT, NATINSFI, MATURITE, MONNAIE, DEVISEISO, SECTEMT, PAYSEMT, ZONEEMT, ENCRSDEB, NBCPTIT, TYPEFLUX, CONTRAT, CODISIN, LIBELTIT, SEUILDET, PAYSCTP, NBTIT, SEUILA1, SEUILA2, SEUILM1, SEUILM2, SEUILB1, SEUILB2, SEUILQ1, SEUILQ2, TXEVOL, NBCPTITPEA, NBCPTITPPP, ';
lv_stmt := lv_stmt || ' NO_PCI || ''-'' || SECTDET || ''-'' || ZONEDET || ''-'' || MONNAIE || ''-'' || SECTEMT || ''-'' || DETPEA || ''-'' || PERSPHYS || ''-'' || (CASE WHEN TYPEDET IN (''DCL'', ''DCG'') THEN ''DCL'' ';
lv_stmt := lv_stmt || ' ELSE NVL(TYPEDET,'''') ';
lv_stmt := lv_stmt || ' END ) || ''-'' || (CASE WHEN NATINSFI in (''OBL'', ''EMT'', ''BTR'', ''CDD'', ''CDE'', ''CPP'', ''BTS'', ''MIB'') THEN ''OBL'' ';
lv_stmt := lv_stmt || ' ELSE NVL(NATINSFI,'''') ';
lv_stmt := lv_stmt || ' END) || ''-'' ||(CASE WHEN MATURITE IN (''A0'', ''A1'') THEN ''AC'' ELSE NVL(MATURITE,'''') END) || ''-'' ||(CASE WHEN PAYSEMT IN (''FR'',''MC'') THEN ''F1'' ';
lv_stmt := lv_stmt || ' WHEN PAYSEMT IN (''DE'',''AT'',''BE'',''ES'',''FI'',''GR'',''IE'',''IT'',''LU'',''NL'',''PT'',''SI'', ''4F'') THEN ''ZE'' ';
lv_stmt := lv_stmt || ' WHEN PAYSEMT IN (''BG'',''CY'',''DK'',''EE'',''HU'',''LV'',''LT'',''MT'',''PL'',''RO'',''GB'',''SK'',''SE'',''CZ'', ''4C'', ''4D'', ''4H'', ''4E'', ''4Z'', ''JE'') THEN ''ZU'' ';
lv_stmt := lv_stmt || ' ELSE ''ZR''';
lv_stmt := lv_stmt || ' END ) AS CLE';
lv_stmt := lv_stmt || ' from PMU_ESLD_ESTD partition(PMU_M13_S14) e ,';
lv_stmt := lv_stmt || ' PMU_ESLD_ESTD_SPPRO partition(PMU_M13_S14) a';
lv_stmt := lv_stmt || ' where e.PART_ARRETE = '||lv_p_arrete ;
lv_stmt := lv_stmt || ' AND e.PART_ENV = ''BCE''' ;
lv_stmt := lv_stmt || ' AND e.PART_SESSION = '||lv_p_session ;
lv_stmt := lv_stmt || ' and e.ID = a.ID_ESTD ';
lv_stmt := lv_stmt || ' and e.CD_STATUT = ''VE'' ' ;
lv_stmt := lv_stmt || ' and e.TYP_MONTANT = ''33'' ; ' ;
execute immediate lv_stmt;
END;
Thanks -
Execute immediate and "in" operator
Hello!
I want to pass varchar2 type argument to my procedure in format '1,2,3' where 1,2 and 3 are some IDs.
And then, in procedure I write:
stmt := 'select avg(PRICE) from ORDERS where ORDER_ID in (:Ids)';
execute immediate stmt into APrice using ARGUMENT;
I undersand, that this is incorrect, because where clause in executable query is
"where ORDER_ID in ('1,2,3')" but not "where ORDER_ID in (1,2,3)".
Is there any easy way how to solve such a problem?
Maybe I should use other argument type?user10304317 wrote:
I undersand, that this is incorrect, because where clause in executable query isIf you want to use a string you will have to concatenate it into dynamic sql:
stmt := 'select avg(PRICE) from ORDERS where ORDER_ID in (' || ARGUMENT || ')';
execute immediate stmt into APrice;However, it will produce as many sql in shared pool as you will have different ARGUMENT values and each of them will do a hard parse. Or you could use collection and then you do not need dynamic sql (unless select list and/or rest of where clause is dynamic):
SQL> create or replace
2 type num_tbl_type
3 as
4 table of number;
5 /
Type created.
SQL> create or replace procedure p1(
2 p_num_tbl num_tbl_type
3 )
4 is
5 begin
6 for rec in (select empno,ename from emp where empno in (select * from table(p_num_tbl))) loop
7 dbms_output.put_line(rpad(rec.empno,10) || rec.ename);
8 end loop;
9 end;
10 /
Procedure created.
SQL> set serveroutput on
SQL> exec p1(num_tbl_type(7566,7839,7902))
7566 JONES
7839 KING
7902 FORD
PL/SQL procedure successfully completed.
SQL> SY. -
Hi All,
Oracle Database 10g Enterprise Edition Release 10.2.0.4.0 - 64bi
I am getting error when trying to use CLOB with execute immediate.
DECLARE
v_clob CLOB;
BEGIN
EXECUTE IMMEDIATE 'SELECT DBMS_METADATA.GET_DDL(''TABLE'',''T_FDB_TMP'') from dual'
INTO v_clob_part_ddl;
EXECUTE IMMEDIATE 'DROP TABLE T_FDB_TMP';
EXECUTE IMMEDIATE to_char(v_clob_part_ddl);
END;
ORA-06502: PL/SQL: numeric or value error
ORA-06512: at line 1
ORA-06502: PL/SQL: numeric or value error
ORA-31605: the following was returned from LpxXSLResetAllVars in routine kuxslResetParams:
LPX-1: NULL pointer
ORA-06512: at line 3
06502. 00000 - "PL/SQL: numeric or value error%s"Please helpIf you can't upgrade to 11g then you'll have to use DBMS_SQL package...
e.g.
SQL> ed
Wrote file afiedt.buf
1 declare
2 v_large_sql CLOB;
3 v_num NUMBER := 0;
4 v_upperbound NUMBER;
5 v_sql DBMS_SQL.VARCHAR2S;
6 v_cur INTEGER;
7 v_ret NUMBER;
8 begin
9 -- Build a very large SQL statement in the CLOB
10 LOOP
11 IF v_num = 0 THEN
12 v_large_sql := 'CREATE VIEW vw_tmp AS SELECT ''The number of this row is : '||to_char(v_num,'fm0999999')||''' as col1 FROM DUAL';
13 ELSE
14 v_large_sql := v_large_sql || ' UNION ALL SELECT ''The number of this row is : '||to_char(v_num,'fm0999999')||''' as col1 FROM DUAL';
15 END IF;
16 v_num := v_num + 1;
17 EXIT WHEN DBMS_LOB.GETLENGTH(v_large_sql) > 40000 OR v_num > 800;
18 END LOOP;
19 DBMS_OUTPUT.PUT_LINE('Length:'||DBMS_LOB.GETLENGTH(v_large_sql));
20 DBMS_OUTPUT.PUT_LINE('Num:'||v_num);
21 --
22 -- Now split that large SQL statement into chunks of 256 characters and put in VARCHAR2S array
23 v_upperbound := CEIL(DBMS_LOB.GETLENGTH(v_large_sql)/256);
24 FOR i IN 1..v_upperbound
25 LOOP
26 v_sql(i) := DBMS_LOB.SUBSTR(v_large_sql
27 ,256 -- amount
28 ,((i-1)*256)+1 -- offset
29 );
30 END LOOP;
31 --
32 -- Now parse and execute the SQL statement
33 v_cur := DBMS_SQL.OPEN_CURSOR;
34 DBMS_SQL.PARSE(v_cur, v_sql, 1, v_upperbound, FALSE, DBMS_SQL.NATIVE);
35 v_ret := DBMS_SQL.EXECUTE(v_cur);
36 DBMS_OUTPUT.PUT_LINE('View Created');
37* end;
SQL> /
Length:40015
Num:548
View Created
PL/SQL procedure successfully completed.
SQL> select count(*) from vw_tmp;
COUNT(*)
548
SQL> select * from vw_tmp where rownum <= 10;
COL1
The number of this row is : 0000000
The number of this row is : 0000001
The number of this row is : 0000002
The number of this row is : 0000003
The number of this row is : 0000004
The number of this row is : 0000005
The number of this row is : 0000006
The number of this row is : 0000007
The number of this row is : 0000008
The number of this row is : 0000009
10 rows selected.
SQL> -
Difficulties with execute immediate and 'in' clause
Hello all,
I have some SQL that will have to run dynamically, which I can get to work by building a long statement, then getting it hard-parsed
example:
sql_stmt VARCHAR2(256) :=
'select distinct some_id from table1
where lname = ''Smith''
and fname in(''Joe'', ''Joey'', ''Joseph'')
and ssn = 111223333';
execute immediate sql_stmt into new_id_value;
the above state executes fine and returns the desired result.
HOWEVER, when I try to use bind variables (this statement will be called several million times), I get a no rows returned error.
I use bind variables as follows:
sql_stmt VARCHAR2(256);
vlname VARCHAR2(50) := 'Smith';
vssn NUMBER := 111223333;
vfname VARCHAR2(100) := '''Joe'', ''Joey'', ''Joseph''';
sql_stmt :=
'select distinct some_id from table1
where lname = :vlname
and fname in(:vfname)
and ssn = :vssn;
execute immediate sql_stmt into new_id_value
using vlname, vfname, vssn;
I know the issue involves the 'in' clause because I've substituted hardcoded values in and it has worked.
any suggestions?Well maybe its all a little confusing, does an end to end demo make it any clearer Mr Bidness?
SQL> create or replace type tabstr_t as table of varchar2(4000)
2 /
Type created.
SQL> create or replace function tabstr (
2 p_str in varchar2,
3 p_sep in varchar2 default ','
4 )
5 return tabstr_t
6 is
7 l_str long := p_str || p_sep;
8 l_tabstr tabstr_t := tabstr_t();
9 begin
10 while l_str is not null loop
11 l_tabstr.extend(1);
12 l_tabstr(l_tabstr.count) := rtrim(substr(
13 l_str,1,instr(l_str,p_sep)),p_sep);
14 l_str := substr(l_str,instr(l_str,p_sep)+1);
15 end loop;
16 return l_tabstr;
17 end;
18 /
Function created.
SQL> var s varchar2(100)
SQL> exec :s := 'king,turner,ward'
PL/SQL procedure successfully completed.
SQL> select ename, sal from emp
2 where ename in (
3 select upper(column_value) from
4 table(cast(tabstr(:s) as tabstr_t))
5 );
ENAME SAL
KING 5000
TURNER 1500
WARD 1250
SQL> exec :s := 'jones,blake,clark'
PL/SQL procedure successfully completed.
SQL> /
ENAME SAL
BLAKE 2850
CLARK 2450
JONES 2975 -
How can I delete some of the movies on my Apple tv1? The movies list and also the music list are greyed out. Hope some one has an idea as I can't figure it out!
Welcome to the Apple Community.
The best way would be transfer them to your iTunes library, but if you wish to delete them instead, select the trash can on the right hand side of the listing on the Apple TV, you can't delete them using iTunes on your mac/PC? -
run the CreativeCloudSet-Up program, screen and mouse blink intermittently. And the program does not open. My computer is new, freshly removed from box. Windows 7 pro 64bit SP1
Jorgeb55956766 I am sorry that you are facing difficulty installing the Creative Cloud Desktop application. Have you utilized the steps listed in Error: "Failed to install" | Creative Cloud Desktop to reinstall the Creative Cloud Desktop application? If so do you receive any specific error messages?
-
Do the restore action restores also the bookmarks and the reading list?
Hi All,
I have to restore my ipad through itunes, to overcome the password lock screen problem (forgot my password).
I performed sync earlier but i'm not sure wither the reading list and the bookmarks will be retored also or will be lost?
Any information or instruction regarding this issue is very vital since i have important bookmarks and reading list.
I have ipad2 with IOS 7.0.6
Thanks in advance!yes it will be restored to how it was when you last backed up
-
Apt and the filenames list results in a crash
Back to work: seems that when you use too much filenames apt will crash. The problem is that apt lists all filenames that contain annotations by default. My 404 files and long directory names are the end of apt ;)
So, is there a switch or parameter that drops the filenames list? Or, at least, writes them line by line?This ended up resolving my problem: http://support.apple.com/kb/HT1379?viewlocale=en_US
-
EXECUTE IMMEDIATE AND BULK INSERT
Hi,
I have a code
EXECUTE IMMEDIATE 'INSERT INTO PRC_ExcelDocumentStore_T(object_id,seg_index,segment,value,seg_length) VALUES (:object_id,:seg_index,:segment,:value,:seg_length)'
USING SELF.object_id,p_index,p_segment,p_value,lengthc(v_value)+2;
But due to some performance issue ,I can't use like this.Can you please suggest can i use Bulk Inserts instead of 'EXECUTE IMMEDIATE' statement.
If I can do,please give me an example.
Thanks in advanceuser10619377 wrote:
Hi,
I have a code
EXECUTE IMMEDIATE 'INSERT INTO PRC_ExcelDocumentStore_T(object_id,seg_index,segment,value,seg_length) VALUES (:object_id,:seg_index,:segment,:value,:seg_length)'
USING SELF.object_id,p_index,p_segment,p_value,lengthc(v_value)+2;
But due to some performance issue ,I can't use like this.Can you please suggest can i use Bulk Inserts instead of 'EXECUTE IMMEDIATE' statement.
If I can do,please give me an example.How can we give example when we don't know what you have now or what exactly needs to be done.? -
Simple Class and the Display List
I have very simple code for a class:
package
import flash.text.TextField;
import flash.display.Sprite;
public class Greeter extends Sprite
public function Greeter()
var txtHello:TextField = new TextField();
txtHello.text = "Hello World";
trace("hi");
addChild(txtHello);
The above file is saved as Greeter.as in say folder C:\test
I then create a Fla file named test_display.fla (saved in C:\test) and its contents are:
import Greeter;
var tt:Greeter = new Greeter();
Now the Output window shows hi due to the trace statement but the addChild method should show
Hello World in the Flash movie but it does not. The only way to get Hello World to the Flash Movie
is to change the test_display.fla to:
import Greeter;
var tt:Greeter = new Greeter();
addChild(tt);
In other words I have to use the addChild method twice ( once in Greeter.as and once in test_display.fla )
to get Hello World to display in the Flash movie. Does anyone know why this is so?Thanks Andrei1,
I honestly am having trouble with your answer. I am sure it is correct, I just don't get it right now.
As a slight twist on the original code say for example you want to get Hello World to output
inside the output window NOT the Flash movie. I see the code snippet inside the class it reads:
var txtHello:TextField = new TextField();
txtHello.text = "Hello World";
So now inside the FLA file ( not inside the class file ) I have tried various ways to get Hello World to print in output window:
I have tried trace(tt.text); and I get an error.
So the question is I know tt is an instance of Greeter and inside Greeter I see
where Hello World is assigned via:
txtHello.text = "Hello World";
So the question is why can't I get Hello World to print in the output window ( using trace) via
the instance tt somehow?
Maybe you are looking for
-
NO Disk error when DAQmx is referenced
Referencing NationalInstruments.DAQmx causes a NO DISK error in Visual Studio (see attachment) I'm using Visual Studio 2012 and MS 2013 The DAqmx version is 9.8.45.42 Has anyone seen this before and is there a fix? Steve Attachments: DAQMX Error.JPG
-
Greetings to all from Chicago! Just purchased a brand new IMAC (27 inch, 2.93GHZ QUAD-CORE INTELCORE I7, 8GB 1333MHZ DDR3 SDRAM - 2X4GB, ATI RADEON HD 5750 1GB GDDR5). Previously had 24 Inch MAC (plastic on the back which is the point of my compariso
-
Problem in document creation.
Hi Experts, I am facing a very serious problem in saving the documents. Whenever I create RFQ (ME41) and Save it. It gets Saved and with the document number. But if I go to document display (ME43) and the enter the document number created. the system
-
Best practice Xcelsius 2008 MS SharePoint integration
Hi, Can anyone tell me if this is best practice on integrating Xcelsius 2008 dashboards with BW connections into MS SharePoint? http://wiki.sdn.sap.com/wiki/display/BOBJ/IntegrationofanXcelsiusdashboardinMicrosoft+Sharepoint BR Katrin
-
Strange Mavericks problem on MBA
I have a strange problem on my MBA with Mavericks. If I log in as the user (me), I am unable to select files to move. I get the spinner. For example, if I want to import a photo from my desktop to my iPhoto library, or I want to upload to Facebook