If this is your first visit, be sure to
check out the FAQ by clicking the
link above. You may have to register or Login
before you can post: click the register link above to proceed. To start viewing messages,
select the forum that you want to visit from the selection below.

Re: How to Select Characters in vb6 with max letter?

Re: How to Select Characters in vb6 with max letter?

They are VB string functions, look at the documentation and examples in yoru online help or Google them.

Instr() searches for a match in a string and returns the position where the match was found or 0 if it was not found
Mid() allows you to pull characters from any position within a string by telling it where to start and how many characters you want
Left() allows to you get the characters from the left side of a string. You just tell it how many to get
Right() is the same as left but pulls fromt he right side of the string.

Re: How to Select Characters in vb6 with max letter?

Re: How to Select Characters in vb6 with max letter?

im in this forum and it had you!!
can i add something here ??
how can i export rtb textrtf to word ??
with formatting?
like Bold,CenterAlignment...
can this happen?
and also can support any word versions?
another help here please...

Re: How to Select Characters in vb6 with max letter?

Well first off just because someone does not give you a detailed post with full code does not mean they do not know how.

Second you do not export anything from a RTB, you save the data to a file or or place it on the clipboard. If you want an export function then you have to write one.

The RTB has 2 properties that you should look at, .text and .textrtf one includes the rtf formatting and the other does not.

Word and Wordpad can each open a proper rtf formatted file and have it display as it should, of course you first need to have the text formatted using RTF, if you have that already then all you do is save the formatted data if not then you first have to format it and if you do not know rtf formatting codes you may want to move on to something else.