Click here to Skip to main content
15,901,811 members
Home / Discussions / Visual Basic
   

Visual Basic

 
GeneralRe: Code for Project Pin
Edbert P6-Jan-05 10:46
Edbert P6-Jan-05 10:46 
GeneralAccessing other code base file in VB.NET Pin
fibman5-Jan-05 7:27
fibman5-Jan-05 7:27 
GeneralRe: Accessing other code base file in VB.NET Pin
T Manjaly5-Jan-05 10:04
T Manjaly5-Jan-05 10:04 
GeneralWindows Service Automatic Start Pin
Todd_S5-Jan-05 7:15
Todd_S5-Jan-05 7:15 
GeneralRe: Windows Service Automatic Start Pin
Barathan6-Jan-05 2:14
Barathan6-Jan-05 2:14 
GeneralRe: Windows Service Automatic Start Pin
Todd_S7-Jan-05 8:03
Todd_S7-Jan-05 8:03 
GeneralCF .Net Update Database from Dataset Datatable Pin
careysc5-Jan-05 5:03
careysc5-Jan-05 5:03 
GeneralAltering contents of a string Pin
SimesK5-Jan-05 4:55
sussSimesK5-Jan-05 4:55 
I know this may seem easy, but I just can't seem to find an easy way to do it.

I have a string set to a fixed length of 256 that is part of a user defined type consisting of a structure of various data types. In the 256 fixed length string I will often write a message to it, which is ok. But at other times I wish to write to the last byte of the fixed length string the value '1' to indicate something else. Therefore what is the best way to handle this. I have looked at the Replace function to start at position 256 and replace the " " with the value 1, but when I look at the fixed length string after this has been done the value '1' is at the beginning of the string and not at the end. I then used Space(255) and combined this with the string to move the one to the last byte. But then I want to overlay onto the fixed length string a message so that I get "message text ... 1". Is there a more simpler way of changing the 256th byte of the fixed length string, i.e. teststring[256] = "1".
GeneralVARIANT leaks in VB.NET Pin
Jonathan [Darka]5-Jan-05 3:26
professionalJonathan [Darka]5-Jan-05 3:26 
Generalcalling subs from other classes Pin
fo0lish5-Jan-05 2:37
fo0lish5-Jan-05 2:37 
GeneralRe: calling subs from other classes Pin
T Manjaly5-Jan-05 5:37
T Manjaly5-Jan-05 5:37 
GeneralRe: calling subs from other classes Pin
fo0lish5-Jan-05 7:23
fo0lish5-Jan-05 7:23 
GeneralRe: calling subs from other classes Pin
T Manjaly5-Jan-05 9:04
T Manjaly5-Jan-05 9:04 
GeneralRe: calling subs from other classes Pin
fo0lish5-Jan-05 9:20
fo0lish5-Jan-05 9:20 
GeneralNeed Help for Crystal Report Page Setup Pin
Murtuza Husain Miyan Patel5-Jan-05 2:04
professionalMurtuza Husain Miyan Patel5-Jan-05 2:04 
GeneralRe: Need Help for Crystal Report Page Setup Pin
Barathan6-Jan-05 2:34
Barathan6-Jan-05 2:34 
GeneralRe: Need Help for Crystal Report Page Setup Pin
Barathan6-Jan-05 2:38
Barathan6-Jan-05 2:38 
Generalaspi Pin
Anonymous5-Jan-05 1:43
Anonymous5-Jan-05 1:43 
GeneralAI Pin
ironic20055-Jan-05 1:36
ironic20055-Jan-05 1:36 
GeneralRe: AI Pin
Colin Angus Mackay5-Jan-05 5:45
Colin Angus Mackay5-Jan-05 5:45 
GeneralFile.Copy File Not Found Exception. Pin
netSam4-Jan-05 21:04
netSam4-Jan-05 21:04 
GeneralRe: File.Copy File Not Found Exception. Pin
Dave Kreskowiak5-Jan-05 1:47
mveDave Kreskowiak5-Jan-05 1:47 
GeneralRe: File.Copy File Not Found Exception. Pin
netSam5-Jan-05 2:38
netSam5-Jan-05 2:38 
GeneralRe: File.Copy File Not Found Exception. Pin
Robert Rohde5-Jan-05 8:19
Robert Rohde5-Jan-05 8:19 
GeneralRe: File.Copy File Not Found Exception. Pin
netSam5-Jan-05 21:18
netSam5-Jan-05 21:18 

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.