Click here to Skip to main content
16,004,924 members
Home / Discussions / Visual Basic
   

Visual Basic

 
GeneralRe: Before doing a SaveAs, convert to the Opposite of "Read Only" (Write Enable) Pin
frankiebaby225-Jan-09 12:48
frankiebaby225-Jan-09 12:48 
AnswerRe: Before doing a SaveAs, convert to the Opposite of "Read Only" (Write Enable) Pin
Dave Kreskowiak23-Jan-09 11:15
mveDave Kreskowiak23-Jan-09 11:15 
GeneralRe: Before doing a SaveAs, convert to the Opposite of "Read Only" (Write Enable) Pin
frankiebaby223-Jan-09 14:36
frankiebaby223-Jan-09 14:36 
GeneralRe: Before doing a SaveAs, convert to the Opposite of "Read Only" (Write Enable) Pin
Dave Kreskowiak23-Jan-09 17:34
mveDave Kreskowiak23-Jan-09 17:34 
GeneralRe: Before doing a SaveAs, convert to the Opposite of "Read Only" (Write Enable) Pin
frankiebaby225-Jan-09 12:39
frankiebaby225-Jan-09 12:39 
GeneralRe: Before doing a SaveAs, convert to the Opposite of "Read Only" (Write Enable) Pin
Dave Kreskowiak25-Jan-09 13:49
mveDave Kreskowiak25-Jan-09 13:49 
QuestionExtract Phase From Textfile Pin
IvanIT23-Jan-09 9:29
IvanIT23-Jan-09 9:29 
AnswerRe: Extract Phase From Textfile [modified] Pin
Garth J Lancaster23-Jan-09 12:48
professionalGarth J Lancaster23-Jan-09 12:48 
its not 100% clear if you want to write a new file with the same name, and the replace WO*9007 entry as the first line or not .. so Im going to proceed on that assumption. You need to write code to do the following steps :-

0) declare and set a line counter variable to 0,a string var and set to "" (empty string)
1) rename the original file - include .tmp or .bkp as the extension
2) open the renamed file from (1) for reading [input]
3) open a new file with the original name for writing [output]
4) construct a loop to read the input until End-of-file
5) read a line from [input]
6) increment a line counter
7) if the line counter variable is 1 and the line contains WO*1234 substring/extract out the WO*1234 part, replace it with WO*9007, and write it to [output]. Store the WO*1234 part in the string variable - that could be about 4 simple steps
8) write every other line to [output]
9) (eof of file)/loop
10) close input
11) close output
12) if no errors, delete the .tmp or .bkp file

what do you think about that set of instructions ? its all doable, there may be some improvements, but its simple steps. Now, you code them - come back to us when you have code you need checked.

'g'

modified on Saturday, January 24, 2009 12:40 AM

GeneralRe: Extract Phase From Textfile Pin
IvanIT24-Jan-09 5:39
IvanIT24-Jan-09 5:39 
QuestionSpeed initial load Pin
cstrader23223-Jan-09 6:54
cstrader23223-Jan-09 6:54 
AnswerRe: Speed initial load Pin
Wendelius23-Jan-09 8:31
mentorWendelius23-Jan-09 8:31 
AnswerRe: Speed initial load Pin
Dave Kreskowiak23-Jan-09 8:35
mveDave Kreskowiak23-Jan-09 8:35 
GeneralRe: Speed initial load Pin
cstrader23223-Jan-09 10:14
cstrader23223-Jan-09 10:14 
GeneralRe: Speed initial load Pin
Dave Kreskowiak23-Jan-09 10:29
mveDave Kreskowiak23-Jan-09 10:29 
GeneralRe: Speed initial load Pin
cstrader23223-Jan-09 10:37
cstrader23223-Jan-09 10:37 
GeneralRe: Speed initial load Pin
Dave Kreskowiak23-Jan-09 11:12
mveDave Kreskowiak23-Jan-09 11:12 
GeneralRe: Speed initial load Pin
Wendelius23-Jan-09 11:20
mentorWendelius23-Jan-09 11:20 
QuestionUsing system.printing namespace to get print queue status Pin
daveg5523-Jan-09 1:01
daveg5523-Jan-09 1:01 
AnswerRe: Using system.printing namespace to get print queue status Pin
Dave Kreskowiak23-Jan-09 4:51
mveDave Kreskowiak23-Jan-09 4:51 
QuestionTextbox settings Pin
EvanSaunders23-Jan-09 0:41
EvanSaunders23-Jan-09 0:41 
AnswerRe: Textbox settings Pin
Jay Royall23-Jan-09 0:45
Jay Royall23-Jan-09 0:45 
GeneralRe: Textbox settings Pin
EvanSaunders23-Jan-09 0:51
EvanSaunders23-Jan-09 0:51 
GeneralRe: Textbox settings Pin
Jay Royall23-Jan-09 0:59
Jay Royall23-Jan-09 0:59 
GeneralRe: Textbox settings Pin
JR21223-Jan-09 1:00
JR21223-Jan-09 1:00 
GeneralRe: Textbox settings Pin
EliottA23-Jan-09 2:15
EliottA23-Jan-09 2:15 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.