PLEASE HELP WITH STRUCTURES! - basic.visual

This is a discussion on PLEASE HELP WITH STRUCTURES! - basic.visual ; I am in the middle of creating a program, I have a structure like this: structure names dim first_name as string dim last_name as string dim address as string end structure inside the module I have dim astructure() as names ...

+ Reply to Thread
Results 1 to 2 of 2

PLEASE HELP WITH STRUCTURES!

  1. Default PLEASE HELP WITH STRUCTURES!

    I am in the middle of creating a program, I have a structure like
    this:

    structure names
    dim first_name as string
    dim last_name as string
    dim address as string
    end structure

    inside the module
    I have
    dim astructure() as names

    if I build a sort routine that tests the element of the array of
    structures such as:

    if astructure.first_name (i)> astructure. first_name then
    do switch


    do switch routine
    temp=astructure.first_name(i)
    astructure.first_name(i)=structure.first_name(i+1)
    astructure.first_name=temp

    what happens to the rest of the element of the array of structures do
    they go with the first one?

    In other words, does the whole structure get switch as a whole unit?

    John

  2. Default Re: PLEASE HELP WITH STRUCTURES!

    Is this a VB.NET question? If so, consider the following...

    Almost everybody in this newsgroup is using VB6 or lower. While you may get
    a stray answer to VB.NET questions here, you should ask them in newsgroups
    devoted exclusively to .NET programming. Look for newsgroups with either the
    word "dotnet" or "vsnet" in their name.

    For the microsoft news server, try these newsgroups...

    microsoft.public.dotnet.general
    microsoft.public.dotnet.languages.vb
    microsoft.public.vsnet.general

    There are some others, but these should get you started.

    Rick - MVP





    "RBCC" <putgarbagehere@email.com> wrote in message
    news:Xns9474C9421AF4Bnewsgroupsveinet@216.196.97.132...
    > I am in the middle of creating a program, I have a structure like
    > this:
    >
    > structure names
    > dim first_name as string
    > dim last_name as string
    > dim address as string
    > end structure
    >
    > inside the module
    > I have
    > dim astructure() as names
    >
    > if I build a sort routine that tests the element of the array of
    > structures such as:
    >
    > if astructure.first_name (i)> astructure. first_name then
    > do switch
    >
    >
    > do switch routine
    > temp=astructure.first_name(i)
    > astructure.first_name(i)=structure.first_name(i+1)
    > astructure.first_name=temp
    >
    > what happens to the rest of the element of the array of structures do
    > they go with the first one?
    >
    > In other words, does the whole structure get switch as a whole unit?
    >
    > John




+ Reply to Thread

Similar Threads

  1. Control structures
    By Application Development in forum PHP
    Replies: 2
    Last Post: 11-06-2007, 02:56 PM
  2. difference of structures b/w 'C' and 'C++'
    By Application Development in forum c++
    Replies: 1
    Last Post: 10-19-2007, 12:14 AM
  3. structures and pointer
    By Application Development in forum c++
    Replies: 6
    Last Post: 09-27-2006, 01:10 AM