Forum Array

Encrypt And Decrypt Text File?

I save data from datagridview to text file . I also load the same data from text file into datagridview for edit and update the same thing to text file. Now i want to make my Drill layer header.txt in encrypted format to prevent anyone to open that file and modify out of program. They only can modify it through the program How can we do like this? My Drill Layer Header.txt file is like this T240C3.175F012S27H2000 T239C0.95F034S55H1000 T236C1.2F029S48H2000 [code].... This code can encryp the text file. But accrding to this code EncryptFile("c:\Drill Layer Header.txt", _ "c:\Drill Layer Header original1.txt", _ sSecretKey) It ask for input and output file. So it take data from Drill Layer Header then encrypt the save in drill layer header original.txt. I want it to take data from drill layer header and encrypt and save in same file.

View Answers

Very Similar Questions

Write To Text File - Output The Result To A Text File
What i would like is to output the result to a text file Code:

Read And Display Japanese Text From Text File
I posted a question regarding reading japanese text from a text file. Well, since I solved the problem, I thought I'd post my solution for the benefit of other people with the same problem. The plan was to make a script to read and display japanese text. I will use it for making a japanese proverb script and for a japanese language study script. Method : I wrote a simple kanji text file (saved with UTF-8 encoding) I wrote a simple PHP script to display the file contents (saved with UTF-8 encoding) I specified the content-type header for the HTML page : <meta http-equiv="Content-Type" content="text/html; charset=utf-8"> *** All files have the same encoding. *** UTF-8 supports japanese characters. and it works! this is my PHP (and HTML) script : <html> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8"> <title>PHP : Japanese Text File Read : Exercise 1</title> </head> <body> <?php $filename="japanese.txt"; //open file $fp = fopen($filename,'r'); //loop through each line in the file while($line=fgets($fp)) { //output current text file line print $line."<br>"; } //close file handle fclose($fp); ?> </body> </html> I know it's a very simple script, for testing purposes only. It displays the contents of the japanese text file line by line. The key was to save all files in the same encoding (I used UTF-8) and to specify the encoding / charset in the HTML header (<meta http-equiv="Content-Type" content="text/html; charset=utf-8">)

