Alpha Video Training
Results 1 to 3 of 3

Thread: Initialize a structure

  1. #1
    "Certified" Alphaholic Marcel Kollenaar's Avatar
    Real Name
    Marcel
    Join Date
    Apr 2003
    Location
    Twente
    Posts
    1,514

    Default Initialize a structure

    Hi,

    Is it necessary to initialize a structure?

    Given:

    TYPE MyType
    M1 as N
    M2 as C
    END TYPE

    DIM MoMo as {MyType}

    Are the members M1 and M2 after dimming set to 0 (M1) and "" (M2)?

    Or do I have to assign these values to these members first.

    MoMo.M1 = 0
    MoMo.M2 = ""

    Regards,

    Marcel

  2. #2
    "Certified" Alphaholic
    Real Name
    Peter Wayne
    Join Date
    Apr 2000
    Posts
    1,728

    Default RE: Initialize a structure

    Marcel,
    From what I can tell, they are initialized when the structure is initialized. Date elements are initialized to blank values { / / }, and logical elements are initialized to False.

    - Peter

  3. #3
    "Certified" Alphaholic Marcel Kollenaar's Avatar
    Real Name
    Marcel
    Join Date
    Apr 2003
    Location
    Twente
    Posts
    1,514

    Default RE: Initialize a structure

    Hi Peter,

    Thanks for the info.

    Marcel

Similar Threads

  1. cannot initialize printer database
    By Juanita in forum Alpha Four Versions 7 and 8
    Replies: 6
    Last Post: 01-01-2015, 08:23 PM
  2. Initialize from table
    By BRIAN GRAY in forum Alpha Five Version 5
    Replies: 0
    Last Post: 01-26-2004, 07:12 AM
  3. initialize from table
    By BRIAN GRAY in forum Alpha Five Version 5
    Replies: 1
    Last Post: 09-14-2003, 07:43 AM
  4. Initialize PDF driver
    By Andrew Osyany in forum Alpha Four Versions 7 and 8
    Replies: 8
    Last Post: 04-16-2003, 01:40 PM
  5. Using Database Structure for Import Structure?
    By Ken Wargon in forum Alpha Five Version 4
    Replies: 9
    Last Post: 01-25-2002, 08:10 AM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •