Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Help Editor in VB
#15
Yeah, it required a bit of tweaking to get the keywords to actually color themselves (For starters, the keywords had to actually be known). But I am glad you figured it out!

And as for the configuration file control, I do not know of any offhand, because I have always coded it myself. Here is the code for reading a config file, if this helps at all.

Code:
Dim tNAME as string
Dim tAGE As String
Dim reader as new system.io.streamreader(My.application.info.directorypath + "/file.cfg")
Dim split() as String = reader.readtoend.split(vbNewLine)
reader.close()
For each item in split
If item.contains("name=") then
Dim name as string = item.replace("name=","")
name = name.replace(Chr(34),"")
tNAME = name
end if
If item.contains("age=") then
Dim age as string = item.replace("age=","")
age = age.replace(Chr(34),"")
tAGE = age
End if
next
'Sorry if this code messes up, it was coded without experimentation and right on this post
This code will simply loop through every line of a config file, and if the line contains "name", it will remove the "name=", and remove the quotations, and leave you with "oo" (In this case)

Of course, this is tedious because it needs to be done with every single option, but it is really easy to understand.

Hope this helps!
My Blog | My Setup | My Videos | Have a wonderful day.


Messages In This Thread
Help Editor in VB - by Covert2String - 09-24-2011, 03:59 PM
Re: Help Editor in VB - by xolara - 09-25-2011, 09:58 AM
Re: Help Editor in VB - by xolara - 09-25-2011, 10:05 AM
Re: Help Editor in VB - by xolara - 09-25-2011, 10:10 AM
Re: Help Editor in VB - by xolara - 09-28-2011, 02:06 AM
Re: Help Editor in VB - by Covert2String - 10-18-2011, 03:19 PM
Re: Help Editor in VB - by Covert2String - 10-19-2011, 08:45 AM
Re: Help Editor in VB - by brandonio21_phpbb3_import2 - 10-19-2011, 04:12 PM
Re: Help Editor in VB - by Covert2String - 10-21-2011, 11:30 AM
Re: Help Editor in VB - by AnchoredFTW - 12-27-2011, 07:39 AM

Possibly Related Threads…
Thread Author Replies Views Last Post
  HTML - Editor How to create "Preview in Webbrowser " Button Himansh 2 11,854 05-21-2012, 12:08 AM
Last Post: Himansh

Forum Jump:


Users browsing this thread: 1 Guest(s)