512 Discussion / Question Topics

Remove Filter
Member Avatar for
Member Avatar for existinglady

hello, can someone help me, when I put the codes from my book and edited them to use filestream, I encounter an error #include <iostream> #include <fstream> #include <string> using namespace std; struct nodeType { string info; nodeType *link; }; int main() { nodeType *head = NULL; nodeType *newNode; nodeType …

Member Avatar for Roy_264
0
6K
Member Avatar for RJPII

I have been browsing the web for days now trying to find a solution to my problem and have yet to come up with anything so far so I figured I would ask some professionals. Basically I need to read a text file which contains records along the lines of: …

Member Avatar for Syed Umair Mohsin
0
12K
Member Avatar for Peter_TARAS

Hello, I am learning Tkinter. As a part of the learning process I am building a Notepad clone in order to become familiar with Tkinter widgets. I am pretty close to completing it - I added about 90% functionality to the application - but I face two problems: 1) The …

Member Avatar for bevis.hobbs
0
22K
Member Avatar for Reverend Jim

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 …

Member Avatar for vasuma4
1
4K
Member Avatar for kberrianjr

I am currently working on a program to track my mile for my monthly expense report for work. Everything is working great, however, I can not for the life of me find a code to write 8 lines from the text file back into the listview on my form. I …

Member Avatar for Reverend Jim
0
668
Member Avatar for rpv_sen

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 …

Member Avatar for Lucifer_1
0
3K
Member Avatar for Mr.M

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 …

Member Avatar for Mr.M
0
416
Member Avatar for Papa_Don

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, …

Member Avatar for Sblogger
0
2K
Member Avatar for you207

Hi I'm try to change the background of the matched by a Regex text. Example: input: aaa aaa aaa //double white spaces in between output: aaa aaa aaa //change the background of all matched white spaces to red But it's coloring the wrong text. I have tried and searched google …

Member Avatar for JOSheaIV
0
920
Member Avatar for SoftBa

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 …

Member Avatar for dageci
0
1K
Member Avatar for Papa_Don

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 …

Member Avatar for Papa_Don
0
434
Member Avatar for davijhon

I want to know that how to use the anchor text and how anchor text is benefitial for the website ?

Member Avatar for cwvps
0
263
Member Avatar for Niloofar24

Hi. There is a textarea in my page. I type a text in the textare and then in the script there is: $text = nl2br(htmlentities($_POST['text'])); Now what is the problem? When i type: `I'm fine.` It will be sent to db and will be printed, in both place as: `I'm …

Member Avatar for diafol
0
362
Member Avatar for Niloofar24

Hi. With using `file_get_contents()` I can get all html tags and text of a web page. But is there any way to get that web page's **css codes** too?

Member Avatar for diafol
0
603
Member Avatar for Niloofar24
Member Avatar for iris91

I have texts (Paragraphs) and I want to replace each of annotated wrong word in the paragraph with the correct word indicated by the position (index) number of the wrong word and i need to do it for each paragraph... So, what method should I use to search by index …

Member Avatar for JamesCherrill
0
387
Member Avatar for Papa_Don

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 …

Member Avatar for rubberman
0
458
Member Avatar for Papa_Don

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 …

Member Avatar for Santanu.Das
0
949
Member Avatar for Papa_Don

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 …

Member Avatar for cgeier
0
480
Member Avatar for Niloofar24

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 for Niloofar24
0
3K
Member Avatar for psvmr

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 …

Member Avatar for vegaseat
0
962
Member Avatar for Niloofar24

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 …

Member Avatar for Niloofar24
0
734
Member Avatar for biocompute

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 …

Member Avatar for vegaseat
0
7K
Member Avatar for Simon_4

Hi I just have the follow problem. In my form, I have a select option. Usually I should see some text there, I can change and open the dropdown menu, but I not see any text. What it could be? Here is the url: http://web159.login-142.hoststar.ch/memberd/de/prices/ And here some html code: …

Member Avatar for pritaeas
0
324
Member Avatar for Papa_Don

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, …

Member Avatar for |-|x
0
443
Member Avatar for Papa_Don

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 …

Member Avatar for Reverend Jim
0
9K
Member Avatar for Papa_Don

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, …

Member Avatar for Papa_Don
0
742
Member Avatar for slavica.k

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 = …

Member Avatar for slavica.k
0
588
Member Avatar for Papa_Don

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, …

Member Avatar for Papa_Don
0
3K
Member Avatar for Papa_Don

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 …

Member Avatar for Papa_Don
0
2K

The End.