Re: How to assign a very long string to a variable ?
- From: "Oscar" <oku@xxxxxxxxx>
- Date: Wed, 3 Aug 2005 16:04:18 +0200
Really ?
Yes it takes me too much time to code some 500-1000 characters strings this
way and never forget the best automation developers are they who are lazy.
I just want to paste the string out of a text editor with Ctrl_V into the
source. In case this is not possible I will search for a control for wich a
text property can be assigned with Ctrl_V in design mode. This would enable
to retrieve the long string in run time.
Oscar
"Rick Rothstein [MVP - Visual Basic]" <rickNOSPAMnews@xxxxxxxxxxxxxxxxx>
schreef in bericht news:OfgI1XCmFHA.1032@xxxxxxxxxxxxxxxxxxxxxxx
>> How can I assign a very long string consisting of more than a
>> couple of rows to a variable within the VB editor?
>>
>> I mean without the use of '_' and '&' and chr(13) for new rows
>> at each row to code the string, because this takes too much time.
>>
>> Such as Label1.caption = " This menu helps ..............
>> Before that you......
>>
>> Therefore .......
>>
>> ....."
>
> Too much time? You're kidding, right? That should be the biggest problem
> you ever face in programming. Really now!
>
> The answer is... you can't short cut the process from the way you
> describe. However, you might want to consider using either of VB's built
> in constants, either vbCrLf or vbNewLine, instead of Chr(13). And, to
> save time, you don't have to capitalize any of the letters in those
> constants when entering them as VB's automatic syntax generator will do
> that for you.
>
> Rick
>
>
.
- Follow-Ups:
- Re: How to assign a very long string to a variable ?
- From: Jeff Johnson [MVP: VB]
- Re: How to assign a very long string to a variable ?
- From: Rick Rothstein [MVP - Visual Basic]
- Re: How to assign a very long string to a variable ?
- References:
- How to assign a very long string to a variable ?
- From: Oscar
- Re: How to assign a very long string to a variable ?
- From: Rick Rothstein [MVP - Visual Basic]
- How to assign a very long string to a variable ?
- Prev by Date: Re: datagrid format
- Next by Date: Re: datagrid format
- Previous by thread: Re: How to assign a very long string to a variable ?
- Next by thread: Re: How to assign a very long string to a variable ?
- Index(es):
Relevant Pages
|