After saying for the last 10 years that I would never own a cell phone (I had enough of that spending many years on call), I finally broke down and got one. It is a Figo (Speak Out) Android (Marshmallow) phone that allows me to buy a block of minutes without having to pay monthly fees. Basically I can use it as much or as little as I want and just pay for what I use. My first complaint was the almost complete lack of documentation. It is a royal pain in the ass figuring out what every little (microscopic, …

Member Avatar
Member Avatar
+1 forum 15

Hi I am trying to populate textbox value based on releated textbox value like that of (Country and State) using dynamic row formate. I can able to populate a value for only first row, if i tried ti for second row its again overwrite the first row and also i am trying the hide some textbox based on the value. Can anyone please help to solve this issue. Note: I have attached screenshot for your reference. **Html** <button type="button" class="btn btn-info" id="delete">- Delete</button> <button type="button" class="btn btn-info" id="addmore">+ Add More</button> <div class="clear"></div><br> <table> <tr align="center"> <td><input class='check_all' type='checkbox' onclick="select_all()"/></td> <td>Line …

Member Avatar
Member Avatar
+0 forum 3

Hi Dw. I'm having a client server which the server read a text file line by line and send each line to the client upon client connection. The problem I'm having is that on the client side the data is combined, meaning I get all lines that are on the file at once but what I want is to get each line just like how it is sent. This is the server side code I have. Dim myFileName As String Dim myLine As String Dim FileNum As Long myFileName = "c:\myfile.txt" FileNum = FreeFile Close FileNum Open myFileName For Input …

Member Avatar
Member Avatar
+0 forum 8

Group, I'm using VB.net 2010 and would like to convert a text file into a PDF file. In reading through the internet, it appears that I need to download a 3rd party .dll file. But is that needed? I see multiple PDF library references by right clicking the project name, choosing "Add Reference" and clicking the "COM" tab. These libraries include PDFFilter, PDFMAcad, PDFMaker for Visio, PDFMakerAPI, etc. Can (or should) any of these be used? Thanks for your input! Don

Member Avatar
Member Avatar
+0 forum 4

Hi, I have started this project and come to the point where I can't figure out how to finish it. First Want to say that I'm noob for VB6 and programming in general, but I saw some examples and make it work this part of job I need. I will upload complete project, and sample text file, and screen shoot also, where I have explained how I want my app to work. So, please take a look and help me if you can :) in short - I need app to write text file with specific number of lines, continuing …

Member Avatar
Member Avatar
+0 forum 10

Hi group, I'm attempting to create and write to an Excel spreadsheet with data from a text file. The code is meant to parse each line of the text and place the data into individual variables. I then need to place these variables into the appropriate cells on this newly created spreadsheet. Although I'm not getting any error messages, the workbook and data isn't being saved anywhere that I can see. Here's my code as currently written: Option Strict On Option Infer Off Imports System Imports System.IO Imports System.Text Imports Microsoft.Office Imports Microsoft.Office.Core Imports Microsoft.Office.Interop Imports Microsoft.Office.Interop.Excel Private Sub ConvertToExcel() …

Member Avatar
Member Avatar
+0 forum 8

Hello. How can i get the html tags and texts of a web page in php?

Member Avatar
Member Avatar
+0 forum 8

