Allegro.cc - Online Community

Allegro.cc Forums » Programming Questions » VB.NET structures and stuff

This thread is locked; no one can reply to it. rss feed Print
VB.NET structures and stuff
van_houtte
Member #11,605
January 2010
avatar

Hi,

I got this data type

Structure Order
    Dim Topic As String
    Dim Subtopic As String
    Dim Part As String
    Dim Comment As String
    Dim Price As String
End Structure

And I want to be able to use stl vectors like in C++, it makes data management easier for me. What's the vb.net equivalent, havent had much luck finding

-----
For assistance, please register and click on this link to PM a moderator

Sometimes you may have to send 3-4 messages

jmasterx
Member #11,410
October 2009

Neil Walker
Member #210
April 2000
avatar

Don't know if this has any bearing, but remember Structs in .NET are value types. So when you add your struct to the list you're really just adding a copy of the struct and not the actual struct.

Neil.
MAME Cabinet Blog / AXL LIBRARY (a games framework) / AXL Documentation and Tutorial

wii:0356-1384-6687-2022, kart:3308-4806-6002. XBOX:chucklepie

van_houtte
Member #11,605
January 2010
avatar

Thanks jmasterx

-----
For assistance, please register and click on this link to PM a moderator

Sometimes you may have to send 3-4 messages

Go to: