Re: Types

From: Jay B. Harlow [MVP - Outlook] (Jay_Harlow_MVP_at_msn.com)
Date: 04/26/04


Date: Mon, 26 Apr 2004 09:22:25 -0500

Kim,
In addition to the others comments.

Type in VB6 is now Structure in VB.NET.

Integer in VB6 is now Short in VB.NET
Long in VB6 is now Integer in VB.NET

String * CCHDEVICENAME in VB6 is not supported per se in VB.NET, you can use
the Microsoft.VisualBasic.VBFixedStringAttribute in its place, however check
the online help for the proper usage & when it is actually used.

Hope this helps
Jay

"Kim Madsen" <kh@microsoft.com> wrote in message
news:ehZRLt4KEHA.2784@TK2MSFTNGP09.phx.gbl...
> Hi, in VB I could create types like :
>
> Public Type DEVMODE
> dmDeviceName As String * CCHDEVICENAME
> dmSpecVersion As Integer
> dmPelsHeight As Long
> dmDisplayFlags As Long
> dmDisplayFrequency As Long
> End Type
>
> How do I do in VB.NET ??
>
> Best regards
>
> Kim
>
>



Relevant Pages

  • RE: Converting VB6 Fileopen/input/close to vb.net
    ... swallow and spit it out as a single string. ... stand alone components set for those VB6 file methods(such as FileOpen, ... Dim file_num As Integer = FreeFile ... For standard binary file read/write, in .NET, you can use BinaryReader ...
    (microsoft.public.dotnet.languages.vb)
  • Re: Use of Mid Statement in VB.Net
    ... Dim buffer as New String(" "c, ... If you use VB6, then stick to your own group. ... Microsoft for the change in the language paradigm that VB.Net introduced. ...
    (microsoft.public.dotnet.languages.vb)
  • Re: Converting Quick Basic to Visual Basic
    ... "Bill McCarthy" wrote in message ... VB3 or earlier applications cannot be opened directly by VB6 IDE, and also require replacement of control libraries etc, etc. ... You still declare a String the same way and you assign and use strings the same way. ... could you imagine if every object had to have an ansi string property and a unicode string property for each property. ...
    (microsoft.public.vb.general.discussion)
  • Re: COM interop and Object Required
    ... string String ... int Long ... public class ComObject: IComInterface ... In VB6 I have added a reference to this class. ...
    (microsoft.public.dotnet.languages.csharp)
  • Re: My.Settings Questions
    ... You said an i quote "It works like VB6" refering to the my.settings class ... fact is that the My namespace is a language enhancement introduced in the VB ... Private Declare Function WritePrivateProfileString Lib "kernel32" _ ... ByVal lpFileName As String) As Long ...
    (microsoft.public.dotnet.languages.vb)

Loading