help with table 1 d research
Hey guys,.
IM extracting data from a database and store it as a cluster of tables 1 d and now I want to find an element in a table using the table. After completing the two individual tables I try and seek help search 1 d table comparing to a fourth value has already generated. I was hoping to use the index of table 1 d search to enter something at this level since the other table.
Table im trying to look for a currently a single element, the element im trying to find, but I get a - 1 return.
can you see what I'm doing wrong here? is there something I don't understand not all table 1 d search?
Thank you guys
A common problem here is white space (spaces, tabs, and newline characters, etc.). Try to use Whitespace Trim on the search string and the elements of the array before the search.
Tags: NI Software
Similar Questions
-
Hi, I'm trying to do something in flash, but since I'm a beginner I can't do it alone.
If the thing is, I'm trying to move the mouse and check how many pixels I "walked" by comparing the positions of each image, my idea did with tables, but I don't really know how to do it. Could someone help me? Or could make a simple .fla where I can learn?
Thank you!
I know that you'll probably have more questions, but maybe with a bit of play you will be able to start to discover things yourself. Here are some basics on the tables... To create a table, you must declare it...
var coordinatesArray = new Array();
and to add values to it, you can use the push() method, which will add what you indicate at the end of the table.
corrdinatesArray.push (something);
You should look to the top of the Array class in Flash AS2 support documents to see all the properties and methods that can be used with a table.
This is where it will get a little more complicated that you were intending probably because you said you wanted to store the coordinates. There are two contact information related to the position of the mouse, _xmouse and _ymouse. So if you want to store, it is probably best done as a whole.
Flash has a special class for the coordinates called the Point class. You should read about this as well because it includes methods and properties that can be useful for what you say you want to do, for example to determine the distance between two points.
So, to add a new set of points in the table, you can use...
coordinatesArray.push (new Point (_xmouse, _ymouse));
but to make use of the Point class, you must import it into the file.
Here's a bit of code that you must experiment and try to understand what is happening. Just open a new file and place this code in the timeline panel. Then run the file and start clicking anywhere around the stage... try to see what each line is right for you...
to import flash.geom.Point;
var coordinatesArray:Array = new Array();
this.onMouseDown = function() {}
coordinatesArray.push (new Point (_xmouse, _ymouse));
for (i = 0; i
trace ("x:" + coordinatesArray [i] .x + "y:" + coordinatesArray [i] there);
}
trace("");
} -
help with table in spreadsheet string
Hello
I need assistance to format my 2D in a string table.
I have a 2D DBL like this chart:
and I want it in a format string like this "0.12 0, 1 0.34, 2 0.11.
Line 0 pass 0 0 Col 1
Row line 1 Col 0 line 1 Col 1 line 2, column 0 line 2 Col 1... and so on Is this feasible with 'Table to a spreadsheet string' function or do I have to use a loop for format in this way?
Thank you
Ritesh
Here are 2 ways to do it without loop.
Ben64
EDIT: just realized, you want a comma to separate lines, and replace the tab with a comma in solution 1. (2 will not work in this case)
-
Hi all
I work with a 2D array that stores numerical values. Let me explain my problem with an example.
Consider a 2D table as shown in the picture (input.png) attached. elements of the 2nd row are already present
in the 1st row. How can I get a new 2d array in which the rows, which already are one subset of another
rank, are not present, that is, each line has unique elements only. (output.png)
Thank you very much for the help.
Concerning
Aveo
-
Hi all
Output:DECLARE TYPE ty_valid_prfx_sfx_list_nt IS TABLE OF VARCHAR2 (3); t_vld_prx_sfx_list ty_valid_prfx_sfx_list_nt := ty_valid_prfx_sfx_list_nt ('JR', 'SR', 'I', 'II', 'III', 'IV', 'V', 'RN', 'MD', 'MR', 'MS', 'DR', 'MRS', 'PHD', 'REV', 'ESQ') ; v_index NUMBER; v_curr_val VARCHAR2 (10); v_prev_val VARCHAR2 (10); v_next_val VARCHAR2 (10); BEGIN v_index := t_vld_prx_sfx_list.FIRST; WHILE v_index IS NOT NULL LOOP v_curr_val := t_vld_prx_sfx_list (v_index); v_prev_val := t_vld_prx_sfx_list.PRIOR (v_index); v_next_val := t_vld_prx_sfx_list.NEXT (v_index); DBMS_OUTPUT.put_line ('v_prev_val = ' || v_prev_val); DBMS_OUTPUT.put_line ('v_curr_val = ' || v_curr_val); DBMS_OUTPUT.put_line ('v_next_val = ' || v_prev_val); --DBMS_OUTPUT.put_line (t_vld_prx_sfx_list (v_index)); v_index := t_vld_prx_sfx_list.NEXT (v_index); END LOOP; END;
v_prev_val =
v_curr_val = JR
v_next_val =
v_prev_val = 1
v_curr_val = SR
v_next_val = 1
v_prev_val = 2
v_curr_val = I have
v_next_val = 2
v_prev_val = 3
v_curr_val = II
v_next_val = 3
v_prev_val = 4
v_curr_val = III
v_next_val = 4
v_prev_val = 5
v_curr_val = IV
v_next_val = 5
v_prev_val = 6
v_curr_val = V
v_next_val = 6
v_prev_val = 7
v_curr_val = RN
v_next_val = 7
v_prev_val = 8
v_curr_val = MD
v_next_val = 8
v_prev_val = 9
v_curr_val = MR
v_next_val = 9
v_prev_val = 10
v_curr_val = MS
v_next_val = 10
v_prev_val = 11
v_curr_val = DR
v_next_val = 11
v_prev_val = 12
v_curr_val = rsam
v_next_val = 12
v_prev_val = 13
v_curr_val = PhD.
v_next_val = 13
v_prev_val = 14
v_curr_val = REV
v_next_val = 14
v_prev_val = 15
v_curr_val = ESQ
v_next_val = 15
I'm getting an unexpected exit, please check and correct my program.
any help in this regard is highly appreciatedexpected output : 'JR' 'SR', 'I', 'II', 'III', 'IV', 'V', 'RN', 'MD', 'MR', 'MS', 'DR', 'MRS', 'PHD', 'REV', 'ESQ' fitst iteration : v_prev_val = v_curr_val = 'JR' v_next_val = 'SR', second iteration v_prev_val = 'JR' v_curr_val = 'SR' v_next_val ='I' Third iteration: v_prev_val = 'SR' v_curr_val = 'I' v_next_val ='II' . . . . .
Thank you
Prakash P
Published by: prakash on August 30, 2012 22:01An example:
SQL> declare 2 type TStringArray is table of varchar2(10); 3 array TStringArray := 4 new TStringArray( 'Tom', 'Commander', 'Harry', 'Sally' ); 5 begin 6 for i in 1..array.Count loop 7 DBMS_OUTPUT.put_line( '***************' ); 8 DBMS_OUTPUT.put_line( 'current='||array(i) ); 9 10 --//can also use: if array.Exists(i-1) then 11 if (i-1) >= 1 then 12 DBMS_OUTPUT.put_line( 'previous='||array(i-1) ); 13 end if; 14 15 --// can also use: if array.Exists(i+1) then 16 if (i+1) <= array.Count then 17 DBMS_OUTPUT.put_line( 'next='||array(i+1) ); 18 end if; 19 20 end loop; 21 end; 22 / *************** current=Tom next=Commander *************** current=Commander previous=Tom next=Harry *************** current=Harry previous=Commander next=Sally *************** current=Sally previous=Harry PL/SQL procedure successfully completed. SQL>
The Exist() method is also one that is usually used with associative arrays. Here is an example of associative array. Note that the table is sorted according to the index value. And the index value is a string - not a sequential integer.
SQL> declare 2 type TStringArray is table of varchar2(10) index by varchar2(20); 3 array TStringArray; 4 i varchar2(20); 5 begin 6 array('Intel Officer') := 'Tom'; 7 array('Mission Lead') := 'Commander'; 8 array('Radio in Head') := 'Harry'; 9 array('Military Officer') := 'Sally'; 10 11 i := array.First(); 12 while array.Exists(i) loop 13 DBMS_OUTPUT.put_line( '***************' ); 14 DBMS_OUTPUT.put_line( 'current: '||i||'='||array(i) ); 15 16 if array.Exists( array.Prior(i) ) then 17 DBMS_OUTPUT.put_line( 'prior: '|| array.Prior(i) ); 18 end if; 19 20 if array.Exists( array.Next(i) ) then 21 DBMS_OUTPUT.put_line( 'next: '|| array.Next(i) ); 22 end if; 23 24 i := array.Next(i); 25 end loop; 26 end; 27 / *************** current: Intel Officer=Tom next: Military Officer *************** current: Military Officer=Sally prior: Intel Officer next: Mission Lead *************** current: Mission Lead=Commander prior: Military Officer next: Radio in Head *************** current: Radio in Head=Harry prior: Mission Lead PL/SQL procedure successfully completed. SQL>
-
Hi, everyone, I am working on a form that has been previously done in Excel. I wanted to redo this in a pdf that is expandable to fill so that I can add the accessibiltiy information to the form. The first link is to the static pdf converted from Excel here:
https://Acrobat.com/#d=lIGyn * lpuWSQ-Qzkklml6w
The second link is what my brain tense has recreated form. I don't know there's probably a better way that I chose and I am open to any suggestion. But I can't get the table altogether.
In the first table, all Calc works properly, IE 11, 12, 13, 14 and 14 total is displayed in 15. but I need 17 to show the amount after discount (#16) is deducted. Looks like something simple would do the trick, as Subtotal - Discount. It does not work.
Column 19 should in total in the footer next to 21 line. This isn't. And the column 23 should total in space #24. I tried for hours to come both with the magic script to get this form to work but... now, I decided to crawl for help.
https://Acrobat.com/#d=mzovRUkKit7JnPVebPKgZw
Hello
Here is your form you: https://acrobat.com/#d=a06D-SL7SK58ZulXCKNSuw. Please note that all scripts are FormCalc, we use the sum function and the wildcard character. Any of these will work in JavaScript.
Take a look at this post on how to reference objects, in particular the deomonstration of Ctrl + click:
http://www.assuredynamics.com/index.php/2011/05/som-expressions/
Also with buttons with linear gradient I would change the behavior of click to reverse to the outline or None. It will be a little easier on the eyes. I changed the two buttons Add. I also think that you found problems of readability with the contrast between the background of the button and the black legend. I recommend reading this post, which presents an approach for primary buttons (like the lines to add) and the secondary buttons (as delete lines):
http://www.assuredynamics.com/index.php/2010/12/buttons/.
Maybe this discussion on the colors:
http://www.assuredynamics.com/index.php/2011/02/any-colour-as-long-as-its-black/
Hope that helps,
Niall
-
Help with table...
Hi all
I have a nice photo gallery that uses a table like this:
pictures = ["portraits/1.jpg", "" portraits/2. ""] jpg"," "portraits/3."» jpg"," "portraits/4.". " jpg"," "portraits/5."» jpg"," "portraits/6."» jpg"];
All is well in the world, but now I need to import the data in table form a .txt file that was created by php.
He writes the data exactly as it is above (without "photo ="). It creates the hard brackets, commas, lack the last comma
and inserts a hard surface and semi colon. (cool php to an image folder change dynamically...)
The string in the .txt file is:
["portraits/1.jpg", "" portraits/2. ""] jpg"," "portraits/3."» jpg"," "portraits/4.". " jpg"," "portraits/5."» jpg"," "portraits/6."» jpg"];
On the main timeline (need to add a lot of code thereafter make the gallery works) how can I set the variable
'photos' and then import the chain into the .txt file as its value?
I use Flash 8 and AS2 (but I guess that the player load 2 & 3 mixed)
Any help much appreciated
Best wishes
Tony
You won't be dressing the table up as if you intend to assimilate it to the table in code. All you have to do is get data into Flash using the LoadVars class, as a single string of file names with commas separating the names and then act on the string using the split method...
Portraits/1.jpg,portraits/2.jpg,portraits/3.jpg,portraits/4.jpg,portraits/5.jpg,portraits/ 6. jpg / / content of the file
Let's say the data string is set the variable Txtdata(3))
pictures = txtData.split(",");
Look in the documentation for AS2 LoadVars. It should be easy for you to implement.
-
I have a spreadsheet that has about 40 different sheets with each of them being a person that lists information about each of them and if they participated in a given event.
Is there a way to create a table that spans all of the leaves and can show participation based on the event? A bit like a portal into a database. My struggle is to be able to drag the formula down to automatic change sheets. I don't want to have to individually type an if then formula with offset to connect the number for each field.
You mention a portal on a database. I think you're on the right track. It is easier to gather information in a table that it is from the dozens of tables. Why not keep your data in a database table and 'extract' information for a person of this table.
If you could give more details one you are trying to do someone here will be able to give more specific suggestions.
SG
-
Need help with Table of contents
I ran a problem I can not quite understand. I suspect there is an easy solution, but it's beyond my limited skills and I'm looking for a little advice.
I have a newspaper (InDesign book) composed of articles. The articles of each have a title and author, to that which I hold in the table of contents. Easy so far. But, I'll try to include the company of the author as a sort of reference under the name of the author. This is particularly useful when there are multiple authors and/or several companies, which can be a little awkward if just appearing after names so here's what I'm trying to do:
John Doe, Joe Blow, c, b, and c Jane Doe
Consisting of a DOE, b Kangaroo Enterprises, Scorpion c electronic
(a, b, and c are all superscript.)
But the problem I have is that in the table of contents I want only to read "Joe, Blow, John Doe and Jane Doe" as authors and omit characters exhibiting as well as the name of the company. At first, I thought it would be easy to do, just to separate the unwanted parts of the paragraph style. But it does not work. When I separate the exponent, then none of this appears in my table of contents. How can I get around this so that TOC works the way you want?
I can't wait to read your suggestions.
No matter when you want something different in the table of contents what's in the body of the document, you have a manual work cut out for you.
In this case, I think you have two options, either modify the lists to remove ratings after the table of contents is generated (and each time it is updated) or link instead to non-printable tags that have exactly the text that you want to use (apply a unique style to those and join instead of the style assigned to the 'real' text.)
Print no tags can be anchored to the text as an anchored object, so they move with him, or you can configure a nonprinting layer to keep them.
-
I would like to take a number such as "12345" and turn it into a list or a table as "1,2,3,4,5". I use this to my hit counter. I am able to return a value from a database but would like each individual number corresponds to an image file.
Help, please
Is there a table?
You can easily a loop around the length of the string, and then extract that character to your file number.
... process loading image...
Dave @ Oyova software
-
I have always had problems with the use of tables and am getting bored... Probably a stupid question, but I'm just a guy IT website updates made with very little experience site... in any case I'm trying to change the layout of a Web page and need to insert an image. I'll ' split 'cell' and spit the cell to 2 columns, but when I try to resize two columns, it effects the other columns that lie beneath this text. " How to make this 'independent' column so that I can resize and they do not affect the columns below? Thank you.
Well, without getting into CSS, here's what you need to enter in the
Tags. update code is in red
Mission statement
The mission of the
Center of Washington
Catholic Foundation
inspired from the
Gospel of Jesus Christ.
The purpose of this
independent company
is to support
and improve
Philanthropy and
charitable activities
for the needy.
disadvantaged people
and faith-based
good causes
in the counties of
Benton, Chelan,
Douglas, Grant,
Kittitas, Klickitat,
and Yakima
in the center of Washington.
Code of the image here
Its certainly not the prettiest code, but Im guessing you don't know much about css. If this is the case and it does not work, maybe you should look into the learning of basic css positioning. Things would be much more logical then
-
Here's my problem... I want the table that I use to always be 650 (or 700, I haven't decided) pixels wide. What will happen is I'll stick tests students in the table. When I do that, I have to use the option "paste special" to keep students' formatting (as points out, italics, etc.). But when I do that, it resizes the table in the width of the actual test in the word, that spans the width to a very large extent. How can I get the text to fall in with my fixed table width?
Hmm, I just realized perhaps an allusion to the problem. DW goes keep paragraphs regular, forced to the width of the table. The part that is all waste is the bibliography at the end. But makes not much sense to me... I did not upgrade special-shaped, suspended the indentation or whatever it is, for the works cited. They are, in essence, just more short paragraphs of the book. Any ideas?
EDIT: OK guys... somehow the expected Word that I wrote a bibliography and changed the style of the one. I got it back to normal so that the segment and it worked. Sorry for the noise!
-
Help with table being slightly transparent background
Hello
I have a table where I just need see the image is the background of the entire page. Not enough that it is free from any background.
Is it possible that I can be a part of transparent color for this backgrounbd?
Thank you very much
Oz :-)
Transparency would be created in your graphics editing software (Fireworks, Photoshop, etc.), then insert the image as a background image. DW wouldn't sweat (if it's a real word).
Gary
-
Need help with table formatting in OBIEE
Hi all
We must show the amount of detail, goal and target by graphic region.
My requirement is to show retail Qty and objective bars vertical and % of the target as the region trend line.
Currently use bars stacked to amount of detail, goal and target as trend line.
Any suggestions for how measures in the vertical bar and % of the objective trend line would be grateful.
Kind regards
Rajkumar.
Published by: [email protected] on July 9, 2009 12:47Use line bar chart drop-down list type, select two columns for the axis Y and a metric unit for line. Select the type of graph in 2D or 3d. you will get the expected results.
Published by: Muriel Madan on July 9, 2009 18:20
-
looking for help with this query. can't do things.
4 tables.
doc_master
doc_folder_master
project_master
doc_relations
quick overview of tables
doc_master has all the documents in the files
doc_folder_master has all the names of folders (documents are in folders)
project_master has all the names of project
doc_relations has the relationship between records and documents by file ID and ID of Document.
try to get all the documents of the doc_master where the project name is '% provider %' I can do it without problem.
Like this...
Select * from document_master where proj_id IN
(select proj_id from project_master where status = 'A' and upper (proj_title) like '% PROVIDER %')
but now I must also name the folder in each document.
Try like this, but does not.
get the same name documents
Select doc_file_name, name, proj_title from)
Select * from
(select * from document_master where proj_id IN)
(select proj_id from project_master where status = 'A' and upper (proj_title) like '% PROVIDER %')
),
(select * from document_relations) b.
(select * from doc_folder_master) c,.
(select * from project_master) d
where a.doc_id = b.child_doc_id
and d.proj_id = a.proj_id
)
I apologize if I am missing any info. If you need more please let me know.
Published by: Jay on November 18, 2010 05:26So if I understand you
select a.doc_file_name, c.name, d.proj_title from document_master a, document_relations b, doc_folder_master c, project_master d where c.doc_folder_id = b.parent_doc_id and b.child_doc_id = a.doc_id and d.proj_id= a.proj_id and d.status='A' and upper(d.proj_title) like '%SUPPLIER%'
If every relationship exists, the query will work.
If not try an outer join to find the error asselect a.doc_file_name, c.name, d.proj_title from document_master a, document_relations b, doc_folder_master c, project_master d where c.doc_folder_id(+) = b.parent_doc_id and b.child_doc_id(+) = a.doc_id and d.proj_id(+) = a.proj_id
Maybe you are looking for
-
How the system of access with unknown password
So I recently got a computer from a friend of my father, and put on it was an administrator set. I tried to connect as only invited, but who has been disabled, I tried safe mode and it has always asked for the password. No one knows what is the passw
-
I'm buying a photosmart 5520 printer/scanner. The copy feature can expand this scanner and at what percentage? Thank you
-
Laptop freezes with HDD connected external
Hello My laptop (Acer 4736 G) freezes when I connect an external (1 TB consisting mainly in videos) HARD disk after the start. If I connect the external HARD disk before starting the system, it works fine, but when I try to remove the external HARD d
-
E1200 Cisco/Linksys router no warranty and I bought a month ago
Can someone give me an email address so I can explain my situation? Or a contact name? Bought last week 19/12/13 and called router using the connection, they said it was an old model (I guess that based on S/N) and had no guarantee. I can't control t
-
Not displaying thumbnails do not
Not only it did not work (none of my thousands of pictures are currently displaying thumbnails, making it very difficult to find anything), but this has messed up my custom appearance. I have not assumed that you know of a way to restore the settings