Newbie ? about variables

I am completely ignorant concerning CF, for that matter I am generally ignorant as well.  I own a website written in CF that I need to change.  I am changing the URL to the site and need to update links within the site to reflect the changes.  Most of the links contain a variable which would make the job easy but…. I do not know where the variable is set.  I have pasted a sample page of code below:
<cfinclude template="urlhelp.cfm">
<cflock scope="application" type="exclusive" timeout="30"><cfset variables.homepage = homepage></cflock>
<cfparam name="title_tag" default="Lifestyles Direct Tan Through Suits">
<cfparam name="meta_description" default="Lifestyles Direct Tan Through swimwear allows you to achieve the perfect all over tan.  Our fashionable line of women’s swimwear and men’s swimwear is guaranteed to be tan through, but not see through wet or dry!">
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<meta name="description" content="<cfoutput>#meta_description#</cfoutput>">
<title><cfoutput>#title_tag#</cfoutput></title>
</head>
<link href="<cfoutput>#homepage#</cfoutput>/solartan.css" rel="stylesheet" type="text/css">
<body leftmargin="0" topmargin="0" marginwidth="0" marginheight="0">
<table width="100%" border="0" cellspacing="0" cellpadding="0">
  <tr>
    <td><table width="100%" border="0" cellpadding="0" cellspacing="0" background="<cfoutput>#homepage#</cfoutput>/images/beach_bkg.jpg">
I see in line 2 the reference to variables.homepage = homepage but do not understand how that sets anything.  I also see where the variable is called in the last line I posted as: background="<cfoutput>#homepage#</cfoutput>/images/beach_bkg.jpg"
If you need more information I will do my best to provide it.  Thanks in advance for any help!

ColdFusion is actually one of those tools that it will be well worth your time to get to know much better.  (There are also third-party implementations.)
Of the various platforms I have used in past lives, there is "a subtle but important cleverness" to what they've done and how they've done it.  There is much more to this system than initially meets the eye, vis-a-vis other more well-known systems like PHP.  It will be worth your time to get to know it better.
According to the online documentation such as http://livedocs.adobe.com/coldfusion/8/htmldocs/, in the section ColdFusion Developer's Guide / Using ColdFusion Variables / Using Periods in Variable References, the "Variables.variable" syntax is a reference (in this case) to what ColdFusion calls a scope.  (This particular scope-name is actually mentioned on that page.)
Two sections down, in ColdFusion Developer's Guide / Using ColdFusion Variables / About Scopes, we find a complete list of these "scopes" including the "Variables." scope.
The particular statement that you refer-to looks like a "do-nothing" because this scope is actually implied:  the statement appears to be assigning the variable to itself.  Nevertheless, ColdFusion has been around for a while now and it has evolved quite a bit during that time.  Useful things have been added to the system in each of its incarnations.  You might be looking at older code wherein such methods were deemed to be necessary.  Or it could be a bug.  Who knows.