Read A Text File Then Find Keywords In That File
how do i make php read a text file then find keywords in that file and only display the results of what it found (i'm going to use wildcards with the keywords so i can sort data to different text files)that way it can only display the part of the text it found and write it to a new text file. i was wondering if anybody could give me an example of that or tell me what commands?

Links Files In Linux (file.txt For File.php)
Today I found some cstomer on the servers make a link for named it file.txt and link it to other customer php file. so that customer have the ability to show the other custoer file content when visiting the url because it is a text wile originally it is a php file. the php file was a config file, so now he know the database password , and because he is in the same server he can use that databse. the question , how to avoide this prolem in the future? notes , the SuExec is rnning and the open_basedir protection is enabled, but the problem still exists.

Text File Read / Write
im trying to make a poll that uses a text file for storing totals, and...well its not working. I have a text file with 5 values seperated by semicolons, like 1;2;3;4;5, and that file is poll1.txt. If I supply the script with an option, it will succesfuly read and show the contents of the file, but when I try to change one of the values and put it back, it fails. It writes to the file with loads of black squares and more semicolons than are in the $newresults variable. Follows is the incorrect code:

Read And Write To A Text File
San someone supply me with a PHP script to read and write to a text file on the server

Read And Write To Text File
I am trying to do a simple thing: read a line from a text file and write this line to another text file. The problem is: when I write the text into the new file there is an empty space between each characters. EG my original line is abcdef and the result is: a b c d e f  &#8299;. I tried and tried, searched google, but I am stuck... How can I read line n from one file and write it to another file exactly the same?

Read PDF And Write Into A TEXT File?
How can I read PDF and write into a TEXT file. library or source which is doing the same thing.

Read/Write Text File Manipulation
I have a script that writes a hit to a text file, but lately I have been noticing that the text file number is decreasing, instead of increasing or stay the same. Could some one be doing this and if so what is a good security measure to put into place to prevent this from occuring? I would prefer not to register the hits in a database; I would rather stick to a text file storage medium for this case.

Read/Write Text File At The Same Time?
I very new to php and all I am simply trying to do is read the contents of a text file and echo it out on the screen. I have tried many things to see what I am doing wrong but it just simply isnt working for me. I know the server I am using has php enabled as well because I have tried a simple echo and it works fine. This is the code I am currently using. <?php $file = fopen(file.txt", 'r'); [code]... I have a file.txt on the server I am using in the same directory as index.php, I feel like this should be working but I get no result!Alls I have in the text file is a statement that says "hello world".

Read / Write To Text File With Method?
I remember I used to have a code for a poll script that updated via an external text file. The contents of the text file was something like this: [code]... I know how to use the fopen(); fread(); fwrite(); functions, I just can not figure out how I changed (for example) the number 15 in that string. Was this something to do with an array?

Read Array From Text File Screen Scrape?
I have created a small scraper which saves content to html and links from the scrape in an array within a text file. I want to have the script run for each link that is in the text document.the text document looks like this: Array ( =>  id="cnn_switchEdition_intl" href="" title="CNN INTERNATIONAL"[1] [code]....

Read And Write Rich Text Files From TinyMCE?
A file uploader and editer in php using TinyMCE rich text editor.which all files/types can be edited in TinyMCE.a server file in to file edited in TinyMCe and what format should save.tinymce is not right editor, open source rich text editor.

Write Data From Text File Into Database?
i m trying to write data from txt file onto database but when i am executing my php code for it the empty record will be inserted in the database not the data written on txt file will be entered.plz help me out  <html> <?   $con=mysql_connect("localhost","root","root"); if (!$con)[code].....

Write To A Text File Once Only
I've got a script that writes to a text file:

Read Variables From A Text File.
this is a simple question, but it has such a major importance on how my script will turn out. I am trying to make a hub, in which website names are stored in text files (1 - unlimited numbers). I am trying to see if there is a way that PHP can read the variables stored in a text file. For example. in a text file I have the varable $site = ""; and in my php script it would open up the text file and then read the variable $x from there it would echo Site is is all of this just wishful thinking, or is there such a way to make this really exist.

Read A Text File Where Contents Are Going Over 2 Lines
I have this code to read the contents of a text file: PHP Code:

Deleting Lines From Top Of A Large Open Text File
I am splitting up one huge text file in several smaller files to prepare them for database processing. So far I tested it with files up to 100MB and everything works fine. Now here's my question: To optimize my script I would like to incrementally remove all lines form the original file which have already been copied to the smaller file. This would speed up reading the original file in each loop. Unfortunatelly I couldn't find a way to remove/delete lines from an open file. Of course I could read the whole file, delete the lines and then write it back. But for files bigger than 1 GB this doesn't seem to be a good idea....

External Text File
I have several thousand zip files, and I want to make a text file that has the links to the files. How would I be able to do that. Just to let you know about how many files I'm going to be working with, around 7,000+. It needs to work with html files also, I have 200+ .swf files I need to link also. I have never used php, or even looked at it until July, 05, make that I never heard of it until July, 05 . How would I set up the text file to make it work with php file? and How would I set up the php file to make it work with the text file? The text files will be in the same directory with the zip, swf, so I should be able to use relative links right? I think it is relative the code that has the <a href="">This File</a>.

I'm trying to find code that writes text on a .JPG file and saves it. I ran into lots of example of making labeled buttons on the fly for the browers to use. But I have a need to write a string over a photo sized white .jpg file and then save the output. Function like 'imagefttext' sound good but there is very little doc. Any direction would be appreciated. I spent some time at but I haven't found what I need.

Read Text File From Remote Server
I want to read a text file that resides in a remote http server. Is it possible?

Print A Text File With Command Button
I have my program complete except one thing!!! I want a command button to PRINT a file on my A: when I click it.PLEASE HELP so I can finally be finished with this program....I have tried tons of things, nothing works!Here is my code at present and it does NOTHING!!!!Code:Private Sub cmdPrintReceipt_Click() Open App.path & "Sales.txt" For Output As #1     Print #1,     Close #1    End SubThank you so much.NMP

How To Write Code To Import Text File To SQL Using
I wanted to import data from text files (2 fields) with space delimiters to an SQL 7.0 table. I am using VB as front end, how will I write code for this ?

How To Write Code To Import Text Files To SQL Using
I wanted to import data from text files (2 fields) with space delimiters to an SQL 7.0 table. I am using VB as front end, how will I write code for this ?

VS2008 Load And Parse A Text File And Extract Data Between Points On Any Given Line
I need to load and parse a text file and extract data between points on any given line. I can load the file, but it's the parsing that's giving me headaches. e.g. "Phoned Jim and arranged for John to attend site" First I need to search for "Phoned" because the line always starts with that, and then I need to extract "Jim and arranged for John" [Code]....

Flex :: Create A Text File Via JSON?
I'm using Flex 4 for building the communication to Arduino. There are three (3) main values coming from it (X,Y,Z). Here the Flex's code newText.text = magnetic.readUTFBytes(magnetic.bytesAvailable); d = JSON.decode(newText.text); MNx = d["x"]; MNy = d["y"]; MNz = d["z"]; Is there any example or codes (in Flex) that can I create and save these values as a TXT file (data.txt). These values as a structure should be like below. [ { "time":"1", [Code]....

Actionscript 3 :: Urlloader - Parse A Text File Loaded?
All I can find information on for the URLLoader object in Actionsript 3.0 involves loading XML files, which I don't want to do. I'm trying to load in a .txt file that I want to parse, line by line with each line being delimited by a comma. Anyone know a method of doing this or a place where I can find some information on how to do this?

Reporting With Text File (.txt)
I have a text file for the report in my .net application. Now I need to download this text file so that user can open it in a nice format. Also I need to print this text file in a nice format too. I could convert this text file to word or excel for the nice format. But I am wondering if I have other choices. I never use reportview control. Is that a good choice?

Input File Field To Input Text Field?
I don't even know if this is possible or not but is there a method you can take the value of the selected file in a input file field to a input text field?

How To Set Text In File (html Input Type)
how can we set text in html file uploader. is it possible using javascript?

Printing Text In A Text Box Using Command Button
I don't know how to insert a command button to print the text in a text box. Could someone please help me out? Thx heaps

Web Forms :: Set Text Box Height According To (table Column) Text
I have a multiline text box on page which has style "overflow: hidden" to hide the scroll bar. I want to set the vertical hight of that text box at runtime according to the string coming from table column. Is there any way of doing it? I have tried to put the text in array but its not working.... Dim myParas As Object myParas = Split(TextBox2.Text, vbNewLine) ln = UBound(myParas) + 1 TextBox2.Height = 22 * ln

Jquery :: Text Input Fields That Display Instruction (placeholder) Text
What's the best way to have a text input field that displays instructions of what to enter in that field in gray. When you focus on that input field, the gray instruction text disappears and your input text appears black. If you erase your input text and focus away from that input, then the instruction gray text reappears. I've tried implementing this with jQuery, but I get all kinds of weird issues with different browsers. Sometimes when you go back a screen, the instruction text becomes black and no longer disappears, issues like that. Is there a standard javascript library for this? I can't find any! the instruction text can't be an image because it has to be available in different languages depending on the browser's language preference.

Jquery :: Appearing Default Text In Text Fields
i made a tutorial for appearing default text in text fields.

JQuery :: Default Text On Empty Text Box
I have a email form text box that while it is empty I would like it to have the value "E-Mail" And when you click on it the text goes away. If someone clicks on it and doesn't enter text. on Blur I would like for it to return to having the default text.I have been trying a few things but nothing is working.

The Check Box As Default Is Unchecked And When Checked Validates A Text Area For Text
Im trying to nut out a check box validation The goal- the check box as default is unchecked and when checked validates a text area for text CODE:

HELP!! Making Text Bold In Text Box
i already posted this and i got help but the answers werent right. what i want to do is have a text box and three check boxes. one check box to make the text bold, one to make it italic and one to make it underlined. and when you enter text in the text box you can check the bold box and the text will turn bold right there. you dont check the box and then it turns to bold and from what you type from then on out is bold but instead it turns everything that is already in the box bold. some people told me to type if check is true then text1.fontbold. in when i do that it says invalid use of property. and i also tried text1.font.bold. please help me out!!

Read XML File And Write To A Array / File
Possible Duplicate: Read XML file and write to a php array/file I need to update the country list of my website and I want to automate the process. Country list can be found here [URL] I tried it this way [URL] (PHP XML Expat Parser) However, this didn't seem to work well as I was confused where to actually 'get' the data and print it to my own array for later use. Now I want to try it using XML DOM [URL] Just want to check with everyone, if I had a simple XML file to read, that contained a country code and country name as follows: <Entry> <Country_name>AFGHANISTAN</Country_name> <Code_element>AF</Code_element> </Entry> I want to read this file (DOM method), and then feed the data into a separate file/array of mine that will be accessed by my website. What PHP xml functions would YOU use/recommend to do this simple task?

PHP/IIS: File Read/Write OK, File Unlink Denied
I've got PHP running fine on IIS (OS: Server 2003, SP1; IIS: 6.0; PHP: 4.3.11). In PHP, the user uploads a file, which is then processed and the contents are inserted into a new file, created in PHP, onto the server. This bit works fine, the new file created by PHP is correctly stored. Later, once the user confirms the upload and PHP inserts the contents of the file into the DB, the code tries to remove the file created in PHP moments earlier, via the unlink() function. What I see on screen is the following: Permission denied I have made sure that the permissions for the Internet account that created (and is trying to delete) the file have full permissions over this particular folder and the files within it. But the user must have permission anyway, because they are able to create this file in the first place. I've looked at the permissions for the file in PHP, which read: 0666. So everthing *appears* ok to me; I can't see where the permission issue is coming from.

Implode - Read The Contents Of A File (servers) And Create A New File
I am trying to read the contents of a file (servers) and create a new file off of it with more information line by line. You will see the logic soon. I know how to do this via a script but not php. The end result is servers2 should have (ssh root@$count 'echo $user|passwd --stdin root' ; done). The variable $count is the list of servers in the (servers) file, so it will have the line above for each server name. Code:

Read A Video File Placed At Server - Video File's Name Includes Http Wrapper
I am using the following code but there appears to be warning with fseek and returns -1 instead of 0. $file = fopen("", "r") or exit("unable to open file"); fseek($file, -128, SEEK_END); The file gets opened definately but fseek doesn't work. Is there some other method to read video from server? Following is the error message Warning: filesize() [function.filesize]: stat failed for Warning: fseek() [function.fseek]: stream does not support seeking in

Warning: File_get_contents() [function.file-get-contents]: URL File-access Is Disabled In The Se...
i got an error message when i try to do file_get_contents() function Warning: file_get_contents()[function.file-get-contents]: URL file-access is disabled in the server configuration in /data/20/1/112/111/1927437/user/2100551/htdocs/cti-dev/admin/my path My site is https.

Output Current File Contents Without File Reading Functions?
I have an interesting task here.. is it possible to read the current file contents without file reading functions? (without file_get_contents, fopen etc.) so if i have <? echo 'hi'; // function to output this file code ?> the output of the php file should be same as the code (BUT without the file reading functions)

Read File Contents Of Network Share File
I'm looking for a way to read the file contents of a file located on a network share. I can use the IP Address of the share host and the share folder to get to the location but I don't know the correct command and syntax to do that file_get_contents? fopen? $text = fopen('//', 'r'); or something like that? UPDATE* I also cannot access the file through a browser window although I know the file is located in that exact directory...

Write To File Sometimes Deletes EVERYTHING, Leaving Empty File
I've used PHP to save raw data from Flash to an XML in the past. Load the XML into flash, update a couple variables, then send it to PHP to completely overwrite the old .xml file. This works great most of time, but sometimes after a few days, I'll check the .xml and it will be empty (0 bytes). Not sure if this is caused by a user who aborted during the writing process, or simultaneous connections, etc. Been thinking about doing a backup every day using CRON, but that's a mission and I'd like for it not to happen full stop. Any suggestions?

Perl Read File - Refresh When File Updated
I've looked all over for how to do this, and I've seen it done in WHM with Jquery and PHP, but how can I have a PHP or Perl script read a log file (logfile.log for example) on a webpage, and refresh as the log file is updated (while staying to the bottom of the log file)?

Read A File List In .torrent File
I want to extract file names listed in .torrent files. How to do this with php? I need this to get file extensions of those files.

Web Forms :: How To Link .cs(class File) With .aspx.cs File
i have created basic .aspx files .one is login.aspx and registration.aspx...Now in my solution explorer i also added class file i.e StudentInfo.cs and wrote some properties in my question is 1. i want to connect Studentinfo.cs class to my login.aspx.cs...So that i can call the methods in to do it?

File/Command To Change Number Of Open Files In Linux
I can't seem to remember, but what's that command or file used in Linux so that you can view/adjust the number of open files and others in the system?

Ffmpeg :: Cannot Open Shared Object File: No Such File Or Directory In Unknown On Line 0
Rapidly growing error logs showing the same message $ug-non-zts-20020429/' - /usr/local/lib/php/extensions/no-debug-non-zts-20020429//usr/local/lib/php/extensions/no-debug-non-zts-20020429/ cannot open shared object file: No such file or directory in Unknown on line 0 root@server [~]# ls /usr/local/lib/php/extensions/no-debug-non-zts-20020429 ./ ../* root@server [~]# ls /usr/local/lib/php/extensions/no-debug-non-zts-20020429 ./ ../* Using cpanel 11 / centos 4

How Can I Show Hidden File In Cpanel File Management Tool
i have a server with centos, i need to edit the hidden file .htaccess from the file management tool of cpanel, but the hidden files not shown, ow can i modify the setting and let the files shown in the file management tool of cpanel?, Where File.php Is Hosted On
Say I have 2 websites and they all use file.php which is located on I want to use the file like this:

File Upload With HttpWebRequest Doesn't Post The File
Here is my code to post the file. I use asp fileupload control to get the file stream. HttpWebRequest requestToSender = (HttpWebRequest)WebRequest.Create [URL] requestToSender.Method = "POST"; requestToSender.ContentType = "multipart/form-data"; requestToSender.KeepAlive = true; requestToSender.Credentials = System.Net.CredentialCache.DefaultCredentials; requestToSender.ContentLength = BtnUpload.PostedFile.ContentLength; BinaryReader binaryReader = new BinaryReader(BtnUpload.PostedFile.InputStream); byte[] binData = binaryReader.ReadBytes(BtnUpload.PostedFile.ContentLength); Stream requestStream = requestToSender.GetRequestStream(); requestStream.Write(binData, 0, binData.Length); requestStream.Close(); HttpWebResponse responseFromSender = (HttpWebResponse)requestToSender.GetResponse(); string fromSender = string.Empty; using (StreamReader responseReader = new StreamReader(responseFromSender.GetResponseStream())) { fromSender = responseReader.ReadToEnd(); } XMLString.Text = fromSender; In the page load of CrossPage.aspx i have the following code NameValueCollection postPageCollection = Request.Form; foreach (string name in postPageCollection.AllKeys) { Response.Write(name + " " + postPageCollection[name]); } HttpFileCollection postCollection = Request.Files; foreach (string name in postCollection.AllKeys) { HttpPostedFile aFile = postCollection[name]; aFile.SaveAs(Server.MapPath(".") + "/" + Path.GetFileName(aFile.FileName)); } string strxml = "sample"; Response.Clear(); Response.Write(strxml); I don't get the file in Request.Files. The byte array is created. What was wrong with my HttpWebRequest?

How To Create Files In Internet Temp Files
I need to create temp file on the clint side So, i read that files can be created on the folder of internet temp file. how I can do that?how I can get the path of the temp folder?I need VB code

Web Services - Writing A Exe File To Write Text File To Client-side?
I would like to write a file to the client-side in php. The problem with php is that it will only write in the server-side. I need help because i dont know how to do it. What I have: Whenever a client clicks a link to a page it will run the script that will write to a text file which contains a query results from a database known as a flatfile. But it is not possible for client-side in php. What I need: Whenever a client click the link, it will download a .exe file. In the .exe is the php script that will write a file to the client's hdd. After the .exe file is downloaded, it will automatically run and create the file on the path specified.

Read A Text File And Save It As X Files All Y Lines Long?
I'm trying to open a file, and save it to however many files, with $numlines lines each. Can anyone advise me the most "efficient way to do it" -reading it line by line with a counter, then saving the files into pieces. Because I will be dealing with 200k+ lines in a single text file, and I don't want to blow up my shared server, or get a "timeout" on my page.

Read And Add To An Array Then Write It To A Text File?
I'm setting up a polling system where voters can only vote once, based on their IP address.When the poll loads I want to open the text file with the list of blocked IPs to see if a voter has already voted. If not, they vote and then their IP should get added to the array and then the updated array get written back to the text file.Here's the code I have so far: <?php // Get information from file // $IPs = "IPs.txt"; [code]...

C# - Extract Images Link From Html Text String?
I want to extract all images link to so I can utilize all images freely. how to do in c# <div> <img src="/upload/Tom_Cruise-242x300.jpg" alt="Tom_Cruise-242x300.jpg" align="left" border="0" height="300" width="242"> sample text sample text sample text sample text <img src="" alt="Icon" align="left" border="0" height="100" width="100"> sample text sample text sample text sample text sample text sample text sample text sample text</div>

How To Edit A Text With Vba
how can I open a .txt file with vba and replace alll "," with ";" ?

Write Array Data From Database Into A Text File?
How do I write the data from an array to a text file? This is what I got so far: $db = mysql_connect("zzz","zzz","zzz") or die("Problem connecting"); mysql_select_db("zzz") or die("Problem selecting database"); $sql = "SELECT id, color, taken FROM cells;";[code]....

Read A Text File And Get Each Line Into An Array?
In php how can I read a text file and get each line into an array? I found this code which does it somewhat but looks for a = sign and I need to look for a new line <?PHP $file_handle = fopen("dictionary.txt", "rb"); while (!feof($file_handle) ) { $line_of_text = fgets($file_handle); $parts = explode('=', $line_of_text); print $parts[0] . $parts[1]. "<BR>"; } fclose($file_handle); ?>

How To Read A Text File Into An Array And Echo The Each Line?
how to read a text file into an array and echo the each line(each array element) by using file().

Homework -read A Text File Into Array Of Lines And Display It?
I have text file that looks like this: 1 1 1 1 1 2 3 5 4 4 5 5 I want to read this text file into array of lines and display it.

Read Words From Text File Into Associated Array Arranged Alphabetically?
There is this text file with around 80,000 words, all in lower case, in alphabetical order. How do I read these words into associated arrays? I mean, words starting with 'a' go into $words['a'], those with 'b' into $words['b'] and so on.. The array should become something like $words['a'][0], $words['a'][1], $words['a'][2],....,$words['b'][0], $words['b'][1], $words['b'][2],...

Read A Text File Contents Word By Word In An Array?
I have a text file with 8-10 words in each line with sequence no.and spaces. e.g 1)word 2)word 3)word 4)word and i want to read it in an one dimensional array only words not sequence no.

Comparing Text Against An Array Or An External File?
I have to implement a "bad words" filter on my website, which is a classifieds website. I have a big list of "bad words" but don't know which method is best to compare the user inputs to. In my case, a textarea inside a form, needs to be checked for "bad words". <form name="test" action="test.php" method="post"> Inside test.php I fetch the textarea, and need to compare it. My Q is, would you compare it to an external text-file with bad words, or an array with bad-words? The array I think is better, so I don't need any external functions etc, but I need to be sure..

How To Enable A Command Button When A Text Has Been Placed In A Textbox
hi allI am a noob and have come across a problem i cant find an answer to, hopefully someone hear will solve it for me I have a form with 2 buttons on, one to exit and one to save and 2 text boxesI have set the save button enable to false at start upI want the program to set the buttons enable to true is the user just type a single char in textbox1 before moving to textbox2 therefore makeing sure that the user at least types something before he can save it.cheersEnglishman

Insert Text With Command Button Into Textbox
How do I make a command Button Insert text into a textbox where the cursor currently is in that textbox?Thanks

Inserting Text In A Textbox After Hitting A Command Button
I am trying to find a way of inserting text into a textbox (wherever in the textbox the user has left the cursor) after the user has clicked a command button. The command button is intended to allow the user to insert a special character ie delta, degree symbol etc by pressing a command button which then puts the character into the textbox where the user had been typing.Please help!

Make Shortcut On Command Button-Make The Text Underlined
How to make Underline on text on command button??Exit??

User Defined Classes And Command Button Text
Hi All,I want to know what is the use of a user defined class in VB i.e why would I need to create a user defined class.Can the color of the text on a command button be changed?Thank you.Plzz reply as fast as possible.

Passing Text Box Values To Excel Spreadsheet On Cmd Button Press
I have a text box who's value is increased (or decreased depending on which of 2 cmd buttons is pressed, button 1 is the increase button button 2 is the decrease button). My problem is I don't know how to pass the value in the text box to an Excel spead sheet. I'm sure that this is a newbie question but I haven't found an answer to it anywhere yet. If the question requires any additional info I would be glad to provide it, but I have a feeling that it is too simple of a question to need much info. Thank You  

Align Text On Standard Command Button
I had found this code awhile ago, I think from this site, and I never used it until now. I am trying to left or right align some text on a standard command button. I havve searched the forums extensively and couldn't find a solution on this. Does anyone have an idea how to do this?Thanks.VB Code:Option Explicit Public Const GWL_STYLE As Long = (-16) 'these are not true Windows button stylesPublic Const BS_ALIGN_CENTRELEFT As Long = &H100Public Const BS_ALIGN_CENTRERIGHT As Long = &H200Public Const BS_ALIGN_CENTRE As Long = &H300Public Const BS_ALIGN_TOPMIDDLE As Long = &H400Public Const BS_ALIGN_TOPLEFT As Long = &H500Public Const BS_ALIGN_TOPRIGHT As Long = &H600Public Const BS_ALIGN_BOTTOMMIDDLE As Long = &H800Public Const BS_ALIGN_BOTTOMLEFT As Long = &H900Public Const BS_ALIGN_BOTTOMRIGHT As Long = &HA00 Public Declare Function GetWindowLong Lib "user32" Alias "GetWindowLongA" (ByVal hwnd As Long, ByVal nIndex As Long) As Long   Public Declare Function SetWindowLong Lib "user32" Alias "SetWindowLongA" (ByVal hwnd As Long, ByVal nIndex As Long, _ByVal dwNewLong As Long) As Long Public Type ControlLayoutData   totalRows As Long   totalColumns As Long   rowPadding As Long   colPadding As Long   ctlHeight  As Long   ctlWidth As Long   pgridTop As Long   pgridLeft As LongEnd Type Public style As Long

HTC Desire :: Sim - Phone Contacts Showing When Look Up Contacts To Text
Anyone know how I can stop my Sim contacts showing up when I go to text someone. I am also getting my phone contacts also so its double contacts I am getting when I try to text. Just want one or the other. Not both.

Link Two Text Boxes Like In Quark?
link two text boxes in photoshop like you do in quark?

Read And Print The Contents A Text File Which Resides In A Remote Location Via PHP?
Is it possible to read and print the contents a text file which resides in a remote location via PHP? For instance, this is how I am currently reading a text file that is my local server (and it works great, but unfortunately the text file my client will need to have read is outputted to a remote location): <?php $currentSong = "/home/medusa/sun/accounts/username/public_html/ticker/current-song.txt"; $fh = fopen($currentSong, 'r'); $theData = fread($fh, filesize($currentSong)); fclose($fh); echo "<p>".$theData."</p>"; ?>

Clicking On A Command Button To Display Something In A Text Box
Back to VB basics here, but as usual I'm stuck on something simple!If Index = 0 Then txtWhatever.Text = "Newcastle" And txtWhatever.BackColor = &HFFC0C0The Bac Color absolutely refuses to change, I can take out the code from And onwards which does display 'Whatever' in the box but I can't get it to change the colour as well. Any ideas anyone? Thanks

Import/Parse Text File Into Excel Columns Using Command Button &amp; VBA
I am attempting to import and parse a text file into an excel spreadsheet. The user starts the import with a command button. The user can select the file to import and then the information is placed into Excel columns. However, I receive an error message on my QueryTable.Add command. I cannot understand why; the QueryTable.Add command returns a QueryTable, which is the object I am setting it to. The run-time error indicates "Run-time error '13': Type mismatch." The code follows, with the line causing the run-time error in purple:Private Sub btnImportCOA_Click()'Import USPS ACS file    'Variable declaration        'CONSTANTS    Const ForReading = 1 'Open text file as Read Only    Const FirstCol = "D" 'First column available to be used for imported records        Dim FileToOpen 'Name of file to import    Dim ValidFile As Boolean 'Flag indicating if user chose a valid file    Dim fs 'File System Object    Dim ts 'Text Stream Object        Dim strHeader As String 'Header record from import file        Dim FirstRow As Integer 'First row available to be used for imported records        FirstRow = 5                Dim qtCOA As QueryTable 'Query table built from data returned from import file         'Prompt user for choose file to import    FileToOpen = Application.GetOpenFilename(, , "Choose COA file to import...", , False)        'Verify user did not click 'Cancel' button    If FileToOpen = False Then 'user clicked 'Cancel' button        Exit Sub 'no file to process    End If            'Sequential access to import file    Set fs = CreateObject("Scripting.FileSystemObject")    Set ts = fs.OpenTextFile(FileToOpen, ForReading, False)             'Read header record from file    strHeader = ts.ReadLine        'Close file    ts.Close        'Determine first available open cell to append records to end of recordset    While Worksheets("COA").Range(FirstCol & FirstRow).Value <> ""        FirstRow = FirstRow + 1    Wend       'Parse file into records    Set shCOA = Workbooks(1).Worksheets(1)          Set qtCOA = shCOA.QueryTables.Add(Connection:="TEXT;" & FileToOpen, Destination:=shCOA.Cells(FirstCol, FirstRow))        With qtCOA        .TextFileParseType = xlFixedWidth        'Length of each field from import file        .TextFileColumnWidths = Array(1, 8, 7, 16, 6, 1, 1, 3, 47, 1, 28, 60, 35, 1, 28, 60, 43, 66, 2, 4, 8, 1)        'Column data type for each field of import file        .TextFileColumnDataTypes = _            Array(xlGeneralFormat, xlGeneralFormat, xlGeneralFormat, xlGeneralFormat, xlGeneralFormat, _            xlGeneralFormat, xlGeneralFormat, xlGeneralFormat, xlGeneralFormat, xlGeneralFormat, xlGeneralFormat, _            xlGeneralFormat, xlGeneralFormat, xlGeneralFormat, xlGeneralFormat, xlGeneralFormat, xlGeneralFormat, _            xlGeneralFormat, xlGeneralFormat, xlGeneralFormat, xlGeneralFormat, xlGeneralFormat)        .Refresh    End With

Picture With A Text In A Command Button
I want to put a picture with a text in a command button. Where or how can I do that? I'm MeShto. (One of the world.)Select * from vbcity where Member = 'MeShto';

Picture Left Of The Command Button Text
Hi!Is there any way that picture on a command button is placed on the left of the text, not above the text?Thanks,Bostjan

RichTextBox - Paste Formatted Text, Not Control Code!
Hello,I've been at this for an hour or so now... What i'm trying to do is the following...I have:Quote:MyRTB < - Rich Text BoxMyString < - normal string variableDatabase Field <-MySQL TEXT type fieldVERRRRY simple... I'm first storing MyRTB.TextRTF in the Database Field. Next, i retrieve that database field, put it into MyString , and then put that string into my rich text box using this code:VB Code:MyRTB.TextRTF = MyString Again, very simple... but this isn't working!!!! i'm becoming quite frustrated. Everyone i talk to tells me that exact code works for them.... That exact code does not work for me... what happens is the control code is put into the text box instead!So the string that should appear like this: Formatted Text Is pasted into the text box as this:Quote:tf1ansiansicpg1252deff0deflang1033{fonttbl{f0fnilfcharset0 MS Sans Serif;}}{colortbl ;ed255green0lue0;}viewkind4uc1pardcf1ulf0fs17 Formatted Textcf0ulnone0 par }Now, like i said, this is becoming very frustrating... by all means, it should be working!!! it seems like for some reason, storing it in the database in between is messing it up... i've tried using MyRTB.SelRTF = MyString, MyRTB.Text = MyString, and MyRTB = MyString ... nothing is working... however, when i paste the text to the clipboard, and put it back in a textbox with MyRTB.SelRTF = Clipboard.GetText() , it pastes in formatted just nicely...So, that is why i'm led to believe it's the database that's making things mess up... any ideas? i've tried cstr() the variable already don't worry...

Code To Write Text Isn't Right
Hi. I am currently developing a little program for myself that takes the HTML output of a certain program, and converts it into a PHP file. I think all of my coding is right, but maybe one of you can hep me.What happens is, when I go to the folder where all the new php files should be, there is just one, and it's PHP code is correct for it's file name, but it is always the last one in the list of files.Like filea.html has code "a", fileb.html has code "b", and filec.html has code "c". It should output three files (filea.php, fileb.php, and filec.php) with their respective code, but it only outputs filec.php with code "c".Here is ALL of my code:Code:Option ExplicitDim Web As New SHDocVw.InternetExplorerDim Doc As New MSHTML.HTMLDocumentDim e As MSHTML.HTMLGenericElementDim a As MSHTML.HTMLAnchorElementDim img As MSHTML.HTMLImgDim arr() As StringDim strHTML As StringDim strPHP As StringDim strPath As StringDim strPath2 As StringDim strFile As StringDim strFilePHP As StringDim arrFile$()Dim i As IntegerPrivate Sub Command1_Click() Call JustDoItEnd SubPrivate Sub Form_Load() strPath = "C:Program Files.400 Software StudiosTotal Pro BasketballsavesEFBA2Website" WebBrowser1.navigate strPath & "blank.html" strPath2 = "C:PHPNUKE 7.0htmlmodulesTPB_Files" File1.Path = strPath Call SortEnd SubPrivate Sub WebBrowser1_DocumentComplete(ByVal pDisp As Object, URL As Variant) If Not Right(WebBrowser1.LocationURL, 10) = "blank.html" Then arrFile$ = Split(WebBrowser1.LocationURL, "/") strFile = arrFile$(UBound(arrFile$)) If Right(WebBrowser1.LocationURL, 12) = "_Roster.html" Then Call Roster ElseIf Right(WebBrowser1.LocationURL, 15) = "_financial.html" Then Call Financial End If End IfEnd SubPrivate Sub Roster() Set Doc = WebBrowser1.document strHTML = Replace(Doc.body.innerHTML, Chr(34), "" & Chr(34)) strHTML = Replace(strHTML, "Player Ratings", "Player Abilities") strHTML = Replace(strHTML, "player_ratings", "player_abilities") strHTML = Replace(strHTML, "</TABLE></DIV></TABLE>", "</TABLE></DIV>") strPHP = "<?php" & vbNewLine & vbNewLine & _ "echo " & Chr(34) & _ strHTML & _ Chr(34) & ";" & vbNewLine & vbNewLine & _ "?>" strFile = Replace(strFile, ".html", ".php") Open strPath2 & strFile For Output As #1 Print #1, strPHP Close #1 RichTextBox1.Text = strPHPEnd SubPrivate Sub Financial() Set Doc = WebBrowser1.document strHTML = Replace(Doc.body.innerHTML, Chr(34), "" & Chr(34)) strHTML = Replace(strHTML, "<BR><A name=ticket_pricing>", "<BR><br><br><br><br><A name=ticket_pricing>") strPHP = "<?php" & vbNewLine & vbNewLine & _ "echo " & Chr(34) & _ strHTML & _ Chr(34) & ";" & vbNewLine & vbNewLine & _ "?>" strFile = Replace(strFile, ".html", ".php") Open strPath2 & strFile For Output As #1 Print #1, strPHP Close #1 RichTextBox1.Text = strPHPEnd SubPrivate Sub Sort() For i = 0 To File1.ListCount - 1 If Right(File1.List(i), 12) = "_Roster.html" Then List2.AddItem File1.List(i) ElseIf Right(File1.List(i), 15) = "_financial.html" Then List3.AddItem File1.List(i) Else List1.AddItem File1.List(i) End If Next iEnd SubPrivate Sub JustDoIt() 'Do Roster For i = 0 To List2.ListCount - 1 strFile = List2.List(i) WebBrowser1.navigate strPath & List2.List(i) Next i 'Do Financials For i = 0 To List3.ListCount - 1 strFile = List3.List(i) WebBrowser1.navigate strPath & List3.List(i) Next i 'Do OthersEnd SubLet me know if any of you experts see some part of my code that causes this.Thanks, Chris

Command Button Text
I have looked for the answer to this question and have yet to find it. I need to change the text on my command button to a different color. The process I have gone through is I have selected the button set the style to 1-graphical and then went to my color pallette and change the text color but as soon as I run the program that dang thing changes back to default color. Please help and you can contact me by email or on here. After that I have one more question but I will not be like most newbies. I will search out my answer first. Thank you and I await your answer. Lord Zion

Text Box And Command Button
I have a text box which permits user to enter number upto 9 digits. The first 2 digits are always 25. So I am looking for a way to show the first 2 digits as 25 proteceted the rest are user enterable. I do not want to split the text box into 2 text box. Is there a way?How to make a Fancy Command Button in VB Form?

Command Button/Text Box
ok.once i figured out that the last code i got wouldnt work because im trying to make a html creator and the files always arent going to be the same.can you help me put text anywhere without this.VB Code:Private Sub Command1_Click()      Dim How_Many_Spaces As Long          How_Many_Spaces = 10      Text1.Text = Space(How_Many_Spaces) & "Hey" End Sub

Command Button/Text Box
how do i make a command button pick from mutliple points in a textbox to insert a word.

Need Help With Text On Command Button
I'm new to this and really need help for schoolHow can I change the color of the text on a command button without using a icon or picture. Can't set the forground color and it stay. I do a alt/v/l and can change the color until I run it then it goes back to default.Thankssgtmajor

Text In A Command Button
Good afternoon,I have a small program that I want to change. The program reads an INI file, then opens a text file when the command button is selected. How can I read the index to put the name of the file on the button.ex.[file location]info=c:info.docreadme=c:eadme.docI want the info or readme to show up on my command button or whatever I use for the location header.Mike

Command Button That Can Pop Up A Text Box
Hi,Can anyone tell me what I should add in VB coding to make sure a command button that can pop up a text box for user to fill in their comment?Thanks..

Put Cursor In Text Box From Command Button
Good Morning Forum.I have a form with two text boxes and one command button. The user enter text in both of the text boxes and then clicks on the command button to save the text to a disk file. What I need to do is move the cursor to the first text box after the button is clicked. How is the best way to do this?Thanks-Sweidman

Caption && Text On Command Button?
Hello everyone,can anyone give me some idea how to display a text as well as icon on a command button. I have seen such one being done in delphi, but, am wondering whether we can do it in VB. I tried but, in vain.Thanks in advance,K Lloyd

Command Button Text Colour
How do you change the colour of the text on a command button?I tried writing vbWindowText = vbRed in code, but it said Assignment not permitted.The properties dont have ForeColor, although the Help says it is possible. Also, i am not sure what MaskColor does, so maybe this is the answer, although it didnt seem to effect anything when I chose a MaskColor.Any Help would be appreciated.

RegEx To Parse Valid Paths From A Text File?
I'm attempting to parse a text file containing several Windows paths; I'd like to use regular expressions if possible, and I'm using VB.NET.The file is formatted somewhat like so: M - Network Mode C:ClientSystem - System Path C:ClientProducts - Product Path [code].....

AutoSum Text Box Values In A Separate Text Box?
I'm developing an ASP.NET web page, which includes three text boxes for users to enter customer revenues. I want to code a formula such that the value in the Total Revenue text box (txtRev_Expr_Tot) equals the sum of values entered in the Current Revenue (txtRev_Expr_Curr) and Incremental Revenue (txtRev_Expr_Incr) text boxes. I also want the Total box to update in OnLostFocus events from the other two boxes.

Import Csv Text Into A DataSet In-memory Without Having A Physical File To Reference?
How can one import csv text into a DataSet in-memory without having a physical file to reference?I know that one can do this with OleDb, where OleDb can open a connection using a path to a physical CSV file.However, in my case, I do not have a physical file path to access with OleDb-- I just have the CSV data, in-memory.I know that I can loop through the data; but, that is ugly given the CVS escaping rules to handle commas and double-quotes inside cells.What is the clean, in-memory, built-in, dynamic way to do this?

JQuery :: Plugin For Displaying Default Text In A Text Field?
When I hit the page, the text box says "Search...", in gray font.Then, I click the textbox. Then, the "search..." disappears. And I can type.

JQuery :: Use One Input Text Field To Drive Two Hidden Input Text Fields?
I have a problem created by my complete [rookie] status – only second time venturing into jQuery. I created a simple shopping cart using php and the PayPal buttons (1: buy now, 2: add to cart). The php back end does it great, it generates the table and the buttons and everything works just like it’s supposed to; Except, I forgot to add sizes. So I found out what I need to add, and I realize that the way the buttons work, I will have two different text boxes for size. Not very visually appealing, and since I’m not submitting this to the server before it goes to PayPal to pay, I cannot modify it with php the way I normally would. jQuery / javascript are my only hope of making this work. What I want to do:Have a single textbox where [size] is entered by the user. Copy the value from the [correct] text box to the Value=�� section of the now hidden field in the PayPal form That way, no matter whether they [BUY NOW] or [ADD to CART] the right size is submitted to the PayPal shopping cart. This is the actual PayPal code that I’m trying to change <table> <tr> <td> <input type="hidden" name="on1" value="Size" maxlength="200">Size</td> [code]..... I got this far, and then decided to find how to insert the "enteredVALUE" into the right place in the input text field (what I called output) and I've not been able to figure out how to stuff it in there.

JQuery :: Html5 - Display Placeholder Text In A Password Field, And Then Remove It When Text Is Entered
I'm trying to emulate the effect Twitter uses on it's homepage. It displays "Username" and "Password" in both login fields, and then when you start to type it removes the text. I haven't been successful so far, my best attempt displayed text inside the password field, but displayed it as if a password had been entered. Is there a JQuery plugin available to do this? I have seen one where it requires two password fields, and displays only one at a time. This isn't suitable.