For Programmers: Free Programming Magazines  


Home > Archive > Visual Basic Syntax > February 2005 > Fixed size string









You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

 

Author Fixed size string
cvh

2005-02-03, 8:59 am

Hello,

In Delphi you can do this : String[5]

Witch means the string is max 5 Char

How do you do this in VB?

Thanks,

Christophe


Jan Hyde

2005-02-03, 4:02 pm

"cvh" <Chris@nomail.com>'s wild thoughts were released on
Thu, 3 Feb 2005 13:32:23 +0100 bearing the following fruit:

>Hello,
>
>In Delphi you can do this : String[5]
>
>Witch means the string is max 5 Char
>
>How do you do this in VB?
>


Dim strTest As String * 5



Jan Hyde (VB MVP)

--
Once upon a time Old King Cole issued an order to his cooks. "From now
on," he decreed, "chopped cabbage must be mixed with mayonnaise." To
this day his decree is known as Cole's Law. (Gary Hallock)

[Abolish the TV Licence - http://www.tvlicensing.biz/]

cvh

2005-02-03, 4:02 pm

Thanks Jan

"Jan Hyde" <StellaDrinker@REMOVE.ME.uboot.com> wrote in message
news:7l8401dkc1a8ne2h844dg68n2ir9i1j5ab@
4ax.com...
> "cvh" <Chris@nomail.com>'s wild thoughts were released on
> Thu, 3 Feb 2005 13:32:23 +0100 bearing the following fruit:
>
>
> Dim strTest As String * 5
>
>
>
> Jan Hyde (VB MVP)
>
> --
> Once upon a time Old King Cole issued an order to his cooks. "From now
> on," he decreed, "chopped cabbage must be mixed with mayonnaise." To
> this day his decree is known as Cole's Law. (Gary Hallock)
>
> [Abolish the TV Licence - http://www.tvlicensing.biz/]
>



cvh

2005-02-03, 4:02 pm

Jan,

Is it still supported by VB.NET?


"Jan Hyde" <StellaDrinker@REMOVE.ME.uboot.com> wrote in message
news:7l8401dkc1a8ne2h844dg68n2ir9i1j5ab@
4ax.com...
> "cvh" <Chris@nomail.com>'s wild thoughts were released on
> Thu, 3 Feb 2005 13:32:23 +0100 bearing the following fruit:
>
>
> Dim strTest As String * 5
>
>
>
> Jan Hyde (VB MVP)
>
> --
> Once upon a time Old King Cole issued an order to his cooks. "From now
> on," he decreed, "chopped cabbage must be mixed with mayonnaise." To
> this day his decree is known as Cole's Law. (Gary Hallock)
>
> [Abolish the TV Licence - http://www.tvlicensing.biz/]
>



Jeff Johnson [MVP: VB]

2005-02-03, 4:02 pm


"cvh" <Chris@nomail.com> wrote in message
news:eqR4PgfCFHA.1396@TK2MSFTNGP14.phx.gbl...

> Is it still supported by VB.NET?


Yes, in a roundabout way, but this isn't really the place for such
questions. Try a group with "dotnet" in the name.


Sponsored Links







Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive

Copyright 2008 codecomments.com