refer to every 2nd symbol of a string? Programming Software Development by sentinel123 hi guys is there a way to refer to every 2nd symbol of a string? example: [CODE] mystring = '…bananasplit' [/CODE] i want to refer to every 2nd and every 3rd symbol of any string… symbol should be left as it is how can i refer to every 2nd / 3rd symbol (not knowing the string) Thanks… refer files outside a folder Programming Web Development by queenc hi i have some file in my ftp.now i am saving my file in a folder.please tell me how to refer the file outside the folder. eg require_once('../common/dblayer.php'); the above is to refer a file inside a folder.how do the same for outside a folder Re: refer files outside a folder Programming Web Development by queenc from dblayer.php i want to refer a file which is outside common. in our server all files are stored in public_html in that I HAVE MANY FILES AND FOLDERS.common is one among them.now from common i want to refer a file in public_html Re: refer files outside a folder Programming Web Development by cwarn23 [QUOTE]to refer a file[/QUOTE] That's the bit I don't … Re: refer files outside a folder Programming Web Development by queenc ya u r right.wat i am asking is public_html(xyz.php) - folder1 - common (dblayer.php) - folder3 my dblayer.php is inside common.i have file which are in public_html but they are not in any folder .in that case how will u refer a file in main directory Refer to button text via CSS Digital Media UI / UX Design by konczuras Hello! I was wondering if there's any way to refer to a button's text in css. More accurately, to define to classes for a button, one for the button body, and one for the text inside it. Like: [code=css].button{ //the settings of the button } .button: p { //text layout }[/code] Is there any method (eg. using spans, etc...)? Thanks in advance! Refer me a good C++ book Programming Software Development by Mridula J Hi All, Refer me a good C++ book, specially for Exceptional Handling. thanks mridula. refer to control Programming Software Development by romanoff hey sorry for my lame entry, but I have such a problem: I have like 30 textbox controls on form, and I want to refer to them by name, but I want to pass name as parameter I tried some stupid things but no result, any ideas? thanks in advance Refer to a particular post Community Center Meta DaniWeb by ddanbe Is there a way to refer to a previous post I gave in a thread, in a new answer to that same thread? Could posts in a thread, be numbered for instance? Re: Refer to a particular post Community Center Meta DaniWeb by deceptikon The date-time stamp on a post gives you a hard link to it that can then be pasted into another post. [For example](http://www.daniweb.com/community-center/daniweb-community-feedback/threads/471397/refer-to-a-particular-post#post2057253) how to refer the external file to my c# object Programming Software Development by karthi_selva hi, i am new to .net i need to refer the external file to my C# object ie i wrote … test { like that } in the second program i need to refer the first program functions. how is it possible. ( i m… How to Refer to the others Instance of an Object Programming Software Development by sing1006 after searching on the web, i know that Me keyword is use to Refer to the Current Instance of an Object, but if i want to Refer to the others Instance of an Object, what is the keyword that i need to use? Re: Which book i should refer Programming Software Development by peter_budo [QUOTE=muthu592;685670] You ask which book i refer? Java2 Complete Referance 5th Edition is the best in java.[/QUOTE] You may be right that it may be a good book to [B]refer[/B], but it may not be most excellent material to learn from. There are some differences... Re: How to Refer to the others Instance of an Object Programming Software Development by Mitja Bonca What do you mean by: >... but if i want to Refer to the others Instance of an Object? Can you show a simple code example? Re: How to Refer to the others Instance of an Object Programming Software Development by sing1006 … datagridview Me.DataGridView1.DataSource = dt ~~~ Me keyword is use to Refer to the Current Instance of an Object,for example,the… Re: How to Refer to the others Instance of an Object Programming Software Development by Reverend Jim Each object (control) that you create is given a unique name by default, such as TextBox1, TextBox2, etc. which you are free to change as long as it remains unique. You can see that name in the properties view. Just refer to the object by that name. Which book i should refer Programming Software Development by pardeep3dec Hi friends, I am new to JAVA but i know c/c++ very well. I want to learn java so please help me from where i can start it and which book i should refer. Re: Which book i should refer Programming Software Development by muthu592 First you will start with 1.Data Types 2.Declaration 3.Method & Variable 4.Class 5.Package 6.Inhiretance 7.Thread etc....... You ask which book i refer? Java2 Complete Referance 5th Edition is the best in java. Websites NOT to refer people to Community Center Geeks' Lounge by VernonDozier … it would be interesting to share BAD ones to never refer anyone to, so I'll start with the one above… `Which book i have to refer to learn basic fundementals of Vb.net 2005 Programming Software Development by prabu.r `Which book i have to refer to learn basic fundementals of Vb.net 2005? Kindly help me out error: The specified field 'TblCover.CoverType' could refer to more than one table li Programming Databases by JFunk … with this error: "The specified field 'TblCover.CoverType' could refer to more than one table listed in the FROM Clause… How to refer to the current value in XPath (XSLT)? Programming Software Development by uid1 … )"/>[/code] but I don't know how to refer to the 'current value'. All I know is that it… How can you refer variables from one class from another? Programming Software Development by pikalife So both classes are in the folder. How am I able to call variables in one class from another another class. For example, I ahve 2 classes, Class1, and Class2. So in Class1, I have "double a" and its value. How can i refer to this "double a" and its value in Class2? What code do I have to write? beginner in Java. How to read line and refer to it. Programming Software Development by Mr.M … want to read a text file line by line and refer to those lines, meaning the text file will have 1… Re: refer to every 2nd symbol of a string? Programming Software Development by Ene Uran Hint, generally you iterate over the string like this: [code]mystring = "abcdefghijklmnop" # newstring starts as an empty string (no char in it) newstring = "" count = 0 for c in mystring: # every third character is added to newstring if count % 3 == 0: #print( c ) # test # build up newstring … Re: refer to every 2nd symbol of a string? Programming Software Development by woooee This will change every 2nd letter to "x" and every 3rd letter to "y", but note that the 6th letter could become either "x" or "y" depending on the logic. [CODE]def change_chr(chr, x): if not x % 3: return "y" if not x % 2: return "x" return chr mystring = '… Re: refer to every 2nd symbol of a string? Programming Software Development by masterofpuppets hi, here's my version of this: [CODE]s = "bananasplit" newS = "" for e in range( 0, len( s ), 3 ): newS += s[ e:e + 3 ][ 0 ] if len( s[ e:e + 3 ] ) == 3: newS += "xy" elif len( s[ e : e + 3 ] ) == 2: newS += "x" print newS # -> >>> bxyaxysxyix >… Re: refer to every 2nd symbol of a string? Programming Software Development by Namibnat I couldn't resist having a go as well. The way I have done it makes it easy to change, say to every forth value and add three letters in. You also have no issue of over running the values: [CODE]string_thing , di, Fi, z = (raw_input("Enter a string thing\n-->"),[], [], 0) for a in range(len(string_thing)): di.append(… Re: refer to every 2nd symbol of a string? Programming Software Development by Namibnat I couldn't resist playing with it a little and thought it might make an interesting string module, to which a number of methods could be added. Something like this [CODE]class NthStrFiller: """change every 2nd symbol to 'x' and every 3rd symbol to 'y' - the first symbol should be left as it is. … Re: refer to every 2nd symbol of a string? Programming Software Development by sentinel123 Nice solutions, thanks you all... ... but I guess that's not exactly what I need. Probably I have to get more specific: [CODE] list_all = [ ['A', 'B', 'C', 'D'] ['E', 'F', 'G', 'H'] ['I', 'J', 'K', 'L'] ] mystring = 'bananasplit' for i in range(len(mystring)): letter = mystring[i] for j in range(3): list_change = list_all[j…