Click here to Skip to main content
15,928,576 members
Home / Discussions / Visual Basic
   

Visual Basic

 
GeneralRe: vb2005 label click event problem Pin
RJGCarey10-Nov-07 8:15
RJGCarey10-Nov-07 8:15 
QuestionReplace bytes in filestream Pin
cstrader2329-Nov-07 4:19
cstrader2329-Nov-07 4:19 
QuestionPopup Menu - vbModal ? Pin
RickMagenta9-Nov-07 2:33
RickMagenta9-Nov-07 2:33 
QuestionParent and Child Form Pin
ejaz_pk9-Nov-07 1:40
ejaz_pk9-Nov-07 1:40 
AnswerRe: Parent and Child Form Pin
Tom Deketelaere9-Nov-07 2:52
professionalTom Deketelaere9-Nov-07 2:52 
Questionhow to convert numbers in time format in vb6 Pin
bhebhekoh9-Nov-07 1:39
bhebhekoh9-Nov-07 1:39 
AnswerRe: how to convert numbers in time format in vb6 Pin
nlarson119-Nov-07 3:37
nlarson119-Nov-07 3:37 
QuestionSubstring method does not work! Pin
Benny_Lava9-Nov-07 1:13
Benny_Lava9-Nov-07 1:13 
Hi,

I'm having BIG problems with the substring method.

I have a really big string and I need to extract data from this string; and for that I use substring, but it does not return a good value.

pointer = InStr(startingPointer, readout, Chr(13) + Chr(10))

If startFlag = True Then ' IGNORE this
line = readout.Substring(startingPointer - 1, pointer - 1) ' This block of code executes only once. ignore this .
pocetniPointer = pointer + 2
Else
line = readout.Substring(startingPointer, pointer + 2)

End If

I have debugg countless times. After couple of loops the variable line just adds up found substrings. For example after 5 loops startingPointer is 135 and pointer is 145 by the look of the second block in the else statement the line should return the string of 12 characters but instead it return the number close to 100+ characters.

It does not give a new value to the line it just adds up to the old value. This is the only code that uses the variable line.

Please help!

Thank you!
AnswerRe: Substring method does not work! Pin
Tom Deketelaere9-Nov-07 1:23
professionalTom Deketelaere9-Nov-07 1:23 
Questiontext box Pin
FREAK88029-Nov-07 0:54
FREAK88029-Nov-07 0:54 
AnswerRe: text box Pin
nlarson119-Nov-07 3:38
nlarson119-Nov-07 3:38 
GeneralRe: text box Pin
FREAK880210-Nov-07 20:42
FREAK880210-Nov-07 20:42 
AnswerRe: text box Pin
Mitch F.9-Nov-07 19:16
Mitch F.9-Nov-07 19:16 
GeneralRe: text box Pin
FREAK880210-Nov-07 20:47
FREAK880210-Nov-07 20:47 
QuestionHow to save out Embedded Image objects inside the Word document ? Pin
suis8-Nov-07 22:57
suis8-Nov-07 22:57 
QuestionMulti-threaded - open a new form when a process is still completing Pin
steve_rm8-Nov-07 22:47
steve_rm8-Nov-07 22:47 
AnswerRe: Multi-threaded - open a new form when a process is still completing Pin
AliAmjad9-Nov-07 0:07
AliAmjad9-Nov-07 0:07 
QuestionDot-matrix printing Pin
r_mohd8-Nov-07 21:09
r_mohd8-Nov-07 21:09 
AnswerRe: Dot-matrix printing Pin
Vasudevan Deepak Kumar8-Nov-07 21:14
Vasudevan Deepak Kumar8-Nov-07 21:14 
GeneralRe: Dot-matrix printing Pin
r_mohd8-Nov-07 21:38
r_mohd8-Nov-07 21:38 
GeneralRe: Dot-matrix printing Pin
Duncan Edwards Jones9-Nov-07 0:30
professionalDuncan Edwards Jones9-Nov-07 0:30 
AnswerRe: Dot-matrix printing Pin
GuyThiebaut8-Nov-07 22:11
professionalGuyThiebaut8-Nov-07 22:11 
GeneralRe: Dot-matrix printing Pin
r_mohd8-Nov-07 22:21
r_mohd8-Nov-07 22:21 
QuestionSub report Pin
di3.ny288-Nov-07 18:01
di3.ny288-Nov-07 18:01 
Questiongrid with multiheader? Pin
sean13328-Nov-07 16:23
sean13328-Nov-07 16:23 

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.