Similar Messages

  • Documentation about variable types & their processing in i_step = 1, 2 etc.

    Hello experts,
    is there any documentation about variable types and their processing in i_step = 1, 2 etc.? I know there is note 492504 "Dependent customer exit-type variables", but I don't understand, whether a variable which is NOT "Ready for input" will be processed in i_step = 1 or not  (quote of SAP library: "i_step = 1: Call takes place directly before variable entry."). I experienced coincidentally, that some variables not "Ready for input" will be processed there and some not.
    Furthermore it is an error, isn't it? Why has a variable without input possibility to be processed before input? Is this really the case?
    Confused, any hints are welcomed!
    Regards M.L.

    for I_STEP = 1
    Call before the variable screen .
    for I_STEP = 2
    Call after variable entry. This step is only started up when the same variable is not input ready and could not be filled at I_STEP=1.
    for I_STEP = 3
    In this call, you can check the values of the variables. Triggering an exception (RAISE) causes the variable screen to appear once more. Afterwards, I_STEP=2 is also called again.
    for I_STEP = 0
    The enhancement is not called from the variable screen. The call can come from the authorization check or from the Monitor.
    There is a good HOW to Guide which explains the importance of I_STEP :
    http://service.sap.com/~form/sapnet?_SHORTKEY=00200797470000078090&_SCENARIO=01100035870000000112&_OBJECT=011000358700002762582003E
    Another from SDN:
    https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sap.km.cm.docs/library/events/bw-and-portals-05/five%20ways%20to%20enhance%20sap%20bi%20backend%20functionality%20using%20abap.pdf

  • Java newb having variable trouble

    I'm taking an intro to object oriented programming class. Our teacher barly speaks English and spends the entire class time lecturing about what object oriented means rather than going over syntax and programming tips. I am so sick of hearing about car factories =(
    We are supposed to
    "Write an applet that paints the pie chart associated with five categories whose percentages are given by variables percentage1 to percentage5 and corresponding labels are given by variables label1 to label5."
    After spending 2 days on this, this is as far as I've gotten. I'm getting 19 errors and I just don't know what to do about any of them.
    Any help would be most appreciated.
    import javax.swing.JApplet;
    import java.awt.*;
    import java.util.Scanner;
    import java.lang.Math;
    public class Money extends JApplet
       public void paint (Graphics page)
    int percentage1 = 10;
    int percentage2 = 15;
    int percentage3 = 20;
    int percentage4 = 25;
    int percentage5 = 30;
    float workingstorage = 0;
    int anglestartingpoint = 0;
    String labe11 = "Rent and Utilities";
    String label2 = "Transportation";
    String labe13 = "Food";
    String labe14 = "Educational";
    String labe15 = "Miscellaneous";
    workingstorage = percentage1 * 3.6;
    percentage1 = Math.round(workingstorage);
    page.setColor (Color.blue);
    page.fillArc(10,10,300,300,anglestartingpoint,percentage1);
    page.drawString(label1,320,10);
    anglestartingpoint = percentage1;
    workingstorage = percentage2 * 3.6;
    percentage2 = Math.round(workingstorage);
    page.setColor (Color.green);
    page.fillArc(10,10,300,300,angelstartingpoint,percentage2);
    page.drawString(label2,320,30);
    angelstartingpoint = angelstartingpoint + percentage2;
    workingstorage = percentage3 * 3.6;
    percentage1 = Math.round(workingstorage);
    page.setColor (Colpage.fillArc (10,10,300,300,angelstartingpoint,percentage3);
    page.drawString(label3,320,50);
    angelstartingpoint = angelstartingpoint + percentage3;
    workingstorage = percentage4 * 3.6;
    percentage1 = Math.round(workingstorage);
    page.setColor (Color.yellow);
    page.fillArc (10,10,300,300,angelstartingpoint,percentage4);
    page.drawString(label4,320,70);
    angelstartingpoint = angelstartingpoint + percentage4;
    workingstorage = percentage5 * 3.6;
    percentage1 = Math.round(workingstorage);
    page.setColor (Color.cyan);
    page.fillArc (10,10,300,300,angelstartingpoint,percentage5);
    page.drawString(label5,320,90);
    ----jGRASP exec: javac -g censored
    Money.java:33: possible loss of precision
    found : long
    required: int
              percentage1 = Math.round(workingstorage);
    ^
    Money.java:36: cannot find symbol
    symbol : variable label1
    location: class Money
              page.drawString(label1,320,10);
    ^
    Money.java:40: possible loss of precision
    found : long
    required: int
              percentage2 = Math.round(workingstorage);
    ^
    Money.java:42: cannot find symbol
    symbol : variable angelstartingpoint
    location: class Money
              page.fillArc (10,10,300,300,angelstartingpoint,percentage2);
    ^
    Money.java:44: cannot find symbol
    symbol : variable angelstartingpoint
    location: class Money
              angelstartingpoint = angelstartingpoint + percentage2;
    ^
    Money.java:44: cannot find symbol
    symbol : variable angelstartingpoint
    location: class Money
              angelstartingpoint = angelstartingpoint + percentage2;
    ^
    Money.java:47: possible loss of precision
    found : long
    required: int
              percentage1 = Math.round(workingstorage);
    ^
    Money.java:49: cannot find symbol
    symbol : variable angelstartingpoint
    location: class Money
              page.fillArc (10,10,300,300,angelstartingpoint,percentage3);
    ^
    Money.java:50: cannot find symbol
    symbol : variable label3
    location: class Money
    page.drawString(label3,320,50);
    ^
    Money.java:51: cannot find symbol
    symbol : variable angelstartingpoint
    location: class Money
    angelstartingpoint = angelstartingpoint + percentage3;
    ^
    Money.java:51: cannot find symbol
    symbol : variable angelstartingpoint
    location: class Money
    angelstartingpoint = angelstartingpoint + percentage3;
    ^
    Money.java:54: possible loss of precision
    found : long
    required: int
              percentage1 = Math.round(workingstorage);
    ^
    Money.java:56: cannot find symbol
    symbol : variable angelstartingpoint
    location: class Money
              page.fillArc (10,10,300,300,angelstartingpoint,percentage4);
    ^
    Money.java:57: cannot find symbol
    symbol : variable label4
    location: class Money
              page.drawString(label4,320,70);
    ^
    Money.java:58: cannot find symbol
    symbol : variable angelstartingpoint
    location: class Money
              angelstartingpoint = angelstartingpoint + percentage4;
    ^
    Money.java:58: cannot find symbol
    symbol : variable angelstartingpoint
    location: class Money
              angelstartingpoint = angelstartingpoint + percentage4;
    ^
    Money.java:61: possible loss of precision
    found : long
    required: int
              percentage1 = Math.round(workingstorage);
    ^
    Money.java:63: cannot find symbol
    symbol : variable angelstartingpoint
    location: class Money
              page.fillArc (10,10,300,300,angelstartingpoint,percentage5);
    ^
    Money.java:64: cannot find symbol
    symbol : variable label5
    location: class Money
    page.drawString(label5,320,90);
    ^
    19 errors
    ----jGRASP wedge2: exit code for process is 1.
    ----jGRASP: operation complete.

    String labe11 = "Rent and Utilities"; // 'label' should end with an 'ell' not a 'one' char
    String label2 = "Transportation";
    String labe13 = "Food"; // 'label' should end with an 'ell' not a 'one' char
    String labe14 = "Educational";
    String labe15 = "Miscellaneous"; // 'label' should end with an 'ell' not a 'one' char
    workingstorage = percentage1 * 3.6;
    percentage1 = Math.round(workingstorage); // make that: '(int)Math.round(workingstorage)'
    page.setColor (Color.blue);
    page.fillArc(10,10,300,300,anglestartingpoint,percentage1);
    page.drawString(label1,320,10);
    anglestartingpoint = percentage1;
    workingstorage = percentage2 * 3.6;
    percentage2 = Math.round(workingstorage); // make that: '(int)Math.round(workingstorage)'
    page.setColor (Color.green);
    page.fillArc(10,10,300,300,angelstartingpoint,percentage2); // check the spelling of 'anglestartingpoint'etc. etc.
    kind regards,
    Jos

  • [newbie] about the ABAP trial

    Hi all,
    I have some little questions about ABAP trial that must sound like newbie questions ( that's why I tagged the title like that).
    I would like to know if the trial contain all I need to train in ABAP devlopment such as workbench, sm30, Data Dictionnay, and tools needed to be efficient as an abap technical consultant ?
    My second question is about the time limit of the licence ?
    IS there a restriction or can I use it as lon as I wish ?
    The goal for me is to learn technical points to improve my skills and I have no opprotunities to  do it daily in my work.
    Thanks a lot for help,
    Regards
    Morgan

    Hi Morgan.  Yes, the NetWeaver Sneak Preview system includes everything that you need to learn ABAP, it includes everything on the technology layer, so you will be good to go.  The license is good for 90 days, but it can be renewed indefinitly every 90 days, so a couple days before your 90 days is up, simply go get another licence and apply it. 
    Regards,
    RIch Heilman

  • Question about variable names

    k, so I have a for() loop that I want to take the value of String fs1 through String fs21 and add them in that order to a String fs. So, my question is, can you do this in a loop? you can do it in PHP, and that's what I'm accustom to.
    this is kinda what I want to make
    String fs = "";
    String fs1 = "foo";
    String fs21 = "bar";
    for(int i = 0; i<22;i++)
         fs+= (the variable "fs" plus the number of "i", so like fs1, fs2, fs3. . . fs21);
    System.out.println(fs);

    I think you want to use and array and be careful about using += that way.
    StringBuffer buffer = new StringBuffer();
    String[] fs = new String[2];
    String fs[0] = "foo";
    String fs[1] = "bar";
    for(int i = 0; i<22;i++)
         buffer.append(fs);
    return buffer.toString();

  • Question about variable declaration

    Hi all,
    I have a (in fact, two) question(s) about the declaration of variables inside of time-critical code, like render loops or similars.
    Does it really matter to use
    for (int k=0; k<1000; k++)
         for (int l=0; l<1000; l++)instead of
    int k;
    int l;
    for (k=0; k<1000; k++)
         for (l=0; l<1000; l++)concerning the speed of the app? What about doing this with non-basic types -> Objects, like to say Strings ?
    And are there any resources where I can find out more about that and other things like that ?
    Uhm, now it became three q's... Sorry to bother you ;-)
    Skippy

    whoo, maybe I got something totally wrong here.
    Does this mean that
    Image blah;
    for (int i=0; i<100; i++) blah = getImage("test"+i+".gif");will clean up a lot, because there are non-referenced Images and Strings?
    Hmm, anyone told me that
    for (int i = 0; i<100; i++)
    String test = "test"+i;
    System.out.println(test);
    }is disastrous code.
    Damn, ever thought to be a good Java programmer, but every day I get new thoughts I cannot solve these days...
    grmph
    Skippy

  • Ask help about  variable range

    1.if I define a variable at the start of the class: private JList flightsList;
    2.then write a method :public void doQuery( )
    String startAirport = (String)from.getSelectedItem();
    String endAirport = (String)to.getSelectedItem();
    String timeDate = date.getText();
    if( manager.getFlights(startAirport, endAirport,timeDate) != null )
         Flight [] flightQuery = manager.getFlights(startAirport, endAirport,timeDate);
         int length = flightQuery.length;
         String [] number = new String[length];
         System.arraycopy(flightQuery,0,number,0,length);
         //flightsList = new JList( number );
    3.then make a constructor,I want in the constructor invoke the method doQuery( ) ,then use
    code: flightsList = new JList( number );
         contents.add( new JScrollPane( flightsList) , BorderLayout.CENTER );
    I want to put arryaay number in the flightsList,then create a JScrollPane show the arraay number.
    But it does not work.I know it is the variable range,how to pass the number into the flightsList?
    I have thought about it for a long time.
    Please help me,thanks!

    I mean:
    example:
    public class look extends JFrame {
    //if I define a variable at the start of the class:
    private JList flightsList;
    //2.then write a method :public void doQuery( )
    String startAirport = (String)from.getSelectedItem();
    String endAirport = (String)to.getSelectedItem();
    String timeDate = date.getText();
    if( manager.getFlights(startAirport, endAirport,timeDate) != null )
    Flight [] flightQuery = manager.getFlights(startAirport, endAirport,timeDate);
    int length = flightQuery.length;
    String [] number = new String[length];
    System.arraycopy(flightQuery,0,number,0,length);
    //flightsList = new JList( number );
    3.then make a constructor,I want in the constructor invoke the method doQuery( ) ,
    public gui
    //use code
    flightsList = new JList( number );
    contents.add( new JScrollPane( flightsList) , BorderLayout.CENTER );
    in sort I want to put array number in the jlist( flightsList),then create a JScrollPane show the arraay number(number).
    //Your constructor assigns the private variable the value of what it is passed, then you can use it in other functions in the class.
    Is that what you are asking?
    no,I mean assingns a private variable,then write a method ,then invoke the method to put array number in the private variable.

  • Question from worse than Newbie about digital signatures and Adobe Reader.

    1st, thanks for taking the time to even look. 2nd, We are trying to use digital signature pads with PDF documents created by Documaker 11.4. In Adobe Pro there is a setting "Extend features in Adobe Reader" that will allow users with Adobe Reader to sign the PDF documents, however our "guy" creating the forms cannot find anything like this in Documaker. I've never used Documaker before and dont have a copy to even play with, but I was hoping there was a simple "go here, click this" answer.
    Any and all help is greatly appreciated.
    Thanks for you time,
    Jeff Holt

    I'm not expert on Documaker, but I'm close to them and will try to find an answer if I can be sure of the question.
    Documaker is capable of creating PDF signature markers in the output PDF. Those markers are compatible with tools like Acrobat which can sign the documents. Is your question about how to create the markers or are you doing that and finding that Acrobat Reader will not allow you to sign them?
    I'd have to research Adobe's licensing for Acrobat and Reader to see if that was the issue. I know certain features in Acrobat Reader are locked down by Adobe so you have to have another product license from them to enable the feature. If that is the problem, then I'm pretty sure that Documaker has no mechanism to provide a license token to specifically enable the Acrobat Reader product.
    If you can provide more specifics, I'll try to follow up. You may also contact Customer Support, if you haven't already and open a case there requesting a specific question be answered.
    Best Regards.

  • About variables in query designer

    what is the difference between replacement path and cmod in query designer?
    illustrate with an example?
    Regards,
    Bhavya K

    Hi,
    Replacement path:
    When you create a variable ,if you want the variable to be replaced with the value from an info object/another variable /Query/Hierarchy  then we select Replacement path
    CMOD:
    If the values for the variable are to be collected based on the ABAP logic written for the variable in CMOD then we go for CMOD selection.
    Refer the links for examples:
    http://www.sapks.com/2010/04/replacement-path-in-variable-reporting.html
    http://help.sap.com/saphelp_nw04/helpdata/en/2c/78a03c1178ad2ce10000000a114084/content.htm
    http://help.sap.com/saphelp_nw04/helpdata/en/03/6ba03cc24efd1de10000000a114084/content.htm
    Refer to this link for scenarios on Cmod from Mr.Surendar reddy
    http://wiki.sdn.sap.com/wiki/display/profile/Surendra+Reddy
    @ Sri
    Edited by: Sri kamesh on Mar 2, 2012 7:30 PM

  • Question about variables in TEXTCOLUMNS !!!HELP

    Hi friends,
    can somebody tell me if it is possible to put varaibles in textcolumns(VARCHAR2)
    like 'Das Fondsvolumen des Fonds betrdgt <Fondsvolumen>' (Fondsvolumen ist the variable--> which is a column of another table in the DB)
    into the database which will be evaluated when you query the column with the text????
    Is that possible and if yes how????
    thanxx
    Schobbi

    Schobbi,
    You could use a view for the
    selection part to replace
    your variables with the concrete
    values. Write a function that returns
    those values/the whole string and use
    it in this view, if you like.
    Hope this helps,
    Karsten

  • Question about variable scope

    Suppose theres a class that mixes colors.
    It has an constructor and two methods:
    public class ColorMix {
    //This is just an example but I've tried this and colors
    mix and show up correctly.
    public ColorMix() {
    cmColor = MixColors();
    } //e_constr
    private void mixColors() {
    //do something
    Color1 = createColors();
    Color2 = createColors();
    //etc
    private Color createColors() {
    //create some color-values
    //r, g and b ...
    Color anColor = new Color (r, g, b) //finally create color
    return anColor; //and return that color
    public Color cmColor;
    } // e_class_ColorMix
    My question is: Howcome and how the variable
    'anColor' is referred from the createColors-method to
    the mixColors-method?!? I thought that anColor would
    be out of scope, since its created in the createColors
    I've understood it would be erased once createColors
    is done with?!?
    Or did MixColors make it to the 'anColor' before garbage
    collector?
    Thanks,
    Jani

    I think you are mixing up variables and objects. A variable (like "anColor" in your example) is not the same as an object. A variable is just a reference to an object that exists somewhere in memory.
    Objects are eligible for garbage collection if the running program does not hold any reference to the object anymore.
    Your createColors() method creates a new object of type Color and stores a reference to it in the variable anColor. Then it returns the value of the variable (which is the reference to the Color object) to the calling method: mixColors. There you have another variable (Color1) which will hold the reference to the object.
    So the variable anColor goes out of scope at the end of method createColors(), but the program still has a reference to the object, stored in variable Color1.
    The object is still referenced by the program and will therefore not be garbage collected.
    I'd suggest you read the Java Tutorial: http://java.sun.com/docs/books/tutorial/java/index.html
    Jesper

  • Applescript question about variables

    I have a command in AppleScript that goes like this
                                  set focus check box "/app/con[0]/ses[0]/wnd[0]/usr/chk[1,12]"
    I would like to make the "12" a variable, and pass a new value by putting it in a loop
    Something like
                                  set focus check box "/app/con[0]/ses[0]/wnd[0]/usr/chk[1,x]"
    Any suggestions to how to pass variable x in a string?
    Thank you for your time

    "/app/con[0]/ses[0]/wnd[0]/usr/chk[1," & x & "]"
    Proof:
    set x to 12
    "/app/con[0]/ses[0]/wnd[0]/usr/chk[1," & x & "]" = "/app/con[0]/ses[0]/wnd[0]/usr/chk[1,12]" --> true
    Message was edited by: Pierre L.

  • Newbie:( error "Variable not found in class" help ppls

    Hello, making a program for school having a problem with my code
    because i am combining and modifying programs to suit my requirements,
    the error is as follows
    Error:(185) variable EXIT_ON_CLOSE not found in class javax.swing.JFrame
    can anyone give me some idea's on how to fix this or where i have gone wrong have i left something vital out?
    thanks

    Hello, making a program for school having a problem
    with my code
    because i am combining and modifying programs to suit
    my requirements, Script kiddie. I see. Bad approach.
    the error is as follows
    Error:(185) variable EXIT_ON_CLOSE not found in class
    javax.swing.JFrame
    can anyone give me some idea's on how to fix this or
    where i have gone wrong have i left something vital
    out?Weird error, since EXIT_ON_CLOSE is defines in JFrame. Are you using an IDE? Save, clean, rebuild. Make sure you imported the class, too.

  • About variable definition and build error

    I am new to the motion control card. I try to use VC++ to build my application. But after I have done everything written in the examples to add the include and library path, there are still tons of errors when building the application. It seems that the error has something to do with the order of the "#include"s, because changing the order will result in different error codes. But I am not sure what the right order is, and I am not sure whether this is the problem. Any ideas?
    And if nothing will work, is i32 equals to long in c++? Can I subtitute these types with the corresponding types in C++? Will this solve the problem?
    Thanks a lot!
    Part of my codes and error information are as follows:
    #include "flexmotn.h"
    #include "NIMCExample.h"
    #include <stdio.h>
    #include <time.h>
    #include "stdafx.h"
    #include "GrindGame.h"
    #include "GrindGameDlg.h"
    #include <vector>
    #include <stdlib.h>
    #include "math.h"
    #include "engine.h"
    #ifdef _DEBUG
    #define new DEBUG_NEW
    #endif
    using namespace std;
    i32 xLength;
    vector <i32> xPosition, yPosition1, yPosition2;
    // global variables
    u8 boardID;     // Board identification number
    u8 vectorSpace;   // Vector space number
    u16 csr = 0;    // Communication status register
    u16 axisStatus;   // Axis status
    u16 status;
    u16 complete;    //Move or blend complete statusi16 adcValue;         // ADC value read
    //Variables for modal error handling
    u16 commandID;    // The commandID of the function
    u16 resourceID;   // The resource ID
    i32 errorCode;    // Error code
    Only this small portion has had many errors, such as:
    1>e:\docu\visual studio 2005\projects\grindgame\grindgame\grindgamedlg.cpp​(68) : error C2146: syntax error : missing ';' before identifier 'xLength'
    1>e:\docu\visual studio 2005\projects\grindgame\grindgame\grindgamedlg.cpp​(68) : error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
    1>e:\docu\visual studio 2005\projects\grindgame\grindgame\grindgamedlg.cpp​(68) : error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
    1>e:\docu\visual studio 2005\projects\grindgame\grindgame\grindgamedlg.cpp​(69) : error C2923: 'std::vector' : 'i32' is not a valid template type argument for parameter '_Ty'
    1>        e:\docu\visual studio 2005\projects\grindgame\grindgame\grindgamedlg.cpp​(68) : see declaration of 'i32'
    1>e:\docu\visual studio 2005\projects\grindgame\grindgame\grindgamedlg.cpp​(75) : error C2146: syntax error : missing ';' before identifier 'boardID'
    1>e:\docu\visual studio 2005\projects\grindgame\grindgame\grindgamedlg.cpp​(75) : error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
    1>e:\docu\visual studio 2005\projects\grindgame\grindgame\grindgamedlg.cpp​(75) : error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
    1>e:\docu\visual studio 2005\projects\grindgame\grindgame\grindgamedlg.cpp​(76) : error C2146: syntax error : missing ';' before identifier 'vectorSpace'
    1>e:\docu\visual studio 2005\projects\grindgame\grindgame\grindgamedlg.cpp​(76) : error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
    1>e:\docu\visual studio 2005\projects\grindgame\grindgame\grindgamedlg.cpp​(76) : error C2086: 'int u8' : redefinition
    1>        e:\docu\visual studio 2005\projects\grindgame\grindgame\grindgamedlg.cpp​(75) : see declaration of 'u8'
    1>e:\docu\visual studio 2005\projects\grindgame\grindgame\grindgamedlg.cpp​(76) : error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
    1>e:\docu\visual studio 2005\projects\grindgame\grindgame\grindgamedlg.cpp​(77) : error C2146: syntax error : missing ';' before identifier 'csr'
    1>e:\docu\visual studio 2005\projects\grindgame\grindgame\grindgamedlg.cpp​(77) : error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
    1>e:\docu\visual studio 2005\projects\grindgame\grindgame\grindgamedlg.cpp​(77) : error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
    1>e:\docu\visual studio 2005\projects\grindgame\grindgame\grindgamedlg.cpp​(78) : error C2146: syntax error : missing ';' before identifier 'axisStatus'
    1>e:\docu\visual studio 2005\projects\grindgame\grindgame\grindgamedlg.cpp​(78) : error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
    1>e:\docu\visual studio 2005\projects\grindgame\grindgame\grindgamedlg.cpp​(78) : error C2086: 'int u16' : redefinition

    bibo,
        Your code looks fine in general, but there is something to consider.  According to this document, Visual C++ in .NET is not supported.  But, C code will work within it.
    http://digital.ni.com/public.nsf/websearch/6725330​5A52EFB1986256E94005945D2?OpenDocument
        I would try working from the C examples, which will be in a folder similar to: C:\Program Files\National Instruments\NI-Motion\FlexMotion\Examples\C.  Let me know if you have more questions!  Thank you.
    -Allison S.
    Applications Engineering
    -Allison S.
    Calibration Services
    Product Support Engineer

  • About variables in scripts

    what type of variables used in scripts to out put data

    Hi
    See the script symbols
    A variable in SAPscript is called a symbol. There are the following types.
    • System symbol (e.g. the number of the current page)
    • Standard symbol (usable in any document)
    • Program symbol (value from the print program)
    • Text symbol (“local variable”)
    The value of a symbol is text for using within SAPscript code and is represented by the symbol-name enclosed by ampersands. On seeing the tell-tale ampersands in SAPscript code, you sometimes need to figure out the symbol type.
    goto any PAGEWINDOW's Text elements in Script (SE71)
    from the Menu-> INSERT-> Symbols
    you find all symbols here
    System symbols
    System symbols in a SAPscript form are comparable to system fields like SY-UZEIT in an ABAP program, and include these. The graphical editor offers three types of system symbol.
    1. General system symbols
    See the table TTSXY. PAGE is the most widely used. The list given in our BC460 training manuals is out of date.
    2. SAPscript system symbols
    See the dictionary structure SAPSCRIPT. SAPSCRIPT-FORMPAGES is the most widely used.
    3. ABAP system symbols
    For the ABAP system field SY-UNAME, say, the symbol is SYST-UNAME. [SYST is the dictionary structure for ABAP system fields.]
    Sample code:
    User: &SYST-UNAME&
    Page &PAGE& of &SAPSCRIPT-FORMPAGES(C3)&
    Standard symbols
    Standard symbols are maintained centrally (in the table TTDTG via transaction SE75) for use in any document. Menu path:
    Tools
    Form Printout
    Administration
    Settings
    Some standard symbols are SAP-standard and others are custom. Curiously, table TTDTG is cross-client although SAPscript forms are not.
    The value of a standard symbol has to be defined for each language used. This gives a way to make a single SAPscript form multi-lingual.
    We can take advantage to an extent of the central maintenance, though there is no guarantee that the available standard symbols will used in every appropriate context.
    Standard symbols complicate searching a SAPscript form, since text like ‘Charity registration 211581’ may be hiding in a standard symbol.
    Text symbols
    A text symbol is declared and assigned to within the SAPscript code, and so obviously applies only to the current document. The command DEFINE is used, requiring /: in the tag column, as in the following examples.
    /: DEFINE &COMP_NAME& = ‘University of Warwick’
    /: DEFINE &WS_RATE& = &TAX_SUMM_C&
    SCRIPT COMMANDS
    ADDRESS : Formatting of Address
    BOTTOM, ENDBOTTOM : Define Footer text in a window
    BOX, POSITION, SIZE : Boxes, Lines and Shading
    CASE, ENDCASE : Case Distinction
    DEFINE : Value assignment to text symbols
    HEX, ENDHEX : Hexadecimal values
    IF, ENDIF : Conditional text output
    INCLUDE : Include other texts
    NEW-PAGE : Explicit forms feed
    NEW-WINDOW : Next window main
    PRINT-CONTROL : Insert print control character
    PROTECT...ENDPROTECT : Protect from page break
    RESET : Initialize outline paragraphs
    SET COUNTRY : Country-specific formating
    SET DATE MASK : Formating of date fields
    SET SIGN : Position of +/- sign
    SET TIME MASK : Formating of time fields
    STYLE : Change style
    SUMMING : Summing variables
    TOP : Set header text in window MAIN
    <b>Reward points for useful Answers</b>
    Regards
    Anji

Maybe you are looking for