Click to See Complete Forum and Search --> : substr()
jrgmrz
Sep 30th, 2000, 02:49 PM
is it there an equivalence of (substr()) for visual basic
I need to elimenate characters from a string, I coulnīt use this function in VB I dont know if it only works in visual C or what do I need to make it work.
Thaks
xmin
Sep 30th, 2000, 03:21 PM
mid()
J_BEYTIA
Oct 1st, 2000, 06:56 PM
Syntax
Mid(stringvar, start[, length]) = string
xmin
Oct 2nd, 2000, 12:25 AM
Your're right, J_BEYTIA. I only provided the name of the function to refer to VB Help where one can easily find the detail of its usage and syntax.
stickleprojects
Oct 2nd, 2000, 04:25 AM
To eliminate characters from a string, try the Replace function. The equivalent of substr in vb =instr
If its a string use Mid$.
Replace works in VB6 only.
vbforums.com
Copyright Internet.com Inc., All Rights Reserved.