Hi group, I'm using VB.net to convert an output file (text) from a Linux based program into a file that will easily read in Notepad. I found some code in VB.net to do this conversion for UNIX that works "OK" (meaning fair but not perfect). It looks like this: txtLine = My.Computer.FileSystem.ReadAllText(RestranName) ' This begins to add the carriage returns in the appropriate places txtLine = Replace(txtLine, vbLf, vbCrLf) txtLine = Replace(txtLine, vbCr & vbCr, vbCr) txtLine = Replace(txtLine, """", "") ' This writes the line to the file My.Computer.FileSystem.WriteAllText(fileSave, txtLine, False) The only issue (it's minor) is that it …

Member Avatar
Member Avatar
+0 forum 1

Group, You've helped me write a routine that merges and formats a text file when multiple files exist. The code is as follows: If fileCount = 3 Then RestranName = getRestranName(0) RestranName2 = getRestranName(1) RestranName3 = getRestranName(2) Dim readtxt() As String = File.ReadAllLines(RestranName) 'Deleted the actual file. File.Delete(RestranName) 'Now time to read the array elements and save them in a file. For i As Integer = readtxt.GetLowerBound(0) To readtxt.GetUpperBound(0) - 4 'Appending the line to the text file My.Computer.FileSystem.WriteAllText(RestranName, readtxt(i), True) If i < readtxt.GetUpperBound(0) - 4 Then 'Appending a new line into the text file. My.Computer.FileSystem.WriteAllText(RestranName, vbCrLf, True) End …

Member Avatar
Member Avatar
+0 forum 15

Group, Some weeks back you helped me solve a formating issue with a text file that originates from a UNIX based program (see [https://www.daniweb.com/software-development/vbnet/threads/489626/remove-end-of-report-line-and-format-unix-text]). While reviewing this newly formated data I saw that a character was place at the beginning of each page. Thus, I assume it does set the next page. However I'd like for you to look and confirm this. But more importantly, I need to know how to insert this character into my code. Because I am merging multiple reports together, I need to add this to the end of each report that is to be merged. …

Member Avatar
Member Avatar
+0 forum 17

Hi. How i can ask my crawler to print only the text of all <li></li> tags in a url page? I want to save the text of all <li></li> tags in a text file (without` <li></li>` words.)

Member Avatar
Member Avatar
+0 forum 8

I am trying to sort averages of scores in a class by pupil, from highest to lowest. My data is stored in text files like this: Charlie:0 Seema:2 Amber:4 Paige:5 Amber:8 Keith:1 Charlie:8 Seema:0 Charlie:9 Seema:3 Paige:0 Paige:4 Paige:4 Charlie:1 Keith:5 Keith:3 Here is my code so far: with open("class {0}.txt".format(Class)) as f: d = {} #loop to split the data in the text file for line in f: column = line.split(":") #identifies the key and value with either 0 or 1 names = column[0][Click Here](null) scores = int(column[1].strip()) #appends values if a key already exists tries = 0 while …

Member Avatar
Member Avatar
+0 forum 5

Hello, me again :) With this code: >>> from BeautifulSoup import BeautifulSoup >>> import urllib2 >>> url = urllib2.urlopen('http://www.python.org').read() >>> soup = BeautifulSoup(url) >>> links = soup('a') >>> print links A list of links printed into the terminal. I want to send the list into a text file, i tried this: >>> with open('python-links.txt.', 'w') as f: ... f.write(links) But there was an error: File "<stdin>", line 2, in <module> TypeError: expected a character buffer object What is the problem? How can fix that? -------------------------------------------------------------------- And one more question; as that list looks like this: (I will copy only small …

Member Avatar
Member Avatar
+0 forum 3

I have a Tkinter GUI that is composed of two widgets, the first is a widget class with an entry field and a button and the second is a scrollable text widget class. I have combined these two widget classes to make a single GUI. Each of these widget classes works correctly as individuals. The text field of the GUI is being used to display the contents of a specific index of a list.I want to be able to enter an index number in the entry field and upon pressing the button the text in the text field is re-configured …

Member Avatar
Member Avatar
+0 forum 8

I need to identify how the code identifies that a file is at the "eof" (end of file). Here's why: On Monday's, I'm having to combine text files created over the weekend that will eventually be read and pulled into an Excel spreadsheet (generally there are three files). Using VB.net, I'm stripping the blank lines and the words "End of Report" from the end of the first two files before merging these together. The third file gets merged as is with no changes. When I open the merged file (using Excel and VBA) to be read, I'm getting a error …

Member Avatar
Member Avatar
+0 forum 3

Hello Group, I'm trying to convert some VBA code into VB.net. Here is that VBA code: Open filePath For Input As #1 ' filePath = the text file I need to read Do Until textRowNo = 8 'discard these first 7 rows... Line Input #1, LineFromFile 'this is the row counter textRowNo = (textRowNo + 1) Loop Ultimately I need to throw out the first seven rows of the text file. But is there a VB.net equivalent to `Open filePath For Input As #1`? After this is done, I want to continue and begin at line 8 and do the …

Member Avatar
Member Avatar
+0 forum 8

Group, I'm now having to merge several of these text files together. At the end of each of the text files is a line that says "End of Report". I need to eliminate this line completely. This code does the merge for me: RestranName = getRestranName(0) RestranName2 = getRestranName(1) System.IO.File.AppendAllText(RestranName2, System.IO.File.ReadAllText(RestranName)) These files are UNIX created and are unformated. So I'm using the following code to format it correctly: ' This reads the text file for conversion txtLine = My.Computer.FileSystem.ReadAllText(RestranName) ' This begins to add the carriage returns in the appropriate places txtLine = Replace(txtLine, vbLf, vbCrLf) txtLine = Replace(txtLine, …

Member Avatar
Member Avatar
+0 forum 12

is there a way to search database viwable in datagrid view by selecting rows through a combo box, values trough a text box and display resoult in label? here is the code that doesnt work: Private Sub Command1_Click() 'populate datagrid trough textboxes DBGrid1.Columns(0).Text = Text1.Text Text1 = "" DBGrid1.Columns(1).Text = Text2.Text Text2 = "" ! DBGrid1.Columns(2).Text = Text3.Text Text3 = "" DBGrid1.Columns(3).Text = Text4.Text Text4 = "" DBGrid1.Columns(4).Text = Text5.Text Text5 = "" DBGrid1.Refresh End Sub Private Sub Command4_Click() 'button for search 'MsgBox ("Your Name is " & Text6.Text) With Data1.Recordset If Combo1.Text = "id" Then Label6 = ("[id]like" & …

Member Avatar
Member Avatar
+0 forum 1

Group, In a post in VB 4/5/6, I question how to open a file with a wildcard as the file extension ([https://www.daniweb.com/software-development/visual-basic-4-5-6/threads/488809/accessing-a-file-with-a-ever-changing-name](null). That worked fine for VBA. However I'm trying to do the same thing using VB.net. I'm having trouble finding the correct syntax. I hope you can help. Specifically, I have to find a file that has a varying file extension. The file name will be the creation date. The file extension is the time the file was created. So the file name looks like this: "20141216.042615". So I need to write my code so that it will go …

Member Avatar
Member Avatar
+0 forum 11

Group, I'm taking a text file that is storing ID numbers in a single column that looks like this: 123 3050 3971 I'm looping through the text file line for line and putting each ID number into a textbox. My question is: Am I writing this code the most efficient way? Here's my code: Dim FILE_NAME As String = "C:\Restran Conversion\RestranFileConversion.txt" Dim objReader As New System.IO.StreamReader(FILE_NAME) Dim txtProps As String Dim i As Integer = 1 If System.IO.File.Exists(FILE_NAME) = True Then Do While objReader.Peek() <> -1 txtProps = objReader.ReadLine() If i = 1 Then prop1 = txtProps End If If …

Member Avatar
Member Avatar
+0 forum 8

Hey guys. I'm writing myself an online toolbox (for my code snippets). I have a "Snippets" table. My question is this. Would you save the snippet source in a Text column or would you have the snippet saved to a text file and the Snippet entry would reference the file name? e.g. Snippets or Snippets2 ![66d53b10f23ce24db08dffd799cf70e2](/attachments/large/4/66d53b10f23ce24db08dffd799cf70e2.png "66d53b10f23ce24db08dffd799cf70e2")

Member Avatar
Member Avatar
+0 forum 3

Hi, so i have an input text `<input type="text" name="numguest" id="number-of-guests">` and a button `Okay`. When a number say, 4 is entered into that text box and clicked okay, 4 of this text box `<input type="text" name="guest-name[]" placeholder="Guest Name" id="text-gname">` will appear. i tried: $("#okay").on("click", function(){ var num_of_guests = $("#number-of-guests").val(); alert(num_of_guests); var input_text = $("#text-gname").clone(); var target = $(".guests-tbody"); for(var i = 0; i < num_of_guests; i++) { var clone = input_text.clone(); clone.attr('id','style', ''); target.append(clone); Hide(); } }); but nothing seems to be happening except fot the alert and Hide function. TIA

Member Avatar
Member Avatar
+0 forum 3

Hello Community, I was wondering if there is a way to filter through an email to get all the details. Such as from, to, subject, body and a few other details but you get the idea. At the moment I just have a bunch of text but I want to get all the little bits of information.

Member Avatar
Member Avatar
+0 forum 14

Hello. I have a button on a web page and when the mouse is over it becomes larger (don't ask why). .buton { /* some code here*/ height:50px; width:100px; text-decoration:none; text-align:center; text-shadow:1px 1px 0px #ffffff; transition:width 0.5s, height 0.5s; } .buton:hover { width:200px; height:200px; } In body is this code: <a href="#" class="buton">BLABLA 1</a> How can I change the button text when it becomes larger? For example, instead of BLABLA 1, be HELLO 1.

Member Avatar
Member Avatar
+0 forum 1

Hi, Im making a simple program which converts a encrypted text file the upload it to sql CE. This is time in and out logs of every employee. The date is extracted from a machine and downloaded as encrypted file. We managed to decrypt it by getting the equivalent value of each character. I need to decrypt this file then save it to database (sql server 2008 r2) Downloaded file looks like this, in plain text: ±²®ªÇª®°­°®­°®¯±ª®·¸²®¸±²B ´µ³ªÇª®°­°®­°®¯±ª®·¸²±¸³®N ´µ³ªÍª®°­°¯­°®¯±ª¯·¸®°¸²²T ±²®ªÍª®°­°¯­°®¯±ª°®¸®®¸°®9 ±¯´ªÍª®°­°¯­°®¯±ª°®¸®®¸±²A ´µ³ªÇª®°­°°­°®¯±ª®·¸±¶¸±´X ±¯´ªÇª®°­°°­°®¯±ª¯®¸²¯¸²´C ±²®ªÇª®°­°°­°®¯±ª¯®¸²±¸°µA ´µ³ªÍª®°­°°­°®¯±ª¯·¸±¶¸±²] ´µ³ªÇª®°­°³­°®¯±ª®·¸³¯¸²µX My code for now in uploading: (I used openfiledialog object to open the file) …

Member Avatar
Member Avatar
+0 forum 9

how to `.replace()` the `'error'`? only use `a` and `b` var str = 'bla bla anything error anything bla bla'; var a = 'anything', b = a; im not good with regular expressions so im asking for how to do this with variables so i can set them up all by myself

Member Avatar
Member Avatar
+0 forum 8

hey guys. I have a form (very much simplified): <form method="post" action="add_contact.php"> <label>House No. :</label><input type="text" name="houseno" required /> <label>Street Name :</label><input type="text" name="street" required /> <lable>Spouse ?</lable><input type="radio" id="spouse-yes" onclick="FillSpouse(this.form)">Yes<input type="radio" id="spouse-no"> <label>House No. :</label><input type="text" name="spousehouseno" required /> <label>Street Name :</label><input type="text" name="spousestreet" required /> </form> what i want is for when radion button "Yes" is clicked the two other text fields(name="spousehouseno" and name="spousestreet") will be populated by the same input values in the text fields(name="houseno" and name="street"). ive tried using from [Click Here](http://www.htmlgoodies.com/tutorials/forms/article.php/3898101): <script type="text/javascript"> function FillSpouse(f) { if(f.spouse-yes.checked == true) { f.houseno.value = f.spousehouseno.value; f.street.value = …

Member Avatar
Member Avatar
+0 forum 5

hey guys. I have a contact form as so <form method="post" action="contact_data.php" class="add-contact-form"> <fieldset> <legend>Add Contact</legend> <p>Salutation : <select name="salutations"> <option value="" disabled selected>Choose</option> <option value="Datin">Datin</option> <option value="Datin Paduka">Datin Paduka</option> <option value="Dato Paduka">Dato Paduka</option> <option value="Dato'">Dato'</option> <option value="Dato' Seri">Dato' Seri</option> <option value="Datuk">Datuk</option> <option value="Datuk Seri">Datuk Seri</option> <option value="Dr.">Dr.</option> <option value="Haji">Haji</option> <option value="Hajjah">Hajjah</option> <option value="HM">HM</option> <option value="HRH">HRH</option> <option value="Miss">Miss</option> <option value="Mrs.">Mrs.</option> <option value="Mr.">Mr.</option> <option value="Pehin">Pehin</option> <option value="Professor">Professor</option> <option value="Raja">Raja</option> <option value="Tan Sri">Tan Sri</option> <option value="Tengku">Tengku</option> <option value="Tuanku">Tuanku</option> <option value="Tun">Tun</option> <option value="Tunku">Tunku</option> <option value="Ungku">Ungku</option> </select></br> <label class="salute-label">*If a person has many salutations, choose the highest form of salutation*</label> </p> <div style="height:0"><label>First Name …

Member Avatar
Member Avatar
+0 forum 2

Hello, I need a litle help here. I am creating a program that finds a specific sentence in a word path and replaces it with a given value. Specific sentence: l="600" And it has to be changed to : l="300" This is not to dificult and works fine: Public Class Form1 Private Property sign As String Private Sub Button1_Click(sender As Object, e As EventArgs) Handles Button1.Click Dim sign1 As String Dim sign2 As String sign1 = ("""600""") 'sign1 = ("""") sign2 = ("""300""") Dim source As String = "C:\temp\bodem.mpr" 'path from original file Dim destination As String = "C:\temp\bodem2.mpr" 'path …

Member Avatar
Member Avatar
+0 forum 6

If anyone is able to help, I'd like to create a single-line text on my site that says "Happy birthday to Samantha" whenever it's her birthday, or whenever it's another kid in my program's birthday. Including the capacity for multiple birthdays on the same day (comma spaced), the date, and/or how old they are would be icing on the cake (no pun intended); but I wouldn't mind just something basic. On days without birthdays, I'd like for the space to be blank. Any help would be greatly appreciated. I've searched Google, and the best I could find was this page …

Member Avatar
Member Avatar
+0 forum 6

The End.