How to combine the string and variable in loop
I need to get the following lines in a loop for, but miss me the possibility in actionscript3 to use this ['string' + i + 'word2'wing_mc.prop1_mc.rotation = - wing_mc.rotation;
wing_mc.prop2_mc.rotation = - wing_mc.rotation;
wing_mc.prop3_mc.rotation = - wing_mc.rotation;
wing_mc.prop4_mc.rotation = - wing_mc.rotation;
wing_mc.prop5_mc.rotation = - wing_mc.rotation;
wing_mc.prop6_mc.rotation = - wing_mc.rotation;
wing_mc.prop7_mc.rotation = - wing_mc.rotation;
wing_mc.prop8_mc.rotation = - wing_mc.rotation;
wing_mc.prop9_mc.rotation = - wing_mc.rotation;
I tried things like
for (i = 1; i < 10; i ++) {}
This ["wing_mc.prop" + i + "_mc"] .rotation = - wing_mc.rotation;
}
or
for (i = 1; i < 10; i ++) {}
"wing_mc.prop"+ i +"_mc".rotation = - wing_mc.rotation;
}
It seems very simple
I must be overlooking something
Thanks in advance
Kees
"Although it works there is a little thing, I do not understand:
This.wing_mc ["prop" + i + "_mc"] .rotation
I think a point to separate the this.wing_mc ["prop" + i + "_mc"] AND .rotation '.
Well, that's how. In fact, the syntax is similar to the table. There are no points when you read the value of a member of the group. In a way that object is an array of methods and parameters - we simply refer to them not whole but by name.
I know it's all confused sometimes. :-)
Tags: Adobe Animate
Similar Questions
-
How to combine the insert and where to ask?
Hello..
could someone guide me how to combine insert and where to ask questions?
insert into tdc_imarspc (ANUMBER, EMF_ID, PRODUCT) values ('1234567', '65', ' ITF')
where anumber not as "1234567".
Thank you
BalleurHi, ballet,
As Manu said, WHERE only works on a query.
You can base a query relative to the double, like this:INSERT INTO tdc_imarspc (ANUMBER, EMF_ID, PRODUCT) SELECT '1234567', '65', 'ITFS' FROM dual WHERE anumber NOT LIKE '1234567';
Of course, you can use a literal, such as "1234567" in both places where I used the variable binding, but if you do not use a variable, why would you?
You could also put all the literals in a subquery (duplicate), and column names of reference in the WHERE clause LIKE THIS:INSERT INTO tdc_imarspc ( ANUMBER, EMF_ID, PRODUCT) WITH sub_q AS ( SELECT '1234567' AS an, '65' AS ei, 'ITFS' AS pr FROM dual ) SELECT an, ei, pr FROM sub_q WHERE an NOT LIKE '1234567';
I guess that you don't really say
an NOT LIKE '1234567'
If you use any ambiguity after LIKE, you may as well use! =
an != '1234567'
-
How to combine the background and graphics?
This is my last question unanswered. Special thanks to all those who put up with me.
So I was able to change my background color by creating a new layer and using the rectangle tool that I've changed to gray. The problem is that both windows dominate the other, so I don't see the window that is on top. It didn't in my other graph. I need to get the two layers together. The person I spoke with tech support is passed through the remote and couldn't do so I wonder if something is wrong with my chart.
Jared,
Also if you set two visible layers (the eye)?
You might also just have the path of the base at the bottom of the same layer, under the graph (Ctrl / Cmd + C + B + X + B to be absolutely sure).
-
HP50g: HP50g - how to combine the programs and data of some units?
Like some people on this forum, I have a few pieces of HP50g. On each article there are data and different programs. I'm tired of this mess and want to combine all the programs of all the units in a BASE directory and install the same programs on each unit. As I'll probably do this opreation from time to time in the future, I'm looking for an effective and convenient way to do it. Using the IR ports and programs sending one unit to another would be very slow. Backup on card standard SD also would not be useful in my view (make a backup of each unit, copy on the PC, but what then?).
Someone on this forum would have hot suggestions to make?
Hello
Although you cannot select HOME directory as such, but you can select and copy some or all the elements in the HOME directory and copy only once on the SD card.
In the FOLDERS menu go to the HOME directory and select the first item and press ENTER, the element highlight will receive a number 1 next to it. In addition to the selection of items with the button ENTER will be number 2, 3 etc. According to him.
When you have selected all the items you want, COPY and select destination (SD). Unfortunately the built-in FILES does not select the subdirectories of the SD card, but I think that can SDFILER: SDFILER 1.3
Kind regards
Bart
-
How to read a combination of strings and data data file
Hello
I'm having the combination of strings and datas to read a data file. I'm reading the file name, the time constants and comments in four indicators separate string (lines for comments varies for different files). And read the data in a 2D array. How can I do this? Y at - it a function that can serch of special characters in the spreadsheet file, so I can locate exactly where I should start reading the specific data. Here's how the data file is displayed. Thank you very much.
Best,
Richard
filename.dat
14:59 12/31/2009
--------------------------------------------------
Sample = 2451
Frequency = 300, time of waiting = 2500
Temperature = 20
--------------------------------------------------
a few comments
a few comments
a few comments
a few comments
a few comments
--------------------------------------------------7.0000E + 2 1.5810E - 5
7.0050E + 2 1.5400E - 5
7.0100E + 2 1.5500E - 5
7.0150E + 2 1.5180E - 5....
Here's a (big) hint.
I would like to give you an excerpt, but I've not updated this machine yet. It's a pretty boring delimiter, if you know what's good for you, you start to use commas, tabs or simple spaces (my order of preference). It is far too easy start add or remove spaces and then you need to use more complex methods to obtain data from worksheet.
-
How to get the string (specified by row and column) of txt file with labview
Hello world
How to get the string (specified by row and column) of txt file with labview
THX
As far as I know, a text file has no column. Be more specific. Do you mean something like the 5th word on line 4, where the words are separated by a space, and lines are separated by a newline character? You can read from the spreadsheet String function and set the delimiter to a space. This will produce a 2D channels table. Then use the table to index and give the line number and column number.
-
How to trace all the functions and variables Movie Clip
How can I find all the functions and variables available Movie Clip? Thank you
Use the describeType() function.
-
How to convert a string and use a rope as a property?
I have an array in the following format:
{ownsCar: 'true', ownsBike: 'true', ownsHouse: 'true'}
{ownsCar: ownsBike 'false',: 'true', ownsHouse: 'true'}
{ownsCar: 'true', ownsBike: ownsHouse 'false',: 'true'}
etc ............
And I need to test against each element, for example
If...
myDataGrid ["myItem"] .ownsCar is object (myCheckbox) .label
... then
If...
myDataGrid ["myItem"] .ownsBike is object (myCheckbox) .label
... then
If...
myDataGrid ["myItem"] .ownsHouse is object (myCheckbox) .label
... then
But I have to build my application where the property (for example 'ownsCar', 'ownsBike', 'ownsHouse') is a variable such as:
If...
myDataGrid ["myItem"] .myProperty is object (myCheckbox) .label
... then
I would like to browse my table, by counting the number of items and then use each element as a property.
How to convert the string (for example, "ownsCar") in a property "myProperty"?
Thanks in advance
Chris
OK, if I got this right what you need to do is introspection.
The easiest way to do this would be:
for ( var propertyName:String in myObject ) { // Do what you need with this here: myObject[ propertyName ]; }
-
How to record the numbers and words in the same file
Hello:
I did a vi where I record the spectrum and its integration in different positions of a two-dimensional net. I save the information in two spreadsheet with the comand "write to file measure."
Now, I am recording the parameters initial positions, end X X and space between measurement points. I want a file with two columns that looks like:
Initial position X 1000
final position X 2000
space 100
But idon't know how to save the words and numbers in the same file.
As I have to perform several steps I want to automatically choose the name of the file (something like parameters_1, parameters_2...)
Thank you for your attention
Hi bitxor.
You can use all the functions of the WriteTotext file to write strings to a file.
Then you could set up WriteToMeasurementFile' to add new data to existing files (instead of overwrite or renaming)...
BTW. It is not a good idea to mix lvm files containing arbitrary spreadsheet data!
-
How to concatenate the string with a digital command?
Hello
How to concatenate the string with a digital command?
Thank you.
I think I forgot to add the semicolon, what you can do is, drag the CONCATENATE function and add semicolon.
-
Paint or Windows Photo Gallery
I try to combine a picture of my sister with a picture of a poem beside it, how to combine the two into a single photo?
If you have the poem recorded in an image format,
the following freeware can create a side by side
Panorama.(FWIW... it's always a good idea to create a system)
Restore point before installing software or updates)Download IrfanView
http://MajorGeeks.com/IrfanView_d4253.html
(filename: iview433_setup.exe)
(uncheck if you don't want Google Chrome)Download plug-ins too...
IrfanView plugins
http://MajorGeeks.com/IrfanView_PlugIns_d4908.html
(filename: irfanview_plugins_433_setup.exe)When the program is installed... read more...
Open IrfanView and go... Image / create the Image of the Panorama...
(this will open the screen to "Create a panorama image")On the screen to "Create a panorama image"... left click on the add images"" button.
(Displays the 'Open' screen. Now, drill down to the
the folder that contains your saved Photos of veterinarians.Now... click left (highlighted), the two images, you want to join.
(you can select more than one if you hold down your Ctrl key)
The two images highlight... left click on the button 'open '.
(Or... you can add the images one at a time... which is always easier)Now, go back to the screen "Create the panorama image.
and the file names of the selected pictures need to be in the
Field "Input Images.Now with the names of two files in 'Images of entry' field...
You can left click on the button 'create Image '.(the positions left and right of these images can be swapped in)
selection of a file name and using the "mount image" / "Move."
Images down"buttons...)Now you should see a display of the combined image.
Reach... File / save as...Choose a backup location / enter a file name / choose a format...
On the left, click on the button "Save..." -
How to divide the string in bb-cascades
I have a table of data as json
{"RegistrationResult":"Registered Success:Empid:157:TableName:COMPANY156"}
Now, how I want to split the show list view in qml and string as the follwing
Success stories
EmpID = 157
TableName = COMPANY156
Please tell the concept of cutting a string and show the result in qml
I can get the result of the follwing method:
{"RegistrationResult":["Registered Success","Empid":"157","TableName":"COMPANY156"]}
But I do not know how to split the string for a first... Help, please...
svmrajesh wrote:
,......
"Registered Success:Empid:157:TableName:COMPANY156"}
Take a look at QString docu
Just do something like
myString.split(':')
and you get a QStringList and this QStringList is directly mapped to a table in QML JavaScript
-
How to avoid the string * empty * on new pushScreen
Someone knows how to avoid the string * empty * coming on each press of the screen and instead * void * can I have my own channel at the same place... Please let me know its possible or not...
Thank you
read the API:
http://www.BlackBerry.com/developers/docs/4.7.0api/NET/rim/device/API/UI/component/ListField.html#se... (java.lang.String, int)
-
question about how to combine the two scripts.
HelloI have a sql script that can display a table (or view) all the information, it works fine. I call it validate_table.sql, as below:
command prompt
accept invites owner "Enter table owner:
accept invites from TABLE_NAME "Enter object (table/View...) "name:"
column owner format a10 column 'owner '.
column format a30 topic 'Object name' object_name
column object_type format a15 direction "Type of object".
Status format a10 column titled "Status".
in the heading of column created format a20 "created."
the LAST_DDL_TIME format a20, heading 'LAST_DDL_TIME.
Select
owner
object_name
object_type
status
, to_char (created, "DD_MON_YY hh24:mi:ss") created
LAST_DDL_TIME,
Of
DBA_OBJECTS
where
object_name = upper ('& table_name') and owner = upper ('& owner');
command promptprompt -- ----------------------------------------------------------------------- ---
Guest - table/view structure-
prompt -- ----------------------------------------------------------------------- ---
command prompt
describe and owner... & table table_namecommand prompt
prompt -- ----------------------------------------------------------------------- ---
guest - list assigned user/subsidies-
prompt -- ----------------------------------------------------------------------- ---
command prompt
set pagesize 50000
set linesize 10000
set verify off
Set feedback off
column lvl format A4 direction "Lvl".
proprietary format of columns A14
format column in table_name A29
A38 dealer column format
column privilege A10 format
SELECT 'Role' lvl, t.table_name, t.grantee, t.owner, t.privilege
OF dba_tab_privs t
WHERE t.grantee IN (SELECT FROM dba_roles role WHERE = role t.grantee) and t.table_name = upper ('& table_name') and t.owner = upper ('& owner')
UNION
SELECT 'User' lvl t.table_name, t.grantee, t.owner, t.privilege
OF dba_tab_privs t
WHERE t.grantee IN (SELECT username FROM dba_users WHERE username = t.grantee) and t.table_name = upper ('& table_name') and t.owner = upper ('& owner')
UNION
SELECT 'Pub' lvl, t.table_name, t.grantee, t.owner, t.privilege
OF dba_tab_privs t
WHERE t.grantee = 'PUBLIC' and t.table_name = upper ('& table_name') and t.owner = upper ('& owner')
ORDER BY 1, 2, 3;command prompt
prompt -- ----------------------------------------------------------------------- ---
guest - list of synonyms created.
prompt -- ----------------------------------------------------------------------- ---
command prompt
proprietary format of columns A15
synonym_name A20 column format
A15 table_owner column format
format column in table_name A40
DB_link A40 column formatSelect the owner, synonym_name, table_owner, table_name, DB_link from DBA_synonyms where Table_name = upper ('& table_name') stopped by the owner;
command promptprompt -- ----------------------------------------------------------------------- ---
guest - list index created-
prompt -- ----------------------------------------------------------------------- ---
command prompt
Select
table-name
index_name
index_type
nom_tablespace
status
of DBA_indexes
WHERE table_name = upper ('& table_name') and owner = upper ('& owner')
order of table_name, index_name;
command promptprompt -- ----------------------------------------------------------------------- ---
guest - list of constraints-
prompt -- ----------------------------------------------------------------------- ---
command prompt
format column in table_name A15
format of column cons_type A15
cons_name A20 column format
check_cons A25 column format
VALIDATED A20 column format
column status A10 format
last_change A20 column formatSelect
table-name
(case constraint_type
When 'P', then 'Primary Key '.
When 'R' then 'Foreign Key'
When 'C' then 'check '.
When 'U' then 'single '.
When 'o' then 'read only display '.
When 'V' then 'check the view. "
When 'H' then 'Hash expression. "
When 'F' then 'REF column.
When the of ' then 'additional logging.
cons_type end)
constraint_name cons_name
condition_de_recherche check_cons
status
VALID
last_change
of dba_constraints
where owner = upper ('& owner')
and table_name = upper ('& table_name')
order of cons_type;I have another script that allows to display the newly created tables (table, table names) in the last 24 hours.
SET SERVEROUTPUT ON;
DECLARE
CURSOR tmp_cur IS
SELECT master, object_name
FROM dba_objects
WHERE object_type in ('TABLE', 'SEE') and the owner not in ('SYS', 'SYSTEM', 'GENERAL', "XDB", "OUTLN", "SYSMAN") and last_ddl_time > sysdate - 1;
tmp_rec tmp_cur % ROWTYPE;
BEGIN
FOR tmp_rec IN tmp_cur LOOP
DBMS_OUTPUT. PUT_LINE)
tmp_rec. Owner | ' ' || tmp_rec.object_name);
END LOOP;
END;
/
The gap of the first script (validate_table.sql) is that it can only check table one by one by manual entry, then how can I combine these two scripts, to make a scipt that can check all newly created tables (not a table) in the last 24 hours?
I thank very you much in advance!
Hello
If you already know how to find the owner and all the tables created table_name recently. One thing you can do is to change all the WHERE clauses in validate_table.sql, so instead of things like
where object_name = upper ('& table_name') and owner = upper('&owner');
you say
WHERE (owner, object_name) IN
(
SELECT master, object_name
FROM dba_objects
WHERE object_type in ('TABLE', 'SEE')
AND owner NOT IN ('SYS', 'SYSTEM', 'GENERAL', "XDB", "OUTLN", "SYSMAN")
AND last_ddl_time > SYSDATE - 1
)
;
Here is another approach:
Validate_table. SQL is quite handy as it is. You may want to run this script for tables, even when you know that they are not new. Divide into 2 scripts: one called ask_and_describe_table.sql, which looks like this:
-Ask_and_Describe_Table.sql
accept invites owner "Enter table owner:
accept invites from TABLE_NAME "Enter object (table/View...) "name:"
-You can use any name path instead of d:\some_dir below:
@d:\some_dir\describe_table & owner, table_name
and the other one called Describe_Table.sql, which starts like this:
-Describe_Table.sql
DEFINE owner = & 1
DEFINE table_name = & 2
column owner format a10 column 'owner '.
...
and continues with the same exact content as validate_table.sql.
Now, to write another script (I'll call it Describe_Recent_Tables.sql):
-Describe_Recent_Tables.sql - create and run Describe_Many_Tables.sql
-Turn OFF the devices designed to help people to read the output:
SET ECHO OFF
SET FEEDBACK OFF
SET PAGESIZE 0
VERRIFY OFF SET
-Create a Describe_Many_Tables.sql:
COIL d:\some_dir\describe_many_tables.sql
SELECT ' @d:\some_dir\describe_table '
|| owner
|| ' '
|| object_name
FROM dba_objects
WHERE object_type in ('TABLE', 'SEE')
AND owner NOT IN ('SYS', 'SYSTEM', 'GENERAL', "XDB", "OUTLN", "SYSMAN")
AND last_ddl_time > SYSDATE - 1;
SPOOL OFF
-Features lighting designed to help people to read the output:
SET ECHO ON
SET FEEDBACK ON
SET PAGESIZE 50
SET VERRIFY ON
-Describe_Many_Tables.sql performance
@d:\some_dir\describe_many_tables
I guess that all of your tables have standard names (for example, start with a letter, no spaces in the name,...), which don't require quotation marks. If they could, then the same basic approach will work, but the details are a little messier.
When you want to see the information on a single table or view, no matter how old it is, driven
Ask_and_Describe_Table
or, if you do not need to question the owner of the table and the name, something like
Describe_Table SCOTT EMP
(You can find that you really need not Ask_and_Describe_Table.sql).
When you want to do this for all the tables created in the last 24 hours:
Describe_Recent_Tables
-
I'm trying to extract the strings and load them into a text-helpplease file
I'm trying to extract the strings and load them into a file text without space between them - see below
p_csa = ISCC M4 DP
where p_csa is a tring to load into a text file
Code:
SELECT SUBSTR (p_csa, 0, 0) INTO v_telco FROM DUAL;
SELECT SUBSTR (p_csa, 1, 4) INTO v_comp FROM DUAL;
SELECT SUBSTR (p_csa, 5.3) INTO v_csa_prefix FROM DUAL;
SELECT SUBSTR (p_csa, 8, 4) INTO v_csa_type FROM DUAL;
fileidinvoice: = UTL_FILE. FOPEN (c_data_location, filenameinvoice, 'W');
fileidlog: = UTL_FILE. FOPEN (c_data_location, filenamelog, 'W');
UTL_FILE. PUT_LINE)
fileidinvoice, v_telco | » '|| v_comp | "|" | v_csa_prefix: "| v_csa_type);
-the content of the file-
ISCC M4 DP
=====================
I want to remove the space between the chain above for the content of the file should look like this:
-the content of the file-
GCSIM4DPHello
976253 wrote:
I'm trying to extract the strings and load them into a file text without space between them - see belowp_csa = ISCC M4 DP
where p_csa is a tring to load into a text file
Code:
SELECT SUBSTR (p_csa, 0, 0) INTO v_telco FROM DUAL;
Is it always NULL?
SELECT SUBSTR (p_csa, 1, 4) INTO v_comp FROM DUAL;
You don't need the double table much in PL/SQL. You can simply say
v_comp := SUBSTR (p_csa, 1, 4);
Almost all integrated single-row functions work in PL/SQL. (NVL2 is the only one I know who does not work in PL/SQL).
SELECT SUBSTR (p_csa, 5.3) INTO v_csa_prefix FROM DUAL;
SELECT SUBSTR (p_csa, 8, 4) INTO v_csa_type FROM DUAL;fileidinvoice: = UTL_FILE. FOPEN (c_data_location, filenameinvoice, 'W');
fileidlog: = UTL_FILE. FOPEN (c_data_location, filenamelog, 'W');UTL_FILE. PUT_LINE)
fileidinvoice, v_telco | » '|| v_comp | "|" | v_csa_prefix: "| v_csa_type);What are you trying to do here? For example, what you're trying to put between c_comp and v_csa_prefix?
-the content of the file-
ISCC M4 DP
=====================
I want to remove the space between the chain above for the content of the file should look like this:-the content of the file-
GCSIM4DP
If you don't want space, then only concatenate all the spaces in the string before you write it and REPLACE allows you to delete all the spaces that have been copied from p_csa. For example:
UTL_FILE.PUT_LINE ( fileidinvoice , REPLACE ( v_telco || v_comp || v_csa_prefix || v_csa_type , ' ' ) );
I guess you need the v_comp of separate variables, the v_csa_prefix and the v_csa_type for something.
I hope that answers your question.
If this isn't the case, after a complete script that people can run to recreate the problem and test their ideas. Display the results you want (in other words, the contents of the file created).
Always say what version of Oracle you are using (for example, 11.2.0.3.0).
See the FAQ forum {message identifier: = 9360002}
Maybe you are looking for
-
How can I get an epub in ibooks with os10.11.2
How can I get an ePub in iBooks under OS El Capitan 10.11.2? I use the caliber. Ideally, I would like to go directly from caliber to iBooks. How? I had been using Marvin which was an absolutely wonderful reader. Update my review and now give it a 1 b
-
the taskbar is locked. No matter if I left-click or right-click on all I get is a ding?
The taskbar is locked. No matter if I left (incl. 2 times) one click or right click all that I get is a "ding".
-
(Redirected) Touch screen does not
I have a Dell place 10 Pro 5055 Tablet and keyboard. I have restored factory system, when I bought the Tablet from a friend who became a new and after completing the resetting of the touch screen no longer works. The touchscreen driver does not even
-
Get the content of the push message?
Try to get the content of the push message to display in the hub. In the example, it is on push.fileExtension (); I also had push.pushTime () to work, but when I try to push.content () it will fail to compile. Anyone know what I should be using here?
-
Re: P1102W - wireless Yosemite
Hello I tried to make my HP Laserjet P1102w printer to find the system wireless in my office at home, but he refuses... just keeps blinking blue eyes! I bought the printer in late fall 2014 and have never been able to set up the Wi - Fi printing thi