Kindly tell me how to use Substring function in VB.
5 9175
Kindly tell me how to use Substring function in VB.
there is mid$,Left$,Righ t$,Instr functions in vb which one u want
there is mid$,Left$,Righ t$,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
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.
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=t hy selected color
*************** **
I'm talking abt the combobox code which i've given benith 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=t hy selected color
*************** **
I'm talking abt the combobox code which i've given benith it?
I have done Combobox coding and it works properly.
Sign in to post your reply or Sign up for a free account.
Similar topics |
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 arounds to no avail, am I defining the two
string variable incorrectly?
code snippet:
String lastChar = new String();
|
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 easier way to do this. I am hoping someone can point me to a more elegant way of writing this same function.
//// code follows ///////////
//implement a substring function, where if string2 is a sub of string 1, then the value returned is 1...
|
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
position of a substring in a string?
Thx a lot...
|
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?
// Remove (first occurence of) sub from src
void func(char *src, char *sub)
{
char *p;
|
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 (strIn.Substring(410, 10).Trim = "") Then
'Something processed
Else
'Something processed
| |
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)
|
by: Ajay |
last post by:
Hi all,Could anybody tell me the most efficient method to find a substr
in a string.
|
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 a tasty burger"
|
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 = "kelly" with no error
// but
string s2 = "kelly".Substring(0,200)
// results in
// ArgumentOutOfRangeException
|
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 get an error
saying that the I have an Invalid column 'Course_Number'. Not sure
why but I am very new to User Defined Functions. Here is what I have
so far:
CREATE FUNCTION CourseEvalBreakdown
(
|
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look !
Part I. Meaning of...
| |
by: Hystou |
last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it.
First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
|
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth.
The Art of Business Website Design
Your website is...
|
by: Hystou |
last post by:
Overview:
Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
|
by: tracyyun |
last post by:
Dear forum friends,
With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
|
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, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own....
Now, this would greatly impact the work of software developers. The idea...
|
by: isladogs |
last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM).
In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules.
He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms.
Adolph will...
| |
by: adsilva |
last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
|
by: 6302768590 |
last post by:
Hai team
i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
| |