+ Reply to Thread
Results 1 to 2 of 2

Initialize or Assign Array Values

  1. #1
    Registered User
    Join Date
    01-14-2008
    Posts
    26

    Initialize or Assign Array Values

    I have the following data in a spreadsheet:

    No. Name Type Location Module

    1 .. .. .. ..
    2 .. .. .. ..
    3 .. .. .. ..

    ... .. .. .. ..

    100 .. .. .. ..

    I want Module to be an Array of 28 and all of them to be initialized with the ModuleName: "Mod_ABCD" i.e,
    Module[0] = "Mod_ABCD"
    Module[1] = "Mod_ABCD"
    ..
    Module[27] = "Mod_ABCD"

    1. How to program this? Is there any initialization statement where in I can do something like this: Module[1:28] = {"Mod_ABCD"}

    2. If not, can I assign it in a loop (for loop / do loop )? How & where to write it?

    Thanks
    ap

  2. #2
    Forum Expert
    Join Date
    01-15-2007
    Location
    Brisbane, Australia
    MS-Off Ver
    2007
    Posts
    6,591
    Hi

    Assuming that the data is in the range E1:E28 then try

    Please Login or Register  to view this content.
    rylo

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

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

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1