Re: How to assign a very long string to a variable ?

Tech Tip: Click here to run a free scan for Windows Errors and optimize PC performance



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
>
>


.



Relevant Pages

  • Re: Hyperlinks dont work in 2003
    ... Diane Poremsky [MVP - Outlook] ... User is not using Word as email editor. ... We've checked all the Autocorrect settings ... about a particular string it is because that client parsed the string ...
    (microsoft.public.outlook.general)
  • Re: Hyperlinks dont work in 2003
    ... User is not using Word as email editor. ... Word setting do affect Outlook if as ... they are checked to use hyperlinks. ... about a particular string it is because that client parsed the string ...
    (microsoft.public.outlook.general)
  • SysRPL: Some Editor Utilities
    ... for controlling the text editor, ... The string converter TIMESTR requires both time and date ... APPEND: APPEND SELECTIONS TO CLIPBOARD ... selection a regular COPY - otherwise all your selections will be ...
    (comp.sys.hp48)
  • Re: Hyperlinks dont work in 2003
    ... We don't see the autoformat settings ... about a particular string it is because that client parsed the string ... Are you using Word as the e-mail editor or are you using the e-mail ... editor embedded in Outlook 2003? ...
    (microsoft.public.outlook.general)
  • Re: xml + mmap cross
    ... XML is text-based, so it should -always- be readable in a text editor. ... a tag which is a string identifying what kind of data this element ... Of course, you'd have to garbage collect removed nodes by hand, on any ...
    (comp.lang.python)