473,406 Members | 2,281 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,406 software developers and data experts.

How to use substring function in VB

123 100+
Kindly tell me how to use Substring function in VB.
Feb 23 '07 #1
5 9168
vijaydiwakar
579 512MB
Kindly tell me how to use Substring function in VB.
there is mid$,Left$,Right$,Instr functions in vb which one u want
Feb 23 '07 #2
vijaydiwakar
579 512MB
there is mid$,Left$,Right$,Instr functions in vb which one u want
do u read the ans of how to change the color of text box i've given one extra ex. there
Feb 23 '07 #3
Shailja
123 100+
do u read the ans of how to change the color of text box i've given one extra ex. there

Yes, but I want to display light cream color in textbox. I dont want to display textbox in red, green or blue color. So is it possible to take hexa value of perticular color and display it.
Feb 23 '07 #4
vijaydiwakar
579 512MB
Yes, but I want to display light cream color in textbox. I dont want to display textbox in red, green or blue color. So is it possible to take hexa value of perticular color and display it.
Sorry for late response
yeh!
its possible just goto
backcolor of form or any ctrl then right click on white boxes benith
it will show u a color pallate
select color then add to custom color
then select it and say ok
then entire form will be get colored with the selected color
again goto back color and select color copy it and paste it infront of
txt.backcolor=thy selected color

*****************
I'm talking abt the combobox code which i've given benith it?
Feb 23 '07 #5
Shailja
123 100+
Sorry for late response
yeh!
its possible just goto
backcolor of form or any ctrl then right click on white boxes benith
it will show u a color pallate
select color then add to custom color
then select it and say ok
then entire form will be get colored with the selected color
again goto back color and select color copy it and paste it infront of
txt.backcolor=thy selected color

*****************
I'm talking abt the combobox code which i've given benith it?
I have done Combobox coding and it works properly.
Feb 23 '07 #6

Sign in to post your reply or Sign up for a free account.

Similar topics

7
by: Don Freeman | last post by:
Seems like whatever value I use for the first int field (starting position) the substring procedure negates it and triggers a String index out of range error. I've tried all sorts of work...
7
by: Radhika Sambamurti | last post by:
Hi, I've written a substring function. The prototype is: int substr(char s1, char s2) Returns 1 if s2 is a substring of s1, else it returns 0. I have written this program, but Im sure there is an...
62
by: Jupiter | last post by:
Hey, I would like to know 2 things. 1)Is there any function (in C standard library) that extracts a substring from a string? 2)Is there any function (in C standard library) that returns the...
6
by: becte | last post by:
I am little bit confused Is this a legal way of removing a substring from a string? What about the second alternative using strcpy, is it ok even though the source and dest. strings overlap? ...
11
by: Darren Anderson | last post by:
I have a function that I've tried using in an if then statement and I've found that no matter how much reworking I do with the code, the expected result is incorrect. the code: If Not...
2
by: David Filion | last post by:
Hi, I have a question about substring(), when I run the following query: prepaid=# select substring('15148300', 0, 5); substring ----------- 1514 (1 row)
29
by: Ajay | last post by:
Hi all,Could anybody tell me the most efficient method to find a substr in a string.
2
by: Badass Scotsman | last post by:
Hello, Using VB and ASP,NET I would like to be able to search a STRING for a smaller STRING within, based on the characters which appear before and after. For example: String1 = " That was...
6
by: kellygreer1 | last post by:
What is a good one line method for doing a "length safe" String.Substring? The VB classes offer up the old Left function so that string s = Microsoft.VisualBasic.Left("kelly",200) // s will =...
7
by: jknaty | last post by:
I'm trying to create a function that splits up a column by spaces, and I thought creating a function that finds the spaces with CHARINDEX and then SUBSTRING on those values would an approach. I...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.