MathScript syntax question

One can tell me why it does not compile.  I get a red X on the last line, and the variable LampV is shown in red and is output.

I seem to have a problem using multiple conditional statements in a script.

Deleting the last conditional statement removes the error.  The error refers to the last line and said ' line 14, column 1: expected EOF, found "end"

Thank you

If (RadLampV > IrrLampV)
Bench = "Radiance."
CradleT = RadCradT;
LampV = IrrLampV;
LampT = IrrLampT;
on the other
LampV = RadLampV;
CradleT = RadCradT;
LampT = IrrLampT;
Bench = "O_Irradiance";
end;
If LampV<>
Bench = 'unknown ';
end;

I think your mistake is perhaps than your second if the statement is capitalized. Try to replace 'If' with 'if '.

Kevin C.

National Instruments

Tags: NI Products

Similar Questions

  • MathScript syntax error

    Can someone let me know what the syntax error in the present

    If ((A > = 1,70) & (a)<>
    A = 1
    If ((A > = 1.34) & (a)<>
    A = 1
    If ((A > = 0,925) & (a)<>
    B = 1
    If ((A > = 1.305) & (a)<>
    B = 1
    If ((A > = 1,935) & (a)<>
    C = 1
    If ((A > = 1,72) & (a)<>
    D = 1
    If ((A > = 1,70) & (a)<>
    E = 1
    If ((A > = 1,65) & (a)<>
    F = 1
    If ((A > = 1,29) & (a)<>
    G = 1
    If ((A > = 1.0) & (a)<>
    H = 1
    on the other
    I have = 1
    end

    Thank you chris

    I suppose you want all these s if (except the first) to be an elseif.  If this isn't the case, then you want to terminate after each individual case.

    In addition, it is not a bad idea to start one; at the end of each statement.  (Not the lines containing if, elseif or end)

    In addition, you probably want to use & instead of &.  I don't know if mathscript makes a distinction between the two, but I know some languages.  The help file for use mathscript &, then I'd go with that.  Someone at - it care to confirm if there is a difference?

  • (Newbie question) Interval syntax question / explanation of the error

    Ok. So I reach into a big ticketing system based on Oracle (64 bit 11g 11.2.0.1.0) where they store 'ticket-open-time', 'ticket-fixed-time' and the interval of 'time-to-repair. Initially I wanted to calculate the number of minutes of the time of repair. 6 hours and countless Google searches later, I'm not about to the appropriate syntax. I was able to work around the problem through a simple calculation based on the values open and resolved. What I can't understand, is why I can't apply the same syntax extract just the interval field.

    Here's a simplified query that works:

    SELECT
    To_char (OpenTimeGMT, ' ' the HH24: MI: SS DD/MM/YYYY) "OT".
    , TO_CHAR (ResolvedTimeGMT, ' ' the HH24: MI: SS DD/MM/YYYY) "RT".
    , TO_CHAR (TimeToRepairGMT, ' ' the HH24: MI: SS DD/MM/YYYY) "TTR".
    excerpt (days of day (ResolvedTimeGMT - OpenTimeGMT) the second) "days".
    excerpt (time of day (ResolvedTimeGMT - OpenTimeGMT) the second) "hours."
    excerpt ((ResolvedTimeGMT - OpenTimeGMT) minute second day) "Minutes."
    , (extract (day of (ResolvedTimeGMT - OpenTimeGMT) day to second)) * 24 * 60 +.
    (extract (hour of the day (ResolvedTimeGMT - OpenTimeGMT) the second)) * 60 +.
    extract (minute since (ResolvedTimeGMT - OpenTimeGMT) second day) "TotalMinutes".
    FROM there where

    Which produces:
    [OT] 24/09/2012 20:06:29
    [RT] 26/09/2012 13:56:13
    [TTR] 4000/02/01 17:49:44 - Note the year.
    [Days] 1
    [Hours] 17
    [Minutes] 49
    [TotalMinutes] 2509

    The question:
    When I write [extract (minute of day (ResolvedTimeGMT - OpenTimeGMT) the second) "Minutes"], I get 49 minutes I expect

    When I write [extract (minute since (TimeToRepairGMT) second day) "Minutes"], I get an error "syntax error was found in the interval value expression.

    The three fields are declared as 'date' DESC command (even if TimeToRepairGMT is clearly an interval, based on the value of "4000/02/01 17:49:44" ""). While I can plough with my work-around, I really want to know how to deal with intervals that are stored in Oracle tables as dates. Any help is appreciated!

    Hello

    Welcome to the forum!

    966091 wrote:
    Ok. If I am living in a large (64 bit 11g 11.2.0.1.0) Oracle-based ticketing system

    Thanks, that's very useful. Always give your version (11.2.0.1.0) whenever you post a question.

    where they store 'ticket-open-time' and "ticket-fixed-time" interval "time-to-repair. Initially I wanted to calculate the number of minutes of the time of repair. 6 hours and countless Google searches later, I'm not about to the appropriate syntax. I was able to work around the problem through a simple calculation based on the values open and resolved. What I can't understand, is why I can't apply the same syntax extract just the interval field.

    Here's a simplified query that works:

    SELECT
    To_char (OpenTimeGMT, ' ' the HH24: MI: SS DD/MM/YYYY) "OT".
    , TO_CHAR (ResolvedTimeGMT, ' ' the HH24: MI: SS DD/MM/YYYY) "RT".
    , TO_CHAR (TimeToRepairGMT, ' ' the HH24: MI: SS DD/MM/YYYY) "TTR".
    excerpt (days of day (ResolvedTimeGMT - OpenTimeGMT) the second) "days".
    excerpt (time of day (ResolvedTimeGMT - OpenTimeGMT) the second) "hours."
    excerpt ((ResolvedTimeGMT - OpenTimeGMT) minute second day) "Minutes."
    , (extract (day of (ResolvedTimeGMT - OpenTimeGMT) day to second)) * 24 * 60 +.
    (extract (hour of the day (ResolvedTimeGMT - OpenTimeGMT) the second)) * 60 +.
    extract (minute since (ResolvedTimeGMT - OpenTimeGMT) second day) "TotalMinutes".
    FROM there where

    Which produces:
    [OT] 24/09/2012 20:06:29
    [RT] 26/09/2012 13:56:13
    [TTR] 4000/02/01 17:49:44 - Note the year.
    [Days] 1
    [Hours] 17
    [Minutes] 49
    [TotalMinutes] 2509

    The question:
    When I write [extract (minute of day (ResolvedTimeGMT - OpenTimeGMT) the second) "Minutes"], I get 49 minutes I expect

    When I write [extract (minute since (TimeToRepairGMT) second day) "Minutes"], I get an error "syntax error was found in the interval value expression.

    The three fields are declared as 'date' DESC command (even if TimeToRepairGMT is clearly an interval, based on the value of "4000/02/01 17:49:44" "").

    In fact, it is more likely that it is just a DATE, who got the year wrong somehow. Show how you have assigned values to these columns.

    While I can plough with my work-around, I really want to know how to deal with intervals that are stored in Oracle tables as dates. Any help is appreciated!

    The intervals are difficult to work. I suggest that you use very little, or not at all. Keep the storage points in time as DATEs, but store the length of the time as a NUMBER; either the number of minutes, hours, or days, depending on what is appropriate for your data and your business needs best.

    Let's say you decide to keep TimeToRepair as the number of minutes, the length of time of OpenTImeGMT to ResolvedTimeGMT. When you subtract one DATE from another in Oracle, the result is a NUMBER, the number of days between these two DATEs. To get the number of minutes, which multiplied by the number of minutes per day. So the forumla for TimeToRepair is

    (ResolvedTimeGMT - OpenTimeGMT) * 24 * 60
    

    If you store the length of time as a NUMBER, it is very easy to get totals and averages.

    If you want to display this number of minutes like days hours: minutes: seconds, then you can use an INTERVAL, but just for display. Use the NUMTODSINTERVAL function to convert the NUMBER to an INTERVAL DAY TO SECOND:

    NUMTODSINTERVAL (TimeToRepair, 'MINUTE')
    

    I hope this helps you.
    Whenever you have a question, it is useful to show an example of what you have tried and what results you want to get. Post CREATE TABLE and instructions INSERT for examples of data and the results you would get from these data. You will get answers sooner if your question is specific. "How work intervals?" is a very difficult question. Many people who can help you to not trying to answer a question as broad. But if you can formulate your question as: "I need help understanding intervals. Beginning with this data... I tried thinking it would follow... but instead, I got... Why is this? The manual SQL language, to... says..., why is... happening? ", and then it will be easier to help you.

  • interpolation syntax question

    Dear list

    I have a question of basic syntax that I realized that I'm not very familiar with in flash8. It came when I tried to create a combobox to allow the user to choose different types of interpolation and the relaxation of the Tween class.

    I created two comboboxes, one with all the values of interpolation (Regular, Strong, elastic...) and the other with all values of acceleration (easeIn, easeOut...)

    When I trace the variable comboFunc below it draw a function, but once that I plug it on the method of tweenExtended nothing happens. It seems to interpolate all the same way.

    What I'm missing here?

    all the tracks are appreciated.

    Thank you

    Stephan



    -----------------
    var tweenType = [_root.growingTween.selectedItem.data];
    var easeType = [_root.growingEase.selectedItem.data];
    var comboFunc = [tweenType + easeType];
    This.Tween = new TweenExtended (this.ring, ["_xscale", "_yscale"], ([tweenType + easeType]), eval [this.ring._xscale, this.ring._yscale], [_root.getMinSize (), _root.getMinSize (), _root.getShrinkSpeed (), true);


    Not real clear about your code snippet. But I guess that you can store the name method acceleration under a label and the tween as the data class. Then use the selectedItem.data to the Tween class. But you can also watch the code attached for another example.

  • Java syntax question

    I'm sure it's very banal, but I saw this syntax used in the development of BlackBerry:

    //default gauge
        final GaugeField gf1;
        {
          gf1 = new GaugeField();
          gf1.setLabel("default gauge:");
          gf1.setValue(12);
          fields.addElement(gf1);
        }
    

    What is the purpose of braces here? There is no method/condition/iteration header before, then what is it in the code? I've seen this used in books and tutorials of BlackBerry. I can't find all the details on its use. Can someone shed light on this or point me to the material that covers this syntax? trivial, but it's probably...

    c it is a compound statement. in this block, all defined variables are no longer valid within this block. That's all.

  • other syntax question on two points

    I had learned that the meaning of ".." is to access the child nodes in XML.

    but I saw this in the flex source, < mx.skins.halo.RadioButtonIcon.as >

    override the updateDisplayList(w:Number,_h:Number):void function

    {

    ...

    ...

    g... beginFill (radioColor);
    }

    where the variable g is a graphics object. ordinary, it should be 'g.beginFill', I thought.

    now my question is, what does it mean ".." means?

    Thanks for any help.

    I think it's because Flex uses a structure tag (MXML) language, so the operator down ".." would be valid in a context of structure of nodes in Flex.

  • AS3 syntax question

    Hello

    Having a problem or issue of syntax. When I'm writing this in AS3, I get the right result: 4

    var wordArray1:Array = ['test', 'Apple', 'orange', 'olive'];

    var theLevel:Number = 1;

    trace (root ["wordArray" + likethis] .length);

    but when I write it in this way, inside a function, I get an error:

    function test (): void

    {

    var wordArray1:Array = ['test', 'Apple', 'orange', 'olive'];

    var theLevel:Number = 1;

    trace (root ["wordArray" + likethis] .length);

    }

    test();

    I don't understand what I am doing wrong? Any ideas?

    in the second case, wordArrays scope is limited to the function.

    so when you try to address wordArray with root.wordArray, the main timeline is unclear on this issue.

    simple solution: declare it outside the function.

    var wordArray1:Array;

    function test (): void

    {

    wordArray1 = ['test', 'Apple', 'orange', 'olive'];

    var theLevel:Number = 1;

    trace (root ["wordArray" + likethis] .length);

    }

    test();

  • CSS syntax question

    "Now that I have my foot in the door), are there pieces read absolutely understand how Adobe Edge uses JQuery to advanced level a little more (not that I am). The JavaScript API gives some decent clues, but this isn't ASDocs with examples of use fully annotated.

    That said, what is the correct syntax to get and set the z-index of a symbol, I have create dynamically from the prototype in the Panel resources. Presents all works, but I still have to hit the correct syntax to set the depth of the symbol, which is hide other objects I need more closely in the foreground. It works:

    playNext() {} function

    Slovak ++;

    var audioID = "slide" + Slovak;

    playSound (audioID);

    var slideID = "slide_" + Slovak;

    sym.createChildSymbol (slideID, "Stage");

    but it does not work (EC.info you can consider an alert if you do not use Commons Edge)

    EC.info (sym.$('slideID').css ('z-index'));

    EC.info (sym. $(slideID).css('z-index'));

    EC.info (sym.$('slideID').zIndex);

    EC.info (sym. $(slideID) .zIndex);

    EC.info (sym.$('slide_1').css ('z-index'));

    EC.info (sym.$('slide_1').zIndex);

    EC.info (slideID.zIndex);

    }

    I'm close to one of them? Of course, I want to set the z-index but it would be a soft step.

    I also tried defining the child object, resulting in a variable with the same attempts, but nothing sticks yet.

    var mySlide = sym.createChildSymbol (slideID, "Stage");

    EC.info ("my slide is" + mySlide);

    EC.info (sym.$('mySlide').css ('z-index'));

    EC.info (sym. $(mySlide).css('z-index'));

    EC.info (sym.$('mySlide').zIndex);

    EC.info (sym. $(mySlide) .zIndex);

    EC.info (sym.$('mySlide').css ('z-index'));

    EC.info (sym.$('mySlide').zIndex);

    EC.info (mySlide.zIndex);

    Thank you very much.

    Ah, this works in your example rect (try to set the z-index of a negative):

    function showCover() {}

    myRectangle var = sym.createChildSymbol ("Slide1", "Stage");

    myRectangle.getSymbolElement (.css({"z-index":-100});))

    }

  • Simple syntax question

    Hey everybody,

    I'm doing a match/replace with a template that contains special characters and run in syntax errors in a Flex 3 application. I want just the following regex to compile... (also replacing the html tags with "")

    value.replace(/</?\w+((\s+\w+(\s*=\s*(?:".*?"|'.*?'|[^'">\s]+))?)+\s*|\s*)/?>/g, "");

    On a side note, the pattern /<.*?>/g wouldn't work in cases where there are html entities between tags, 
    like so:
    
    <TEXTFORMAT LEADING="2">
    <P ALIGN="LEFT">
    <FONT FACE="Arial" SIZE="11" COLOR="#4F4A4A" LETTERSPACING="0" KERNING="0"><one</FONT>
    </P>
    </TEXTFORMAT><TEXTFORMAT LEADING="2">
    <P ALIGN="LEFT">
    <FONT FACE="Arial" SIZE="11" COLOR="#4F4A4A" LETTERSPACING="0" KERNING="0">two</FONT>
    </P>
    </TEXTFORMAT>
    
    The first regex would get both "<one" and "two", but the second would only get "hi"

    Thank you!

    L stabby

    This one works for me:

    value. Replace(/<\ \w+((\s+\w+(\s*="\s*(?:" .*?"|'.*?'|[^'""="">\s]+))?) +\s*|\s*)\/?>/g, "");

    (Same as yours, but hot escaping the /)

    Are < and=""> special characters can only be between tags? [in this case, even if /<.*?>/g wouldn't work, able to /<><>] *? > / g be enough?

  • Simple task - syntax Question (how do you pass variables from one component to another component - databinding)?

    Hi all

    I'm moving some width/height/URL of a Video Player component to a Social Bookmarking component incorporate text entry field. (for people capture and share videos).

    I know that it's a simple task, but it's the end of the day and I seem to have a brain failure... What is the syntax to achieve this? Do I have to import the video player component? These widths/heights/URLs are all generated dynamically by a XML... should I be pulling the XML or reuse just variables already existing in the Video Player component?

    Here is my code...

    Video player:

    [Bindable]

    var public source: String = "";

    [Bindable]

    public var autoPlay:Boolean = false;

    [Bindable]

    public var fullScreenMode:Boolean = false;

    [Bindable]

    public var clipTag:String = '_movie;

    [Bindable]

    public var iag_code:String = "";

    [Bindable]

    public var officialURL:String = "http://www.movies.com/"; ""

    [Bindable]

    public var referer:String = 'unknown ';

    [Bindable]

    public var gID: String;

    [Bindable]

    public var starterImageURL:String = 'http://www.movies.com/jazzmaster/images/default_starter_image.

    [Bindable]

    public var oldWidth:Number;

    [Bindable]

    public var oldHeight:Number;

    Component sharing:

    < mx:HBox

    Height = "10%".

    horizontalCenter = "-25".

    Red = '0 '.

    paddingBottom = "5" >

    < mx:Text text = "" Embed Code: "paddingTop ="1"color ="#FFFFFF"fontSize ="12"/ >"

    < mx:TextInput text = "{oldWidth}" / >

    < / mx:HBox >

    The above code generates an error... "Any attempt of property inaccessible oldWidth via a reference with a static type com:SharingBookmarks."

    Thank you all!

    DK

    Try this...

    Create a flex project and add a folder called 'src '.

    create a new component MXML named "VideoComp.mxml" and copy/paste

    http://www.Adobe.com/2006/mxml"width ="400"height ="300">

    [Bindable]

    public var videoWidth:int = 300;

    [Bindable]

    public var videoHeight:int = 300;

    ]]>

    create a new component MXML named "SharingComp.mxml" add copy/paste this...

    http://www.Adobe.com/2006/mxml"width ="400"height ="300">

    [Bindable]

    public var videoWidth:int;

    [Bindable]

    public var videoHeight:int;

    ]]>

    and here's the main.mxml file

    http://www.Adobe.com/2006/mxml '.

    xmlns:src = "src.*" >

    private void doSomething (): void

    {

    sharingComp.videoHeight = videoComp.videoHeight;

    sharingComp.videoWidth = videoComp.videoWidth;

    }

    ]]>

    Hope this helps,

    BaBo,

  • Flashback database syntax question

    EE Oracle 10.2.0.4 on OEL 5

    This should be a matter of syntax simple, right?

    Practice some scenarios to return back and looking at the syntax to
    http://download.Oracle.com/docs/CD/B19306_01/backup.102/b14194/rcmsynta032.htm#sthref515

    In the examples, they show a
    RMAN> FLASHBACK DATABASE TO TIMESTAMP
       TO_TIMESTAMP('2002-03-11 16:00:00', 'YYYY-MM-DD HH24:MI:SS');
    but the real syntax diagram does not show an option "TIMESTAMP", just "on TIME" and "AHEAD of TIME".

    Based on, let's try a simple test
    RMAN> flashback database to time = '18-MAY-2010 12:50:00';
    
    Starting flashback at 18-MAY-2010 13:10:00
    using channel ORA_DISK_1
    
    RMAN-00571: ===========================================================
    RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============
    RMAN-00571: ===========================================================
    RMAN-03002: failure of flashback command at 05/18/2010 13:10:00
    ORA-01830: date format picture ends before converting entire input string
    Hmm, okay, then what format does? In fact, he reported in two different formats:
    Starting flashback at 18-MAY-2010 13:10:00
    and
    RMAN-03002: failure of flashback command at 05/18/2010 13:10:00
    If pressing on some others, let's try that should be obvious:
    RMAN> flashback database to time = to_date('05/18/2010 12:50:00','mm/dd/yyyy hh24:mi:ss')
    
    RMAN-00571: ===========================================================
    RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============
    RMAN-00571: ===========================================================
    RMAN-00558: error encountered while parsing input commands
    RMAN-01009: syntax error: found "identifier": expecting one of: "double-quoted-string, single-quoted-string"
    RMAN-01008: the bad identifier was: to_date
    RMAN-01007: at line 1 column 30 file: standard input
    
    
    RMAN-00571: ===========================================================
    RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============
    RMAN-00571: ===========================================================
    RMAN-00558: error encountered while parsing input commands
    RMAN-01009: syntax error: found "(": expecting one of: "allocate, alter, backup, beginline, blockrecover, catalog, change, connect, copy, convert, create, crosscheck, configure, duplicate, debug, delete, drop, exit, endinline, flashback, host, {, library, list, mount, open, print, quit, recover, register, release, replace, report, renormalize, reset, restore, resync, rman, run, rpctest, set, setlimit, sql, switch, spool, startup, shutdown, send, show, test, transport, upgrade, unregister, validate"
    RMAN-01007: at line 1 column 37 file: standard input
    
    RMAN>
    Built on the docs and other resources on the web, I find several variations on the theme, but all end up throwing one of the errors above.

    I can't believe, I've been reduced to what should be a matter of doc, but in this case, it's the documentation examples which throw errors. I'm going blind? The brain cell was killed by that I had last week of beer criticism? ;-)

    From:

    RMAN> flashback database to time = to_date('05/18/2010 12:50:00','mm/dd/yyyy hh24:mi:ss')
    
    RMAN-00571: ===========================================================
    RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============
    RMAN-00571: ===========================================================
    RMAN-00558: error encountered while parsing input commands
    RMAN-01009: syntax error: found "identifier": expecting one of: "double-quoted-string, single-quoted-string"
    RMAN-01008: the bad identifier was: to_date
    RMAN-01007: at line 1 column 30 file: standard input
    

    Could you please try adding double quotes around the expression date?

     flashback database to time = "to_date('05/18/2010 12:50:00','mm/dd/yyyy hh24:mi:ss')";
    
  • SQL loader syntax question

    SQL * Loader: release 11.1.0.7.0 - Production on Wed Mar 18 07:21:37 2010

    Copyright (c) 1982, 2007, Oracle. All rights reserved.

    SQL * Loader-350: at line 1 syntax error.
    Expecting keyword SUPPORT, found "DI".
    DIA¡±a
    ^

    My sqlldr file looks like this:

    sqlldr control=C:\data\ctl\ss.ctl log=C:\data\logs\ss.log userid = user/password errors = 999 discard=C:\data\discard\ss.dis

    control file looks like this:

    DOWNLOAD THE DATA
    INFILE ' C:\data\SS. TXT' "STR"\r\n"
    REPLACE
    IN THE SS TABLE
    FIELDS TERMINATED BY '; '.
    TRAILING NULLCOLS
    (
    ACCOUNT_NBR TANK,
    ADDR1 TANK,
    ADDR2 TANK,
    ADDR3 TANK,
    ADDR4 CHAR,
    TANK OF THE CITY,
    STATE TANK,
    POSTCODE TANK,

    .......
    more columns are all the same syntax and char column name
    )

    I can load this table using enterprise manager but when you use the sqlldr his does not work.
    Something stand out?

    Published by: mlojan on March 18, 2010 05:33

    The only thing I can think is some characters problem between the file of control and operating system/oracle server.

    You have the control file using a text editor such as Notepad or wordpad haven't you? You have not used something like MS Word?

  • Reference another table without specifying the referenced column: syntax question

    create table test (key primary number col1_pk,)

    number col2_fk, col1, col2 number, check constraint test_ck (col1_pk > 0 and col1 > 0),

    constraint fk_constraint foreign key (col2_fk) references test);

    in this example, for bold hand why isn't there a reference included after column

    test references?

    is it because Oracle knows he must refer to the pk column?

    > what is Oracle knows he must refer to the pk column

    Yes.

  • Pro * c syntax question

    Why this won't compile?

    INSERT EXEC SQL in sub-Saharan Africa (id)

    Select (select max (id)

    s SS

    where s.id = t.id)

    of temp_sca t

    where there is no

    (select null

    ACS ssa 2

    where ssa2.ss_id = (select max (id)

    s SS

    where s.x = t.ss_id)

    and ssa2.x = t.x)


    The error I get:

    Select (select max (id)

    ........................... 1

    CDP-D-02201, encountered the symbol "max" when expecting one fo the following:

    ( ) * + ...

    The symbol "(" a été substituée à "max" continuer) "

    Can we incorporate not a select statement in the select clause in Pro * C?

    Oracle 11g on Solaris 10

    Answer:

    Reworded the statement as a SQL dynamic, and everything goes well:

    strcpy ((Char*) insert_Str.arr,)

    "insert into ssa (id) \n".

    "select (select max (id)) \n".

    "...

    etc...

    EXEC SQL EXECUTE IMMEDIATE: insert_Str;

    problem solved.

  • ActionScript 2 syntax question

    I have a style sheet I want to apply to a large group of dynamic text fields, but not to the entire fla. Is it possible to address all of my content and apply the sheet in a single statement?

    now, I have

    var myStyleSheet:TextField.StyleSheet = new TextField.StyleSheet ();

    myStyleSheet.load ("styles.css");

    content_box1. StyleSheet = myStyleSheet;

    content_box2. StyleSheet = myStyleSheet;

    content_box3. StyleSheet = myStyleSheet;

    content_box4. StyleSheet = myStyleSheet;

    content_box5. StyleSheet = myStyleSheet;

    etc etc...

    I'm new to actionscript 2 and don't know how to do the loop structure. Currently, there are 15 of these 'boxes', but it could grow, how would I go to do a sort of loop ' for/next"as...

    For n = 1 to 15

    content_box (n) .styleSheet = myStyleSheet;

    next n

    OR

    could do you some sort of If / then structure?

    OR simply

    content_box1. StyleSheet, content_box2.styleSheet, content_box3.styleSheet, content_box4.styleSheet, content_box5.styleSheet, content_box6.styleSheet, etc. is myStyleSheet;

    A solution based on the first concept would cause preferred that I could set up vars dynamically updated so it would be very easy to add mailboxes and content on the fly via the xml file.

    Thank you

    Joel

    You can use the support rating for the channels to target objects...

    for (i = 1; i<16;>

    This ["content_box" + i] .styleSheet = myStyleSheet;

    }

Maybe you are looking for