How to know the var Type

Hallo. I need a help. I wish to know if the user input is a correct uint type or int type or Number type.. Is there any way to know it?
Thx
Max

Hi Max,
You can use the operator "is":
var myInt:Number;
trace(myInt is Number); // true
trace(myInt is int); // false
trace(myInt is uint); // false
Regards,
Pablo Souza

Similar Messages

  • How to know the output type for particular tcode

    Hi
    how to know the output type for the VL10D & VAL TCODES.
    Can anybody help me out.
    Thanks and Regards
    Krishnarao

    Hi Krishna,
    GO to NACE and select your application and click on output types and in the next screen select your output type and and dbl click on Processing routines.
    Here you will come to know about which driver program is used for which smartform or Script.
    and for Program details you can refer table: REPOSRC
    Regards,
    Sachin

  • How to know the platform type

    Hi
    I would like to know the platform type am using in the frontend..am trying to use the static method
    cl_gui_frontend_services=>GET_PLATFORM...it returns '5'..am not able to interprete the importing parameter
    Please suggest
    Regards
    Panda

    PLATFORM_UNKNOWN     -1
    PLATFORM_WINDOWS95     1
    PLATFORM_WINDOWS98     2
    PLATFORM_NT351          3
    PLATFORM_NT40          4
    PLATFORM_NT50          5
    PLATFORM_MAC          6
    PLATFORM_OS2          7
    PLATFORM_LINUX          8
    PLATFORM_HPUX          9
    PLATFORM_TRU64          10
    PLATFORM_AIX          11
    PLATFORM_SOLARIS     12
    Regards,
    Rich Heilman

  • How to know the proxy type??

    How can I know the type of proxy I am connecting to?? like whether its SOCKS, or HTTP etc...which all are enabled....
    thanks in advance....

    I get an error java.net.SocketException: Malformed reply from SOCKS server while connecting through the proxy.That indicates that there isn't a SOCKS proxy at the indicated host:port.
    Is there any other chances of errors than socks not being enabled?You could have got the host or port wrong.
    and how can I know if it is really enabledThe connection will work ...

  • How to know the connection type?

    Hi guys,
    I need to know what's the connection type (3G or WIFI) of a mobile device (Android and iOS) is enabled. Is it possible? I'm using Flex 4.5.1.
    Could someone help me?
    Thanks,
    Luis

    Hi guys,
    I found the answer:
    <uses-permission android:name="android.permission.ACCESS_NETWORK_STATE"/>
    <uses-permission android:name="android.permission.ACCESS_WIFI_STATE"/>
    var interfaces:Vector.<NetworkInterface> = NetworkInfo.networkInfo.findInterfaces();
    for(var i:uint = 0; i < interfaces.length; i++) {
                        if(interfaces[i].name.toLowerCase() == "wifi" && interfaces[i].active) {
                            lbl.text = "WiFi connection enabled";
                             break;
                        } else if(interfaces[i].name.toLowerCase() == "mobile" && interfaces[i].active) {
                            lbl.text = "Mobile data connection enabled";
                            break;
    http://cookbooks.adobe.com/post_Detecting_the_network_connection_type_with_Flex_4_-18791.h tml

  • How to know the Control type using event param???

    Hi,
    I wrote a function on MOUSE OVER EVENT. I called this
    function from a LIST and DATAGRID using addEventListener.
    Now i got a requirement like on event fire.. i wanna alert
    the control type i.e., whether the action fire from LIST or
    DATAGRID. I can create two different function for both LIST and
    DATAGRID. But requirement is like cannot reapeat the code.. code
    minimization.
    Is there any property to know the type of control(Like its
    LIST or DATAGRID) using event parameter??
    Thanks & Regards
    PRatap

    You can try using flash.utils.describeType or
    flash.utils.getQualifiedClassName on event.target property and
    figure out the control type.

  • How to know the program type?

    Hi,
    I want to know what type of execution method a certain concurrent program has, ( e.g if it is SQL*PLUS, REPORT, SPAWN, PL/SQL etc)
    I run the following sql at apps/apps
    1* select distinct execution_method_code from fnd_concurrent_programs
    SQL> /
    E
    R
    H
    P
    I
    K
    Q
    M
    A
    J
    X
    B
    S
    L
    E
    Where do I get the corresponding meaning of this code please.
    How do I query at the form level all the PROGRAM name with execution type SQL*PLUS?
    Thanks a lot

    Hi,
    Where do I get the corresponding meaning of this code please.Try the queries in the following links:
    PSP PL/SQL API for Customizations Tracking
    http://dbaanswers.blogspot.com/2007/11/psp-plsql-api-for-customizations.html
    Query 9: SQL to view all types of request Application wise
    http://knoworacle.wordpress.com/2009/01/12/oracle-application-top-useful-sql-queries/
    Display Module Wise Reports
    http://oracle-applications-rama.blogspot.com/2007/05/display-module-wise-reports.html
    Or, refer to eTRM and see if it is documented there.
    eTRM
    http://etrm.oracle.com
    How do I query at the form level all the PROGRAM name with execution type SQL*PLUS?From System Administrator responsibility, navigate to Concurrent > Program > Executable, Press F11, select "SQL*Plus", Ctrl + F11
    Regards,
    Hussein

  • How to know the data type of a variable?

    Hi,
       Can anyone tell me which function can return the name data type of a variable?
        Thanks!
    Message was edited by: Long Zheng

    Hi long,
    1. I don't know whether this will serve your purpose.
    2.
    REPORT abc.
    DATA : components     LIKE     rstrucinfo OCCURS 0 WITH HEADER LINE.
    DATA : t001 LIKE TABLE OF t001 WITH HEADER LINE.
    CALL FUNCTION 'GET_COMPONENT_LIST'
      EXPORTING
        program    = sy-repid
        fieldname  = 'T001'
      TABLES
        components = components.
    LOOP AT components.
      WRITE :/ components-compname , components-type.
    ENDLOOP.
    regards,
    amit m.

  • How to know the class type of an element in a List?

    I got a list of something. Is there a method that is used to return what type of an element is?
    Thanks.

    Peter__Lawrey wrote:
    Not sure how generics will help. A list with a generic has no more methods than a list without generics.
    There is no method like
    List<T> list;
    Class<T> elementClass = list.getElementClass();
    I was thinking of:
    List mysteryList;
    //versus
    List<Meatball> meatballs;

  • How to know the type of a variable??

    how to know the type of a variable??
    For example, give you a variable s, how to determine if it is
    a primitive type, of an object?? If this is primitive type,
    any ways to determine if it is integer, boolean, double, ...??

    I am currently working on a project where this happens. I have a main type of object that all of my other types extend. While working on the objects in a method, any type of other object could be coming through. To test I try to cast the object and catch class cast exceptions. This only works because I know the different type that will be coming through....
    public void testObject(classX object){
      try{
        classY object = (classY)object;
      }catch(ClassCastException CC){
        try{
          classZ object = (classZ)object;
        }catch(ClassCastException CCC){
          /// the object fails to be cast as the types I tested for.
    }

  • How to know the function module for a message type

    hi sd gurus,
    how can i know the function modules used ( based  on message type can i know it?) in inbound idoc processing.
    can anyone  let me know where can i find it out and the related transaction codes
    Thanks&Regards
    Srini

    You can find out the Functionmodule if you know the message type.
    Go to WE20, find the message type for hte relevant partner type by clicking the partner type and then clicking one partner int hat partner type.
    Now on the right hand side, you will get a screen. Based on whether it is your outbound IDOC or ibound, click the relevant parameters, select the message type and double click.
    In the new screen open the Message control tab and fidn out the process code of the IDOC.
    Now go to WE41 if ur IDOC is outbound or WE42 for inbound IDOC.
    Search for the process code which is assigned to the message type in WE20.
    Double click the process code, you will see the relevant function module in the 3rd field.
    Hope thsi helps you
    Pls reward if it helps.

  • How to know the printprogram and output type for perticular standard script

    how to know the print program and output type for perticular standard script and wt the proceure we will fallow to modifie the standard script..if possible u have any sample code plz share with me.....

    Hi Phani,
    To know the print program and output type for a standard script we have a table called TNAPR. So just you go to SE11 and provide the table name as TNAPR and choose display option.Then go with display entries option and in selection screen you have to provide the form name for whic you want to know the print program and output type.
    To modify a standard script first of all you have to copy the standard form for which you need modifications into Zform. Once you done this you can modify the layout set as per your requirement.Then what ever the modifications you have done in layout set for that you need to populate the data.For this you also need to do some modifications to the print program.so you have to options like directly you can modify the print program as per your requirement and other one is you can create a subroutine and do coding in that subroutine. Then you need call this subroutine in the Script Form.like this you can do modifications to the standard script........................... Reward me if its helpful..........
    Thanks & Regards.
    Laxman.P
    B'lore.

  • [CS3][JS] How to get the file type of current document

    Hi,
    How to get the file type of current opening document (e.g., tif, jpeg, png) using JavaScript with Photoshop CS3.
    I am using file object the open the files one by one in the folder (the files sometimes don't have the extensions).
    If the current document is in tiff format then I need to convert to 8-bit, if its an Jpg image then needs to ignore the file.
    Regards,
    Karthik

    Do you really need to know the file type? What about just checking the bit depth?
    var doc = activeDocument;
    if (doc.bitsPerChannel != BitsPerChannelType.EIGHT) {//Not 8 bit
    doc.bitsPerChannel = BitsPerChannelType.EIGHT;
    //do your save etc
    }else{
        //Ignore

  • How to know the dynamic values for this :AND category_id_query IN (1, :3, )

    Hi Team,
    R12 Instance :
    Oracle Installed Base Agent User Responsibility --> Item Instances -->
    Item Instance: Item Instances > View : Item Instance : xxxxx> Contracts : Item Instance : xxxxx> Service Contract: xxxxx>
    In the above page there are two table regions.
    Notes.
    -------------------------------------Table Region---------------------------
    Attachments
    -------------------------------------Table Region---------------------------
    --the attachments are shown using the query from the fnd_lobs and fnd_docs etc...
    I want to know what are the document types are displayed in this page ?
    --We developed a custom program to attach the attachments to the  services contracts and the above seeded OAF page displays those ..as needed.
    But after recent changes..the Attachments--> table region is not showing the attachments.
    I have verified the query..and could not find any clue in that..
    but i need some help if you guys can provide..
    SELECT *
    FROM
    *(SELECT d.DOCUMENT_ID,*
    d.DATATYPE_ID,
    d.DATATYPE_NAME,
    d.DESCRIPTION,
    DECODE(d.FILE_NAME, NULL,
    *(SELECT message_text*
    FROM fnd_new_messages
    WHERE message_name = 'FND_UNDEFINED'
    AND application_id = 0
    AND language_code  = userenv('LANG')
    *), d.FILE_NAME)FileName,*
    d.MEDIA_ID,
    d.CATEGORY_ID,
    d.DM_NODE,
    d.DM_FOLDER_PATH,
    d.DM_TYPE,
    d.DM_DOCUMENT_ID,
    d.DM_VERSION_NUMBER,
    ad.ATTACHED_DOCUMENT_ID,
    ad.ENTITY_NAME,
    ad.PK1_VALUE,
    ad.PK2_VALUE,
    ad.PK3_VALUE,
    ad.PK4_VALUE,
    ad.PK5_VALUE,
    d.usage_type,
    d.security_type,
    d.security_id,
    ad.category_id attachment_catgeory_id,
    ad.status,
    d.storage_type,
    d.image_type,
    d.START_DATE_ACTIVE,
    d.END_DATE_ACTIVE,
    d.REQUEST_ID,
    d.PROGRAM_APPLICATION_ID,
    d.PROGRAM_ID,
    d.category_description,
    d.publish_flag,
    DECODE(ad.category_id, NULL, d.category_id, ad.category_id) category_id_query,
    d.URL,
    d.TITLE
    FROM FND_DOCUMENTS_VL d,
    FND_ATTACHED_DOCUMENTS ad
    WHERE d.DOCUMENT_ID = ad.DOCUMENT_ID
    *) QRSLT*
    WHERE ((entity_name    ='OKC_K_HEADERS_V'-- :1
    AND pk1_value          IN ( 600144,599046) --:2
    AND category_id_query IN (1, :3, :4, :5, :6, :7) )
    AND datatype_id       IN (6,2,1,5)
    AND (SECURITY_TYPE     =4
    OR PUBLISH_FLAG        ='Y')))
    --='000180931' -- 'ADP118'
    The above seeded query is the one which is used for table region to retrieve the data..
    how to know the dynamic values for this : AND category_id_query IN (1, :3, :4, :5, :6, :7) )
    --Sridhar                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           

    Hi Patricia,
    is it working for restricted key figure and calculated key figure ??
    Note Number Fisc Period Opening Days
    1 1 2
    2 1 3
    3 1 0
    because I have other restriction, so I create two restricted key figure..
    RK1  with restriction :  Total Number of Note,
    RK2  with restriction :  Total Opening Days ,
    then I Created a calculated key figure, average opening days in a period
    CK1 = RK2 / RK1..
    in this case, I am not sure if it will work or not..
    for example, during RK2 calclation, it might be this   2+3 = 5, the line with 0 will be ignored..
    during RK1 calcualtion, it might be 1 + 1 + 1 = 3. ---> Not sure in this case, the line with opening days 0 will be calculated or not..
    could you please confirm..

  • With a contract number, how to know the total PO release value against it?

    Usually one contract corresponds to multiple PO records, now we know the contract number, then how to know the total PO release value against this contract.  In other word, we would like to know the total release value of all the POs with the same contract number.  To just input the contract number in EKPO table? but then look for which field in this table to add these PO release values up?
    We will give you reward points!
    Thanks!

    hi Mohammad,
    By following your instruction, input the contract number 4800000112 into Document number field, then hit Enter, get the following (only copy two records here for example), but kind of a mess.  Could you let us know which one is the PO release value for this contract?
    Contract   Type Vendor     Name                                 PGp Agmt. date
      Item  Material           Short text                               Mat. group
      D I A Plnt SLoc                 Targ.qty. Un       Net price  Curr.   per Un
    4800000112 WK   2000012012 GULF INTERSTATE FIELD SERVICES       QBH 06/20/2006
    Agreement start06/20/2006 Agreement end 12/31/2007
    Tgt. val.        1,000,000.00  USD   Open          1,000,000.00 USD   100.00 %
      00001                    Inspection Svcs, Construction            R3VNI
      L   U                                  0  UL            0.00  USD       1 EA
      00002                    Chief Inspector                          R3VNI
      L   U                                  0  DAY         390.00  USD       1 DAY

Maybe you are looking for

  • What is happening to my Mac.only blue screen appears

    After I download the latest firmware and itune I'm getting this blue screen when i open my computer.anyone have the same problem?

  • Migration tool to support migration from WAS 5.x and WLS 8.x  to AS 7.x

    This is to announce the release of a new migration tool adding support for IBM WebSphere 5 and BEA WebLogic 8 to Sun Java System Application Server 7.x . Along with the tool, we refreshed the website with more partners and client solutions migration

  • How to receive the original _width and _height of an external image

    Hello, When i load an external image (.jpg) how can i trace the original height and width of this image? I already made a MoveiClip loader, so i can fire a function when the image is loaded completely. But i don't know how to get this value of the or

  • Regarding to import siri in iphone 4

    hello,      sir i m using iphone4 with OS4.1 n i m in india for 1 year n i had unlock it with geneva turbo sim... n i want to import siri on tht so wat can i do..?s please give me an helpful regard...                                                  

  • Problem using when-validate-trigger

    Dear Experts, After validating a item value, I want to navigate to a specified item besed on that item value. If i use go_item('item1') in when-validate-trigger, error comes, beacuse we cannot use restricted built-in go_item in when-validate-trigger.