How to activate my Include file

Hi,
I have an main file whish has a variable declared, we are using that variable in another include file, when i use that variablein the second include file and tried activate the second include file. It comes out with an error saying that 'variable not found'.
How can i activate my include file with the variable declared?,
Appreciate your help.
Thanks

Hi
Your include program must be an include of a main program and the data declaration should have been done before the include statement.
e.g.
DATA: gv_var TYPE i .
INCLUDE <my_include> .
That way, when you want to activate your include it asks the main program to be considered as Nablan mentioned.
*--Serdar

Similar Messages

  • How  to show  php 'include' file in Design View?

    Is it possible (in design view MX04) to show a php include
    file?
    It shows if it's <?php include('myPage.inc'); ?>
    but if its got the .php ext, <?php include('myPage.php');
    ?>
    its doesnt show.
    Any way of making it show?
    Cheers.
    Os.

    > Is it possible (in design view MX04) to show a php
    include file?
    Yes.
    Does the include file *also* contain PHP code?
    Murray --- ICQ 71997575
    Adobe Community Expert
    (If you *MUST* email me, don't LAUGH when you do so!)
    ==================
    http://www.dreamweavermx-templates.com
    - Template Triage!
    http://www.projectseven.com/go
    - DW FAQs, Tutorials & Resources
    http://www.dwfaq.com - DW FAQs,
    Tutorials & Resources
    http://www.macromedia.com/support/search/
    - Macromedia (MM) Technotes
    ==================
    "Osgood" <[email protected]> wrote in
    message
    news:e791va$css$[email protected]..
    > Is it possible (in design view MX04) to show a php
    include file?
    >
    > It shows if it's <?php include('myPage.inc'); ?>
    >
    > but if its got the .php ext, <?php
    include('myPage.php'); ?>
    >
    > its doesnt show.
    >
    > Any way of making it show?
    >
    >
    > Cheers.
    >
    > Os.
    >

  • Include files?  As in this:  !-- #include file="file.htm" --

    Can anyone get include files to work in iWeb?
    So I made my own header navigation and put it in an HTML snippet widget. It does work great, however I have to put the widget code on every single page, and when I change the header, I need to go back and change all that code.
    I thought I would be clever and instead use one file for the header, and just use the HTML snippet to hold a call to include that file.
    That doesn't work. I managed to find where the widget code is stored, and changed a filename to .shtml, and a few other things, but no dice.
    Does anyone know how to use an include file from within iWeb without it being more work than just replacing whatever code you want to include in the first place?
    Thanks!

    Are you using .Mac as your host? If so, I think it does not support doing what you want. If not, I think the server has to be configured to recognize .shtml correctly.

  • Include file for .dlls

    I have bought a power supply with an RS232 computer interface. The
    software consists in a .dll and a .lib files (32-bit, written in C or
    C++). I don't know how to write the include file to link my LabWindows/CVI
    project to the libraries...
    In the .dll I've functions defined like: int configcom (int Comport)
    I hope you can help me!
    Caterina Ducati

    That is very strange. A header file should always be provided with a DLL in order to program with it. Sometimes an import library (.lib) is not provided and CVI can generate on of those for you from the header file, but it can't generate a header file from a DLL or LIB. You really should contact the company that provided you the power supply and get a header file from them.
    You can find out the function names in the DLL, but I know of no way to rebuild the header since you will not have the argument lists.
    Best Regards,
    Chris Matthews
    National Instruments

  • How to use runtime.exe to activate the native file coping commands

    How to use runtime.exe to activate the native file coping commands.(It might include using process(), and such.. but how?

    Why would you want to do this? It's harder than copying the file in Java (by reading the file and writing it to a new file) and you'll need to write new code each time you want to port your code to a new OS.

  • My laptop was stolen and with it my itunes, all of my music (including non-apple downloaded content) is still on my iphone 5, how can I transfer the files to my new laptop which is authorised to the same apple ID?

    my laptop was stolen and with it my itunes, all of my music (including non-apple downloaded content) is still on my iphone 5, how can I transfer the files to my new laptop which is authorised to the same apple ID?

    See this user tip for recovering the media from the iPhone: https://discussions.apple.com/docs/DOC-3991

  • How to create the SWF file which was included surrogate pairs.

    I would like to make sure how to create the SWF file which are included surrogate pairs.
    The error of outside the scope of unicode occurred when I compiled(mxmlc) the as file which was set surrogate pairs to 'Unicoderange'.
    Ex, I set the '  '(UTF-16 is '20B9F') to 'Unicoderange'.
    However, I cannot add the surrogate pairs.
    The error of outside the scope of Unicode occurred when I compiled the AS file.
    The reason of error was that the Unicode(UTF-16) of surrogate pairs is invalid.
    Then, I read the following pages.
    These pages are written that unicode-range supported surrogate pairs.
    http://livedocs.adobe.com/flex/3/html/help.html?content=fonts_07.html
    http://www.w3.org/TR/1998/REC-CSS2-19980512/fonts.html#descdef-unicode -range
    So please let me know how to create the SWF file which are included surrogate pairs.
    Environment
    - Flex3.5a
    - TTC: meiryo(ver6.02), msgothic(ver2.50), mspgothic(ver2.50)
    Thanks,
    Takeshi Ishihara.

    I've been able to create project jar files in Eclipse by selecting Export from the File menu, then choose Java - Jar file - and provide the required information, name, destination folder etc. But when I do this, I do not export other jars on the build path this way nor do I expect to do this. I am only concerned with creating a jar file of my own work. A jar file does not "contain" other jar files. If the jar file contains the main method, and requires other jars for it's execution, then you may wish to include a reference to required jars on the class path entry of the Manifest file of the jar file you create. I'm not sure how to create a Manifest file in eclipse though..

  • How to change the filename in @include file?

    I want to do a checking before deciding to include which file,
    for example,
    <%
    if(isValid){
    %>
    <%@ include file="abc.jsp" %>
    <%
    else{ %>
    <%@ include file="def.jsp" %>
    <% } %>but the code above doesnt work in my JSPs
    any idea how to solve this?
    thanks
    Desmond

    Am i clear?? pls correct me if i am wrong..You are wrong.
    The include directive is being used here, which is a compile time include, not a runtime include. Both includes will be performed before the resulting servlet is compiled.
    If they have a conflict between them (either by not nesting them in their own { scope } or using <%! declarations %>) then the generated servlet will fail to compile.
    So if you had the following:
    abc.jsp:
    Hello from ABC!
    <% String myVar = "ABC"; %>def.jsp:
    Hello from DEF!
    <%  String myVar = "DEF";  %>And the page as mentioned in the original post, you would end up with a Servlet something like this:
    if (isValid){
       out.println("Hello from ABC!");
        String myVar = "ABC";
    else{
       out.println("Hello from DEF!");
      String myVar = "DEF";
    }This example would compile because of the presence of the braces.
    However removing the braces or using a <%! declaration %> would probably screw things up with a compile error.
    The %Include directive is like a copy/paste into a JSP before you compile it.
    The <jsp:include> is evaluated at runtime and copies in the result of executing the page.
    The difference is quite subtle, but very important.
    Cheers,
    evnafets

  • How to include a file as variable in %@ include file tag.

    Hi,
    I have a interesting problem here, how can I include a file in <%@ include file tag. where the include file path is a variable. I am trying to implement the following statement.
    <@ include file="<%=headerLogic_template %>">
    where headeLogic_template is a variable which contains the actual path of the include file.
    Thanx,
    Ramana.
    email:[email protected]

    Please note that you can not write anything else between the quotes nor for page specification or parameters.
    BAD EXAMPLE!!
    <% for (int i = 0; i < 20; i++) { %>
    <jsp:include page="included.jsp" flush="false">
      <jsp:param name="apa" value="prestring_<%=i%>"/>
    </jsp:include>
    <% }BAD EXAMPLE!!

  • When bates numbering a .pdf in XI, how can I change the file name to include the bates number AND its name?  I know under file output, there is an option for either/or.  I want both.  Thank you.

    when bates numbering a .pdf in XI, how can I change the file name to include the bates number and the file name?  I know under "file output: it's either/or.  I need both.  Thanks!

    Long ago I wrote a little demo using the touch command. Check out the following thread:
    http://forums.ni.com/ni/board/message?board.id=170&message.id=25128#M25128
    LabVIEW Champion . Do more with less code and in less time .

  • How to get information of 'include file', 'table', 'function' from the prog

    Hi all.
    I wanna know which 'include file', 'table', 'function' is used in the program.
    Firstly, I prepared user interface for entering the name of program.
    Secondarly,
    I made the way to confirm whether the program is exising or not by using TADIR.
    And I must use CROSS for getting information of function.
    But at the same time, I will use 'RS_GET_ALL_INCLUDES', 'RS_GET_TABLE_REFERENCES' for getting information of include file or table.
    After that, I have to report by using ALV.
    Then, I will use both of string getting from function by using above function and internal table getting from CROSS.
    How do I put together in  INTERNAL TABLE.

    hi,
    look F1 to abap command <b>scan</b> and <b>read report</b>
    A.

  • I keep losing the line at the top of the page which includes "file,edit veiw,bookmarks,history,help etc" I can get it back by pressing lt+F8 but it goes again when i press another key.how can I restore this permanently

    I have lsot the line in the toolbar spaces which include "file,edie,veiw,bookmarks,history,help"etc.Ican get it back by pressing Alt+F8 but it goes when I press any other key.How can I restore this permanently

    Thanks for the information, is this a windows 7 problem?

  • Ust purchase an iphone 4s and need to know how could i transfer all files including (contacts, pictures, music, notes and ect.... from sd card or any external card to iphone 4s, please advise thx

    ust purchase an iphone 4s and need to know how could i transfer all files including (contacts, pictures, music, notes and ect.... from sd card or any external card to iphone 4s, please advise thx.

    You need to put all of your info on your computer and then sync it to iphone.

  • How to activate another worksheet in excel file and write data into it

    Hi,
    I am writing an automation program to collect test data and write the data to an excel file.
    The excel file has several worksheets and now I can only write data to one sheet. Can anyone please let me know how to activate another worksheet and write data into it? Thank you very much.

    You can do a search in the Example Finder for more Excel VIs.
    They will give you a clearer idea of how to go about doing things in the way you need.
    - Partha
    LabVIEW - Wires that catch bugs!

  • HT2731 How can I transfer photos from my Windows computer to my Ipad. I already have the photos transfered into a photo stream file. How to activate the transfer ?

    How can I transfer photos from my Windows computer to my Ipad.
    I already have the photos transfered into a photo stream file.
    How to activate the transfer ?

    Hey Juergen119,
    I would recommend syncing your photos from your computer to your iPad by using iTunes:
    iTunes: Syncing photos
    http://support.apple.com/kb/HT4236
    First, if you want to set it up to work via iCloud, I would check and make sure My Photo Stream is set up correctly on your devices:
    To use My Photo Stream you need an iCloud account, compatible devices, and up-to-date software:
    iPhone, iPad, or iPod touch with iOS 5.1 or later
    Mac with OS X Lion v10.7.5 or later and iPhoto 9.2.2 or Aperture 3.2.3 or later
    Apple TV (2nd generation) with Apple TV Software Update 5.0 or later
    PC with Windows 7 or later and the iCloud Control Panel 2.1 or later for Windows
    For complete iCloud setup instructions, visit How to set up iCloud.
    Then, once it is set up, you can upload your photos to My Photo Stream by following these directions:
    PC with iCloud Control Panel 2.0 or later: Open a Windows Explorer window and under Favorites select iCloud Photos if you are using iCloud Control Panel 3.0 (or Photo Stream if you are using 2.0 to 2.1.2). Open My Photo Stream. Click the "Add photos" button. Select the photos to import to My Photo Stream, then click Open.
    via: iCloud: My Photo Stream FAQ
    http://support.apple.com/kb/HT4486
    Welcome to Apple Support Communities!
    All the best,
    Delgadoh

Maybe you are looking for

  • How to hide a row in BI Publisher using conditional formatting

    Hi, I am using BI Publisher 11.1.1.5.0. I need to hide entire row based on the condition (if sal > 0 then hide entire row), please can you help on how  can I achieve this? thanks

  • IMovie 08 cutting off the end of my video when exporting

    First off, I'm running 10.5.3, iMovie 7.1.2, iDVD 7.0.2 on a MB Pro. I have a 256mg nVidia video card, 4gigs of RAM and about 55Gigs of space left on my hard drive. The movie is about 5-9gigs in size-I made sure everything was updated before I starte

  • HT5163 SIM insert issue in ipad mini

    Dear Sir/Madam, I have purcheased ipad mini (Wifi + cellular) a week before. I am trying to pull out nano sim tray with sim tool given by apple. But i couldn't do it. I have seen video of how to insert sim card in youtube. same way only i did. But it

  • Unicode/OO issues with HR_INFOTYPE_OPERATION in separate LUW

    Hi, I've created a separate program that uses FM HR_INFOTYPE_OPERATION in order to allow infotype changes while still being in the PAI of a PA30 infotype operation.  Because I have so many requirements for infotype changes to be triggered from PA30 l

  • FI link to IOM

    My FI (6248s) have 4 link-connections to IOM (2208XP) and the chassis discovery has been done. The above links are configured as server ports.  So, do we leave them as individual server ports or do we use portchannel on the FI and IOM? In other words