Creating a loop in which the results are listing to specific columns
Hello
I am creating a loop for my data of three columns after being calculated will be converted into three columns again, and then run through text files separated 10 data to add to the new file so that when the loop is complete I have 3 columns with the data of all the 10 files. I.E. I have three data points A, B, C of file 1 in the column 0,1,2 and then when I run the file 2, three new data points 2A, 2B, 2 c will go under their respective column. Right now it's just clear the permeable trial. Any help would be appreciated, I am very familiar with loops and I'm just getting started
If the files are named like that you have joined here:
Use a shift register to keep a number stored between iterations. Increment at each iteration.
Decimal string turns into a string. Concatenate strings allows you to add the path of file for each iteration.
Tags: NI Software
Similar Questions
-
Why all the results are duplicated when searching in my bookmarks library?
If I search for "Shell", for example, and then click on the 'name' column, most of the 'results' are duplicated. For example, "Perdido | On Shell"in the"shell"folder Parent is shown twice... same URL and al. I see that the or after the 01/02/2013 added bookmarks are NOT duplicated.
In my case, the bookmarks ARE actually duplicated. I checked by exporting and by analyzing the HTML code.
The whole "All bookmarks" hierarchy had somehow been copied into a random location of my favorite tree. This is why all bookmarks except most recent lie twice.
It looked like this:- All Bookmarks + Bookmarks Toolbar + Bookmarks Menu + MY_FOLDER_A + MY_FOLDER_B - MY_FOLDER_C MY_NESTED_FOLDER_A - All Bookmarks .... older state fully duplicated!!!
I deleted the nested copy of "All bookmarks" and it seems OK now.
I made this copy by mistake (which I highly doubt) or a bug caused.Good to hear that you are not using Firefox Sync (I use it). It would have been a Prime Minister candidate for causing a problem like this. (My bad favorites have been replicated to all of the computers connected with synchronization).
The copy of "All bookmarks" should have been made over the past months, but I couldn't determine exactly when. The copies have the same ADD_DATE and LAST_MODIFIED timestamp in the HTML file.
-
When I use the function "cut", the line of results more sharpness compared to the original files. For example, {A: "file.psd"-> cultures 4x6inch, 300 dpi-> B: "cropped file.psd} then the results are as described as a first step. What s the problem. (Photoshop CC, windows7)
I'm a Retoucher of photpfile have used the CS2 version for many years, and fuction 'Harvest' is an important and frequent tree tools myself. The result of the broke lines drive me annoying cause my feeling touch Sofete are all blown away. Please help me.
I think you're talking about using the crop tool? If you're cropping with a size and resolution that involves interpolation of the image, the crop tool will use your preference for the Interpolation of the Image. By default, bicubic is automatic, which can easily result in a sharp file. Change your preference (in general) to bicubic and you shouldn't see any sharpening.
I hope it works for your situation.
-
After the firefox search page appears and I launched a search, the results are back in very small print. If I have something to randomly select the page that opens is fine. The problem is only with the search results page.
-
How can I change the directory in which the analyses are placed on my computer?
How can I change the directory in which the analyses are placed on my computer?
GAS - 121 wrote:
How can I change the directory in which the analyses are placed on my computer?
Select HP Scan. Select Advanced settings. Select the Destination tab. Select the save location.
-
I have a form in which the text area can be developed to accept more text, but the text does not appear on the printed copy. How can I get the text to print?
Hi robinm6200,
Make sure that you have selected 'Document and annotations' under 'Comments and forms' when printing.
Kind regards
Nicos
-
How to: 8315793 - keyboard use to reduce the results area
Hello
I saw the request for implementation: "8315793 - keyboard use to reduce the results area" in section 2.1.1 but I can't find even in the list of shortcut keys.
What is the keyboard shortcut for this...?
Thanks, JürgenSee request "Hotkey to show/hide the grid result" = How has been implemented 2.1.1?
Have fun
K. -
* Original title: Photo Arrangement
I have a real problem with my understanding of photo.
I am producing a slideshow on my travels in Asia over the period 2008-2015.
All the photos are in individual folders by year. I also arranged their by the date.
My problem is: the photos are listed in descending order. I need them in increasing order - first photo of the last picture taken on a given date. Otherwise, I can't import individual files in my photoshow software because it displays the last picture taken 1.
I can't find a link or an option to have this way.
Does anyone know how to get the arranged in ascending order?
Sunday, July 5, 2015, 13:51:46 + 0000, boongsongum wrote:
I have a real problem with my understanding of photo.
I am producing a slideshow on my travels in Asia over the period 2008-2015.
All the photos are in individual folders by year. I also arranged their by the date.
My problem is: the photos are listed in descending order. I need them in increasing order - first photo of the last picture taken on a given date.
With photos or anything else:
You can sort the files in a folder by clicking on the header of the
field you want to sort, such as the Date.You can reverse the sort order, down to bottom-up,
or vice versa, by clicking on the header a second time. -
Creating conditional actions based on the results of the quiz
I have a quiz at the end of my captivate file and I try to get to show different based on images if you have passed the quiz, or if you failed. For example if you pass, I want to show an image of the tick, and if you do not have an image of the cross, on the results slide.
I tried to create this by implementing a conditional action. I put the two images on the slide and they hid. Then I have a conditional action value:
IF
cpQuizInfoPointsscored greater than or equal to 70ACTION
See the Image_tick
ON THE OTHER
See the Image_cross
When I play the quiz or image shows that I have success or failure (the quiz is set to a 70% pass - there are 10 questions, and all are worth 10 points)
I am new to Captivate so that any help would be appreciated!
Thank youEach action must be triggered by 'something', which is an event. You must attach to an event, I suspect that the event on enter score slide is one that suits. Select the slide of score, look in the properties panel, tab Actions, perform actions on enter, choose the action.
In addition, there is a difference between the system variable cpQuizInfoPointsscored and cpInfoPercentage. Personally, I would use the simpler cpQuizInfoPassFail:
IF cpQuizInfoPassFail is equal to 1
See the tick
On the other
See the cross
Download the tables in these two articles:
-
How to make a loop to display the results of each iteration?
I have a process inside a for loop and I want to display the results of 1, 2, 3 and 4 iterations all at once. Is it possible to do without creating 4 distinct for loops with a different constant for every N?
Thanks for the help.
-
Control the order in which the tools are displayed
Hello
I have developed a number of folder level JavaScripts. Each JavaScript displays a button to launch under the "additional tools".
I was hoping that someone could tell me how I can control the order in which these buttons will be displayed.
Buttons are displayed in alphabetical order according to the 'cLabel '? If they are listed according to the date and time the file was created or modified?
Is there an optional parameter to set the order?
Thank you
Linda
Hello
Actually, I figured out how to control the order in which appear the buttons below "additional tools".
There is an optional parameter for app.addToolButton called NPO: which can be used. I think that the lower the number used, the highest on the list, the button will appear. This kind of work. The list of buttons re - arrange themselves, but not exactly the way I wanted to.
Another thing I did was to rename the JavaScript files. I went before the first file name with a '1 '. The second file directly under the first I preceded it's name with a number '2' and so on. That seemed to do the trick...
All I had to do was probably to rename the JS files with the '1' and '13' numbers and buttons with appear correctly.
Thank you
Linda
-
I have the table names in the list box to check if the same tables has same columns. For example
listBox3 is the name of the EMPLOYEE table that my request must verify if the EMPLOYEE table has different columns.
This query working as for example: table Employee UserA and UserB has Employee table too. After comparing the time user Employee table I get the altar of statements about richTextBox1.
Depends on my EMPLOYEE table, I guess only to see the result as below;
ALTER table EMPLOYEE add DESCRIPTION VARCHAR2 (15);
ALTER table EMPLOYEE add CITY VARCHAR2 (10);
but only seeing:
ALTER table EMPLOYEE add DESCRIPTION VARCHAR2 (15);
foreach (string Items in listBox3.Items)
{
using (OracleCommand crtCommand = new OracleCommand("with src as(select src.table_name src_table_name, src.column_name src_col_name, src.data_type src_data_type, src.data_length src_data_len, src.data_precision src_data_precision, src.data_scale src_data_scale, src.nullable src_nullable,decode(T.Constraint_Type,'P', 'Primary Key','U','Unique','') as src_cons from all_tab_columns src left join (select Cc.Column_Name,Uc.Constraint_Type from user_cons_columns cc, user_constraints uc where Cc.Constraint_Name = Uc.Constraint_Name and Cc.Table_Name = Uc.Table_Name) t on T.Column_Name = Src.Column_Name where table_name = '" + Items + "' and owner='" + txtSrcUserID.Text + "'), tgt as(select tgt.table_name tgt_table_name, tgt.column_name tgt_col_name, tgt.data_type tgt_data_type, tgt.data_length tgt_data_len, tgt.data_precision tgt_data_precision, tgt.data_scale tgt_data_scale, tgt.nullable tgt_nullable, decode(T.Constraint_Type,'P', 'Primary Key','U','Unique','') as tgt_cons from all_tab_columns tgt left join (select Cc.Column_Name,Uc.Constraint_Type from user_cons_columns cc, user_constraints uc where Cc.Constraint_Name = Uc.Constraint_Name and Cc.Table_Name = Uc.Table_Name) t on T.Column_Name = tgt.Column_Name where table_name = '"+Items+"' and owner='" + txtDesUserID.Text + "'), col_details as(select src.src_table_name, nvl(tgt.tgt_table_name, first_value(tgt_table_name) over(order by tgt_table_name nulls last)) tgt_table_name, src.src_col_name, src.src_data_type, src.src_data_len, src.src_data_precision, src.src_data_scale, src.src_nullable,src_cons, tgt.tgt_col_name, tgt.tgt_data_type, tgt.tgt_data_len, tgt.tgt_data_precision, tgt.tgt_data_scale, tgt.tgt_nullable,tgt_cons from src full outer join tgt on (src.src_col_name = tgt.tgt_col_name))select * from (select case when tgt_data_type != src_data_type or tgt_data_len != src_data_len or tgt_data_precision != src_data_precision or tgt_data_scale != src_data_scale or tgt_nullable != src_nullable then 'alter table ' || tgt_table_name || ' modify ' || tgt_col_name || ' ' || src_data_type || ' ' || case when src_data_type in ('DATE') then null else case when src_data_type in ('VARCHAR', 'VARCHAR2') then ' (' ||nvl(to_char(src_data_len), ' ') || ') 'else decode(nvl(src_data_precision, -1), -1, null, nvl(to_char(src_data_precision), ' ') || ', ' || nvl(to_char(src_data_scale), ' ') || ')') end end || case when tgt_nullable = 'Y' then ' null ' else ' not null ' end || tgt_cons when tgt_col_name is null then 'alter table ' || tgt_table_name || ' add ' || src_col_name || ' ' || ' ' || ' ' || src_data_type || ' ' || case when src_data_type in ('DATE') then null else case when src_data_type in ('VARCHAR', 'VARCHAR2')then '('|| nvl(to_char(src_data_len), ' ') || ') ' else decode(nvl(src_data_precision, -1), -1, null, nvl(to_char(src_data_precision), ' ') || ', ' || nvl(to_char(src_data_scale), ' ') || ')')end end || tgt_cons when src_col_name is null then 'alter table '|| tgt_table_name ||' drop '||tgt_col_name end alter_statement from col_details) where alter_statement is not null", conn1))
{
var result = crtCommand.ExecuteScalar();
if (result != null)
{
richTextBox1.AppendText(Environment.NewLine);
richTextBox1.AppendText(result.ToString() + ";");
richTextBox1.AppendText(Environment.NewLine);
}
else
{
continue;
}
}
}This is the same query:
with the CBC as
(
Select src.table_name src_table_name, src.column_name src_col_name, src.data_type src_data_type, src.data_length src_data_len, src.data_precision src_data_precision, src.data_scale src_data_scale,
CBC. Nullable src_nullable, decode (T.Constraint_Type, 'P', 'Primary Key', 'U', 'Unique', ") as src_cons
all_tab_columns CBC
left join (select Cc.Column_Name, Uc.Constraint_Type
of user_cons_columns cc, uc user_constraints
where Cc.Constraint_Name = Uc.Constraint_Name
and Cc.Table_Name = Uc.Table_Name) t
on T.Column_Name = Src.Column_Name
where table_name = ' EMPLOYEE worker ' and owner = "ERHAN"
),
As TGT
(
Select tgt.table_name tgt_table_name, tgt.column_name tgt_col_name, tgt.data_type tgt_data_type, tgt.data_length tgt_data_len,
TGT.data_precision tgt_data_precision, tgt.data_scale tgt_data_scale, tgt.nullable tgt_nullable,
Decode (T.Constraint_Type, 'P', 'Primary Key', 'U', 'Unique', ") as tgt_cons
from all_tab_columns tgt
left join (select Cc.Column_Name, Uc.Constraint_Type
of user_cons_columns cc, uc user_constraints
where Cc.Constraint_Name = Uc.Constraint_Name
and Cc.Table_Name = Uc.Table_Name) t
on T.Column_Name = TGT. Column_Name
where table_name = 'EMPLOYEE' and owner = "SARIGUL"
),
col_details as
(
Select src.src_table_name, nvl (tgt.tgt_table_name, first_value (tgt_table_name) more (order of nulls last tgt_table_name)) tgt_table_name;
SRC.src_col_name, src.src_data_type, src.src_data_len, src.src_data_precision, src.src_data_scale, src.src_nullable, src_cons,
TGT.tgt_col_name, tgt.tgt_data_type, tgt.tgt_data_len, tgt.tgt_data_precision, tgt.tgt_data_scale, tgt.tgt_nullable, tgt_cons
the CBC
outer join full tgt
on)
SRC.src_col_name = tgt.tgt_col_name
)
)
Select *.
BeO
Select the case sensitive option
When tgt_data_type! = src_data_type or tgt_data_len! = src_data_len or tgt_data_precision! = src_data_precision or tgt_data_scale! = src_data_scale or tgt_nullable! = src_nullable
then 'alter table ' | tgt_table_name | 'Edit ' | tgt_col_name | ' ' || src_data_type | ' ' ||
-case when src_data_type null ('DATE') then
on the other
case
When src_data_type in ('VARCHAR', 'VARCHAR2')
then ' (' |) NVL (to_char (src_data_len), ' ') | ') '
otherwise decode (nvl (src_data_precision-1),-1, null, nvl (to_char (src_data_precision), ' ') |) ', ' || NVL (to_char (src_data_scale), ' ') | ')')
end
end
||
cases where tgt_nullable = 'Y' then 'null '.
of another end 'not null '.
|| tgt_cons
When tgt_col_name is null
then 'alter table ' | tgt_table_name | 'Add ' | src_col_name | ' ' || ' ' || ' ' || src_data_type | ' ' ||
-case when src_data_type null ('DATE') then
on the other
case
When src_data_type in ('VARCHAR', 'VARCHAR2')
then ' ('| nvl (to_char (src_data_len), ' ') |) ') '
otherwise decode (nvl (src_data_precision-1),-1, null, nvl (to_char (src_data_precision), ' ') |) ', ' || NVL (to_char (src_data_scale), ' ') | ')')
end
end
|| tgt_cons
When src_col_name is null
then 'alter table' | tgt_table_name: ' drop '. tgt_col_name
end alter_statement
of col_details
)
where alter_statement is not null;
After reading the post, I could not understand if you mean that the problem is with your query or the code displays the result on your UI.
The query returns a correct result when it is run on SQL Prompt?
If this is the case, then perhaps problem exists with your logic to assign variables. Maybe, you need a loop in the set of results rather that by assigning them once. Or maybe not, because I do not know what language you are using.
var result = crtCommand.ExecuteScalar(); if (result != null) { richTextBox1.AppendText(Environment.NewLine); richTextBox1.AppendText(result.ToString() + ";"); richTextBox1.AppendText(Environment.NewLine); } else { continue; }
If you say, there is problem with the query, it's a good place to ask your question, but you must provide the Table definitions that can be replicated.
If the query works fine, then maybe consider posting this question at an appropriate forum (c#).
-
Hi all
Following query works as expected
If the extra table is there to get the description belowwith explan as ( select 'A' step,'aaa' des from dual union all select 'B' step,'bbb' des from dual union all select 'C' step,'ccc' des from dual union all select 'D' step,'ddd' des from dual ), dependency as ( select 'A' ID,'C' chil_d, 'A'paren_t from dual union all select 'C' ID,'B' chil_d, 'C'paren_t from dual union all select 'D' ID,'A' chil_d, 'D'paren_t from dual ) SELECT COALESCE (d.id, p.step, c.step) AS step_out , c.des AS child , p.des AS parent FROM explan p LEFT OUTER JOIN dependency d ON d.paren_t = p.step LEFT OUTER JOIN explan c ON d.chil_d = c.step ORDER BY step_out ; Results ---------- S CHI PAR - --- --- A ccc aaa B bbb C bbb ccc D aaa ddd
How does question the changes with the introduction of ex_plan_des tabl. Expected results should be the samewith ex_plan as ( select 'A' step,'a1' des from dual union all select 'B' step,'b1' des from dual union all select 'C' step,'c1' des from dual union all select 'D' step,'d1' des from dual ), ex_plan_des as ( select 'a1' eid,'aaa' des from dual union all select 'b1' eid,'bbb' des from dual union all select 'c1' eid,'ccc' des from dual union all select 'd1' eid,'ddd' des from dual ), dependency as ( select 'A' ID,'C' chil_d, 'A'paren_t from dual union all select 'C' ID,'B' chil_d, 'C'paren_t from dual union all select 'D' ID,'A' chil_d, 'D'paren_t from dual )
See you soon
SexyThe easiest option is probably to join the tables ex_plan and ex_plan_des to return to the result you were using previously
SQL> ed Wrote file afiedt.buf 1 with ex_plan as ( 2 select 'A' step,'a1' des_id from dual union all 3 select 'B' step,'b1' des_id from dual union all 4 select 'C' step,'c1' des_id from dual union all 5 select 'D' step,'d1' des_id from dual 6 ), 7 ex_plan_des as ( 8 select 'a1' eid,'aaa' des from dual union all 9 select 'b1' eid,'bbb' des from dual union all 10 select 'c1' eid,'ccc' des from dual union all 11 select 'd1' eid,'ddd' des from dual 12 ), 13 dependency as ( 14 select 'A' ID,'C' chil_d, 'A'paren_t from dual union all 15 select 'C' ID,'B' chil_d, 'C'paren_t from dual union all 16 select 'D' ID,'A' chil_d, 'D'paren_t from dual 17 ), 18 explan2 as ( 19 select a.step, 20 b.des 21 from ex_plan a 22 join ex_plan_des b 23 on (a.des_id = b.eid) 24 ) 25 SELECT COALESCE (d.id, p.step, c.step) AS step_out 26 , c.des AS child 27 , p.des AS parent 28 FROM explan2 p 29 LEFT OUTER JOIN dependency d ON d.paren_t = p.step 30 LEFT OUTER JOIN explan2 c ON d.chil_d = c.step 31* ORDER BY step_out SQL> / S CHI PAR - --- --- A ccc aaa B bbb C bbb ccc D aaa ddd
Justin
-
For example, I have a folder with all of my music in there and I'm not all bands, called 'The' something to be under T - like, I want that The Flaming Lips listed under F.
Hi MarBurton,
Unfortunately, it is not possible to accomplish the task you want to perform.
You can search the Internet to third party software that can help you in this task.
Note: Using third-party software, including hardware drivers can cause serious problems that may prevent your computer from starting properly. Microsoft cannot guarantee that problems resulting from the use of third-party software can be solved. Software using third party is at your own risk.
-
Shift + click on office selection horizontally when the items are listed vertically.
So, when you place the icons, shortcuts, applications etc on the desktop and put in alphabetical order, for example, they are listed by column then row, so file 'A' is the upper left corner and the 'B' folder would be directly underneath.
Same goes for sort by modification date and all the rest, but if I copy a bunch of pictures on the desk and try to shift + click to select, they are selected in the rows, if rather than selecting pictures, I get a load of unwanted things. Is it possible to fix or is - this just an intrinsic oddity because of how files have horizontally against the bureau organization vertically?
Unfortunately it is not something that you can remedy. Believe me, I searched for years on Windows 7 and 8.
When necessary, I usually open the files in a folder instead window so that it behaves a little more predictable in list view.
Maybe you are looking for
-
What is the best solution when my external drive for Time Machine is full?
Hello I use the latest version of Mac OS X on my iMac 27 ". I use a drive outside of 3 TB G-Tech for Time Machine backup. Due to my recently many RAW photo images, I have less 8% left storage on my external hard drive, so I'm trying to figure out nex
-
HP Deskjet 845c on windows 7 64 bit
Hi evry bodyI can't install my printer on Windows 7.However, it is succfull installed on Vista.Help! Please, where can I find these drivers!
-
Satellite A30-514: no driver USB
Hello, first post here so be gentle please... Just re-formatted your laptop Satellite of friends as he managed to corrupt the windows, but we have not formatted to a non-original disc so no drivers etc - my problem is the USB driver. I'm using this l
-
Hello I have several channels in my PDM file. Now, I would like to take the data in the first string (time) and show them as the XAxis (these values are seconds as 0.1, 0.11, 0.12, 0.13.85.273. It is not difficult to show these on the XAxis using XAx
-
Server 2003 - SBS 2011 Migration of problem - remove replication server
Hello I'm trying to migrate a Server 2003 SBS 2011, now I know that this goes against the ideas a bit, but I spoke to microsoft and they inform me that it is possible to do. I primarily /forest adprep32.exe prep executing what it breaks down, I got t