Pretty neat text-based RPG that I made. Currently my first game.

Member Avatar
Member Avatar
+0 forum 18

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

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 have found some samples that work for 2 to 4 columns, but not for 8. My code for saving the file is as follows: Private Sub Button2_Click(sender As Object, e As EventArgs) Handles Button2.Click Dim sfile As New SaveFileDialog With sfile .Title = "Choose your path to save the information" …

Member Avatar
Member Avatar
+0 forum 9

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

The Tkinter GUI toolkit comes with a scrolled text widget that is called ScrolledText. To get access to it you have to import it separately. It allows you to display large amounts of text in a small space.

Member Avatar
Member Avatar
+0 forum 2

If you have a long message to display in a large readable font, then this little Tkinter GUI toolkit code might help.

Member Avatar
Member Avatar
+1 forum 10

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 for some days, but with no luck. If I can get some help i'll be very grateful .This a WPF project in VS2013. rtbClipboardContent is a RichTextBox. The code I tried: MatchCollection matches = Regex.Matches(text, RegexExpression); rtbClipboardContent.Document.Blocks.Add(new Paragraph(new Run(text))); foreach (Match m in matches) { TextPointer start = rtbClipboardContent.Document.ContentStart.GetPositionAtOffset(m.Index, LogicalDirection.Forward); …

Member Avatar
Member Avatar
+0 forum 5

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

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

Member Avatar
Member Avatar
+0 forum 3

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 fine.` What is the solution for that?

Member Avatar
Member Avatar
+0 forum 2

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
Member Avatar
+0 forum 15

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

Member Avatar
Member Avatar
+0 forum 8

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 number? thank you Example: In the input file you have the following paragraph: Computer Science are the study of principles applications, and technologies of computing & computers. It involve the studyof data and data structures... The above text should be replaced by the following paragraph in the output file: Computer …

Member Avatar
Member Avatar
+0 forum 2

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

For a small class it doesn’t matter that much, but for a bigger class I find it handy to have an oversight of all the methods at hand. That’s what I did here. One requirement is that the class file has already been compiled error free. Don’t know if my algo to detect a “method” line is bullet proof, but it works in most if not all cases tested. Tips on how this could be improved are always welcome. Further highlights: How to: Show text in a listbox. How to: Save text in a file How to: Open and read …

Member Avatar
Member Avatar
+0 forum 5

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

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: <form action="/memberd/enquiry.php" method="post" id="genForm"> <h3 class="colour-holiday">Bitte geben Sie Ihre Daten ein</h3> <p>Mit * gekennzeichnete Felder sind Pflichtfelder. <br /> Mit ** gekennzeichneten Felder sind Pflichtfelder, entweder Sie wählen eine Dienstleistung aus oder füllen das Feld für einen Anfrage aus.</p> <label>Name: <i>*</i></label> <input type="text" size="22" name="sender" id="sender" class="name" required /> <label>E-Mail: …

Member Avatar
Member Avatar
+0 forum 1

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

The End.