|
|
|||||||||
|
|||||||||
|
|||||||||
| |
||
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
|
Free Web 2.0 Code Generator! Generate data entry and reporting .NET Web apps in minutes. Quickly create visually stunning, feature-rich apps that are easy to customize and ready to deploy. Download Now!
|
|
#1
|
|||
|
|||
|
How to edit text documents using VB5?
How to edit texts in a document (let's say notepad)
with visual basic? Example: A document has the following text: abc,123 How can i edit the 2 values with visual basic 5? |
|
#2
|
|||
|
|||
|
You can use notepad opening it with the shell instruction
Shell "c:\WINNT\notepad.exe " & FILENAME_WITH_PATH, vbNormalFocus You can use the richtextbox object (use the loadfile method) Because the data "abc,123" looks like coma separated fields of something, for such kind of data, you can use a dbgrid or MSFlex grid (but it may be too advanced). |
|
#3
|
|||
|
|||
|
Quote:
You should be able to open the file then use the rplacer command: Replace(expression, find, replacewith[, start[, count[, compare]]]) Look up replace in your VB documentation. |
![]() |
| Viewing: ASP Free Forums > Programming > Visual Basic Programming > How to edit text documents using VB5? |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|
![]() |
|