External variables XQuery linkage

Hello world...

Is someone can shed some light on the external binding of variables in xquery with Oracle 11 G XMLDB?

declare $foo as XS: String external;

Thanks in advance,

Kind regards
Kaja

You can use the move clause as in for example xmltable

SQL> with t as (select xmltype('12') xcol from dual)
  2  select x.*
  3  from t
  4      ,xmltable('for $i in $AA/a/b where $i=$bind_val return $i'
  5        passing t.xcol as "AA"
  6                ,2 as "bind_val"
  7        columns val number path '.') x;

       VAL
----------
         2                                                                      

Tags: Database

Similar Questions

  • Update the external Variable label & Business name

    I use Oracle BPM 10.3 MP2 Enterprise Edition
    Version: 10.3.2
    Build: #100486

    In our process, I have 2 external variables, such as agency_nm and narId, both are string with size 30 data type. variable agency_nm with label name 'Agency' and that is fine, but the other variable narId is the name of the label as "narId".

    How the label is changed to 'Nar Id' rather than 'narId '.

    Do we need to update in the fpr using studio or this can be done by the administrator workspace / process manager.
    I don't have such an option in the workspace administrator / administrator process.

    Thank you
    -Nathalie

    In the administrator of the Web console or process you can do.
    Go to the Variables, select the one you want and you have an option called internationalization where you can set labels.
    HTH

  • Loading of an external Variable

    Hi all

    I'm having a little difficulty to load an external variable in my flash movie.

    The principle of the film is to load XML data and display the expected looping data. It works just fine and she should.

    My problem starts when I remove the internal variable used to test and try and insert the same external variable, because this will change according to the views of the teams. I tried to add in the variable like

    < param name = "flashVars" value = "lead = teamA" / > "
    and
    < param name = "movie" value = "" flash/plasma.swf? = teamA teamName "/ >"

    And then I tried using a variety of methods in AS3 for display name. Just put a trace "Thomas" would be all that I need, but it has none of that.

    Any help would be greatly appreciated.

    Kind regards

    Tim

    Hello

    I just had the same problem - here's the code I used to access the variable "video_file" passed in Flashvars:

    root.loaderInfo.parameters.video_file;

    I hope this helps!

  • Change the color of Clip from movie with the external Variable

    I have a movieclip in my flash file (WhiteBarMC) I want to be able to change the colors on the use of a variable (hexadecimal number) assigned from an external file. I found a script that comes close to what I want to achieve, but I don't know how to run the changes I need to make it work.

    on {(overview)
    var colorful = new color ("_root. WhiteBarMC");
    colorful.setRGB (0 x 006699);
    }

    It is narrow because it changes my object/Movie Clip on roll. BUT I have two problems...

    1) I want to set the hexadecimal color code in an external file as a flash variable retrieves and then applies to this movieclip. If it helps to explain why, it's because I have multiple variants of this swf throughout my site with a different text that just overlap the coloured bar movieclip (i.e. galleries, contacts, subject, etc.) So, with a change in an external file, I have the ability to change the color bars in the world to match the changing colors on the site.

    I created an external file ".txt" with only "myColor var = CC0033" in the file. I don't know if it's right, or even the wrong way, but I thought it help those smarter about what I'm doing.

    (2) I don't want my viewers having to "roll" to activate the change. I want it to happen during loading.


    Anyone who can help is a hero. Don't forget, I'm not this control to the action script, so a little guidance and clarity in your response will allow immensley! I owe you a dinner!

    Place this code on the root timeline containing your video:

    my_lv = new LoadVars();
    my_lv. OnLoad = function (s) {}
    If (s) {}
    var colorful = new color (_root. WhiteBarMC);
    colorful.setRGB (this.myColor);
    } else {}
    trace ("failed to load the file");
    }
    }
    my_lv. Load ("Colors.txt");

    Where colors.txt is a file with: & myColor = 0xCC0033 & (as kglad said)

  • Problem of external variable using AS3 in FlashCS3

    I'm moving the values of database in Flash (using AS3) thanks to a release of the simple PHP script! The problem is... I have not been able to get Flash/AS3 to recognize that she has received the allegedly externally loaded data, let alone prove that it is ready to work with the values passed into it somehow. So, OK...

    .. the is my PHP (phpCode.php) code:

    Moreover, the code I posted in this thread works!

    In other words, if the first line of the AS3 code is as shown above, instead of containing a single period (.) in the path of the file, like my local code.

  • Another problem of external variable

    Good day to all,

    Add a variable with a unique value to your call to your php file to eliminate problems of browser cache:

  • get a .as class to use an external variable

    Hello

    I have an AS 2.0 class file that is associated with my FLA project. everything works very well. There is, however, a * hard-coded * IP address inside the class definition (.as file). I need to make a dynamic value (so that I can change the IP address during execution). I'm already loading and using the value dynamically (from a config.txt file) in a FLA file. but I don't know enough about the class definitions to be able to refer to this variable from the .as file (everything I tried was stupid and gave errors).

    So basically, how to reference the value of a dynamic variable charge of in a class definition?
    There is that something called dynamic classes in AS 2.0, the solution which means?

    any help appreciated, thanks!

    make a method in the class (.as) file to set the internal ip address.

    in the class file you would have something like

    var myURI:String = ""; Assign a default IP address

    function setURI(param_uri:String) {}
    myURI = param_uri;
    } //

    or you can put it inside the constructor of the class

    Constructor(param_uri:String)...

    where the manufacturer would be the name of the class
    that is the class name is FooBar
    the Builder would be
    FooBar(param_uri:String) {}
    myURI = param_uri;
    } / / end of constructor

  • Load an external Php variable in Actionscript in flex.

    Hello

    I have be trying to load an external variable from a php file in an actionscript variable.i know how to bind the php mysql data to datagrid but not what I'm looking for, example say a php variable has a value = 5, this value will be passed to a variable limit actionscript, so now limit will have the value 5.

    I use flex 3 and I have tried many examples listed on google, I went through all the tutorials, codes, etc... all of them were made using cs3 or cs4. And when I ran get them I have strength any output at all. Either I myself am thatproperty charger was not defined or nothing in my textarea.

    If possible please guide me on the next or even want to give a small sample that works on flex3.i am also unsure of what I shud write in my php file.

    I added the code to my mxml file for what does not work and shows me a blank text box.

    Any help would be appreciated... Thanks in advance

    <? XML version = "1.0" encoding = "utf-8"? >
    < mx:Application xmlns:mx = "httw://www.adobe.com/2006/mxml" xmlns:custom = "" test.external. * "layout ="absolute"initialize =" load() ">"
    < mx:Script >
    <! [CDATA]

    private function load(): void {}
    var loader: URLLoader = new URLLoader();
    loader.addEventListener (Event.COMPLETE, onComplete);
    Loader.Load (new URLRequest (https://localhost/external.php));
    }

    private void onComplete(e:Event):void {}
    Ext. Text = URLLoader (e.target) .data;
    }



    []] >
    < / mx:Script >
    < mx:TextArea id = "ext" x = "296" y = "199" >


    < / mx:TextArea >
    < mx:Button click = "load()" x = "343,5" y = "274" > "

    < / mx:Button >
    < / mx:Application >


    Your service works when she is called in the browser?

    C

  • OSM - Automated Logging/debugging task - XQuery-

    Hello

    I have a task automated by using XQuery Sender plugin.

    I'm debugging/troubleshooting my XQuery and it would be very useful to be able to record information about the console. For example:

    Let $taskData: = fn:root (.) /OMS:GetOrder.Response

    I would like to print $taskData in the console in order to better understand my XML structure before coding the XQuery function to navigate the XML document. No idea how? I'd also be interested in tips for debugging XQuery.

    Thanks for your help!

    François.

    I think I figured out how to make logging in XQuery. Correct me if I'm wrong!

    DECLARE namespace log = "java: org.apache.commons.logging.Log;

    declare the external variable $log;

    Journal: info ($log, "test logging")

    This displays 'logging test' on the WebLogic console.

    I'm always interested to hear about your experience/tips on how to debug your XQuery code!

    Thank you

    François.

  • Instructions of 'if' XQuery does not run in OSB

    Hello

    I am trying to build an XML message in a request XQuery that is performed in a stream of messages of proxy in Oracle Service Bus 11.1.1.5.

    When I try to run something like this:
    ------------------------
    XQuery version "1.0" encoding "UTF - 8";

    declare function XMLtoBAMJSONXML ($dataStr)
    {element (JSON)}
    < JSON >
    < address >
    < streetOne > {data($dataStr/Address/LineOne)} < / streetOne >
    If (Exists($dataStr/Address/LineTwo))
    * then < streetTwo > {data($dataStr/Address/LineTwo)} < / streetTwo > *.
    < City > {data($dataStr/Address/City)} < / City >
    < State > {data($dataStr/Address/State)} < / State >
    < zipCode > {data($dataStr/Address/Zipcode)} < / code >
    < country > {data($dataStr/Address/Country)} < / country >
    < / address >
    < / JSON >
    };

    declare the external variable $dataStr;

    XMLtoBAMJSONXML ($dataStr)
    ----------------------

    I get this result:
    ----------------
    < JSON >
    < address >
    100, Main Street, < streetOne > < / streetOne >
    If (Exists($dataStr/Address/LineTwo))
    then
    * < streetTwo > APPT 202 < / streetTwo > *.
    < City > Lexington < / City >
    MY < State > < / State >
    < zipCode > 02425 < / code >
    < country > USA < / country >
    < / address >
    < / JSON >
    -----------------


    My 'for' loops work (not shown here). But are not my statements '' if. ''

    No idea what's wrong with my syntax 'if '?

    Thank you
    Michael

    Published by: mscongdon on June 6, 2013 06:09

    declare function XMLtoBAMJSONXML ($dataStr)
    {element (JSON)}


    {data($dataStr/Address/LineOne)}
    {if(exists($dataStr/Address/LineTwo))
    then {data($dataStr/Address/LineTwo)} else() }

    {data($dataStr/Address/City)}
    {data($dataStr/Address/State)}
    {data($dataStr/Address/Zipcode)}
    {data($dataStr/Address/Country)}



    };

    put braces {} around if

    Published by: 988445 on June 6, 2013 06:40

  • Oracle Service Bus - XQuery - Transformation does not return any data

    Hello

    Firstly I appologise for the code so much but I couldn't find a better way to put it all in a single message.

    I met a very strange and difficult situation with a mapping of Xquery. I have 2 XSD (A and B below), I'm trying to map from A to B, but the result of the mapping returns with empty data (result). Has anyone encountered such a situation before? Perhaps someone could shed some light on the matter?

    Any help is very appreciated!

    Has WSDL
    <? XML version = "1.0" encoding = "UTF - 8"? >
    < s0:definitions name = "ConsultaEstadoCartaoDefinitions" targetNamespace = "http://siebel.com/loyalty/LoyaltyAccrualServices" xmlns = "" xmlns:crm = "http://www.siebel.com/xml/PCE%20Member-Card" xmlns:s0 = "http://schemas.xmlsoap.org/wsdl/" xmlns:s1 = "http://siebel.com/loyalty/LoyaltyAccrualServices" xmlns:s2 = "http://schemas.xmlsoap.org/wsdl/soap/" xmlns: XS = "http://www.w3.org/2001/XMLSchema" > "
    < s0:types >
    < xs: Schema attributeFormDefault = "unqualified" elementFormDefault = "qualified" targetNamespace = "http://siebel.com/loyalty/LoyaltyAccrualServices" xmlns: XS = "http://www.w3.org/2001/XMLSchema" >
    < xs: import namespace = schemaLocation = "CRM_ConsultaEstadoCartao.xsd" / "http://www.siebel.com/xml/PCE%20Member-Card" >
    < xs: element name = "ConsultaEstadoCartao_Input" >
    < xs: complexType >
    < xs: SEQUENCE >
    < xs: element name = "ListOfPceMemberCard" type = "crm:ListOfPceMemberCard" / >
    < / xs: SEQUENCE >
    < / xs: complexType >
    < / xs: element >
    < xs: element name = "ConsultaEstadoCartao_Output" >
    < xs: complexType >
    < xs: SEQUENCE >
    < xs: element name = "ListOfPceMemberCard" type = "crm:ListOfPceMemberCard" / >
    < / xs: SEQUENCE >
    < / xs: complexType >
    < / xs: element >
    < / xs: Schema >
    < / s0:types >
    < s0:message name = "ConsultaEstadoCartao_Input" >
    < item s0:part = "s1:ConsultaEstadoCartao_Input" name = 'settings' / >
    < / s0:message >
    < s0:message name = "ConsultaEstadoCartao_Output" >
    < item s0:part = "s1:ConsultaEstadoCartao_Output" name = "ListOfPceMemberCard_Output" / >
    < / s0:message >
    < s0:portType name = "ConsultaEstadoCartao" >
    < s0:operation name = "ConsultaEstadoCartao_Input" parameterOrder = 'settings' >
    < s0:input message = "s1:ConsultaEstadoCartao_Input" / >
    < s0:output message = "s1:ConsultaEstadoCartao_Output" / >
    < / s0:operation >
    < / s0:portType >
    < name s0:binding = "ConsultaEstadoCartaoSoapBinding" type = "s1:ConsultaEstadoCartao" >
    < s2:binding style = transport "document" = "http://schemas.xmlsoap.org/soap/http" / >
    < s0:operation name = "ConsultaEstadoCartao_Input" >
    < s2:operation style = "document" / >
    < s0:input >
    < s2:body pieces = use "settings" = "literal" / >
    < / s0:input >
    < s0:output >
    < s2:body pieces = use "ListOfPceMemberCard_Output" = "literal" / >
    < / s0:output >
    < / s0:operation >
    < / s0:binding >
    < s0:service name = "ConsultaEstadoCartao" >
    < s0:port binding = "s1:ConsultaEstadoCartaoSoapBinding" name = "ConsultaEstadoCartao" >
    < s2:address location = "http://localhost:7001/CartaoEscola_WS_Test/ConsultaEstadoCartao" / >
    < / s0:port >
    < / s0:service >
    < / s0:definitions >

    B XSD
    <? XML version = "1.0" encoding = "UTF-8"? >
    < schema targetNamespace = "http://pt.min-edu.cartaoescola/EAI/ConsultaEstadoCartao."
    elementFormDefault = "qualified" xmlns = "http://www.w3.org/2001/XMLSchema" xmlns:tns = "http://pt.min-edu.cartaoescola/EAI/ConsultaEstadoCartao" >
    < annotation >
    < documentation >
    Copyright (C) 2010 Novabase Consulting. All rights reserved.
    < / documentation >
    < / annotation >
    < complexType name = "CartaoComplexType" >
    <>sequence

    < element name = "NumCartao" type = "string" >

    < / item >



    < element name = "EstadoCartao" type = "string" > < / item >
    < / sequence >
    < / complexType >

    < element name = "ConsultaEstadoCartaoInput" type = "tns:consultaEstadoCartaoComplexType" > < / item >
    < complexType name = "consultaEstadoCartaoComplexType" >
    <>sequence
    < element name = "IdMensagem" type = "string" minOccurs = "1".
    maxOccurs = "1" >
    < / item >
    < element name = "Origem" type = "string" minOccurs = "1".
    maxOccurs = "1" >
    < / item >
    < element name = "card.
    Type = "tns:CartaoComplexType" minOccurs = "0".
    maxOccurs = "1" >
    < / item >
    < / sequence >
    < / complexType >


    < element name = "ConsultaEstadoCartaoOutput" type = "tns:consultaEstadoCartaoComplexType" > < / item >
    < / schema >

    Mapping of XQuery code
    (: pragma bea: global-element-OdbcParameter parameter = "$consultaEstadoCartao_Output1" element = "ns0:ConsultaEstadoCartao_Output" location =".. / CRM/CRM_ConsultaEstadoCartao4.wsdl '::))
    (: pragma bea: element global-element-return = "ns2:ConsultaEstadoCartaoOutput" location = "EAI_ConsultaEstadoCartao.xsd" ::))

    declare namespace ns2 = "http://pt.min-edu.cartaoescola/EAI/ConsultaEstadoCartao";
    declare namespace ns1 = "http://www.siebel.com/xml/PCE%20Member-Card";
    declare namespace ns0 = "http://siebel.com/loyalty/LoyaltyAccrualServices";
    declare namespace xf = "http://tempuri.org/OSB%20Project%20CartaoEscola%20Consulta%20Estado%20Cart ao/EAI/temp /";

    declare function xf:temp ($consultaEstadoCartao_Output1 as element (ns0:ConsultaEstadoCartao_Output))
    {element (ns2:ConsultaEstadoCartaoOutput)}
    < ns2:ConsultaEstadoCartaoOutput >
    < ns2:Cartao >
    < ns2:EstadoCartao > {data($consultaEstadoCartao_Output1/ns0:ListOfPceMemberCard/ListOfLoyMembershipCard/LoyMembershipCard[1]/CardStatusCode)} < / ns2:EstadoCartao >)
    < / ns2:Cartao >
    < / ns2:ConsultaEstadoCartaoOutput >
    };

    declare the external variable $consultaEstadoCartao_Output1 as element(ns0:ConsultaEstadoCartao_Output);

    XF:temp ($consultaEstadoCartao_Output1)


    Test data
    <? XML version = "1.0"? >
    < ns0:ConsultaEstadoCartao_Output xmlns:ns0 = "http://siebel.com/loyalty/LoyaltyAccrualServices".
    xmlns:ns1 = "http://www.siebel.com/xml/PCE%20Member-Card" >
    < ns0:ListOfPceMemberCard >
    < ns1:ListOfLoyMembershipCard >
    < ns1:LoyMembershipCard >
    < ns1:CardNumber > CardNumber_1 < / ns1:CardNumber >
    < ns1:CardStatusCode > CardStatusCode_1 < / ns1:CardStatusCode >
    < / ns1:LoyMembershipCard >
    < / ns1:ListOfLoyMembershipCard >
    < / ns0:ListOfPceMemberCard >
    < / ns0:ConsultaEstadoCartao_Output >

    Result
    < ns2:ConsultaEstadoCartaoOutput xmlns:ns2 = "http://pt.min-edu.cartaoescola/EAI/ConsultaEstadoCartao" >
    < ns2:Cartao >
    < ns2:EstadoCartao > < / ns2:EstadoCartao >
    < / ns2:Cartao >
    < / ns2:ConsultaEstadoCartaoOutput >

    Thank you

    Adel

    Hi Alex,

    I'm not quite sure what could have caused the problem - if the problem recurs, then this is probably a bug; If not, one of these things... :)

    Kind regards
    Yohanna.

  • Sync to external trigger in conjunction with a nearest pulse frequency device fixed...

    I am writing an application running a scan frame. One axis of the scanner runs at a fixed frequency. I use a scanner high speed 5105 to get the data. The slow axis of the scanner is controlled by a servo with an analog input. I have will probably use an M-series card for analog control, but can also go with a 6713 (output only) or another Board. Fixed frequency Analyzer provides a clock line, I want to use to drive the 5105. In addition, the analog card must be synchronized in this. The entire system should be able to accept a trigger external devices, as it starts scanning at the edge of clock on next line.

    I'm not quite sure about what would be the best way to do it. External triggering from other devices will be an indeterminate pulse width, so I can not just use it as a portal for the line clock. I am reluctant to do it in software (IE via the detection of changes on a digital line) because I want to be reliable started the next clock pulse. I have taken into account things like a counter/timer with a relaxing break, but which could lead to drift between the narcotics control and frequency scanner fixed. It seems just more complex that I think it should be, and it feels like I'm missing a simple way to do it.

    Any suggestions?

    Hi cshl,.

    Good to know - the 5105 has a duty cycle of tolerance of 45-55% (mentioned on the page of the form), so that is why you cannot change clock speed from 3 to 12 MHz on-the-fly (though if you make small incremental updates over time, it would be theoretically possible).

    With the additional information in mind, you might want to try the following on the 5105:

    Use the external trigger as a trigger of departure (arm of acquisition).

    Use the line as a signal reference clock (with a position of 0 samples for reference ~ 7500 are after initiation).

    The problem with this is that you will have to re - trigger on each line - 5105 has a 2.4 rearm us time (also mentioned in the page on record).  If this is unacceptable, another way that I can think of is to use a clock to external reference in PLL internal clocks of the bezel to.  If you can provide a stable, a clock accuracy 50 ppm which is synchronized with your scanner within reach, would solve the problem of drift over time without having to re - trigger on each line (only acquire data continuously).  This clock frequency must be between 1 MHz and 20 MHz in steps of 1 MHz.

    We have no Council can take in an external variable clock up to 12 MHz (on-the-fly), but if you wanted to compromise a little bit the 6115 can enjoy up to 10 MHz, and has no obligation to cycle to 45-55% so it's maybe interesting look in.

    As far as AO goes, I assumed that the clock line is declared after the quick scanner has completed his turnaround (ideally you do not update the zone of OCCUPATION during the lead time).  If you have a signal Analyzer that you can use instead probably easier.  If not, our peripheral series M and X series (but not the series AO 67xx) offer reference clock feature so if you go with the idea of reference mentioned above clock it may be easier to simply PLL the clocks together.  These cards in a PXI chassis or are they PCI form factor?

    I don't know what you mean by the sticking point about the need for two triggers.  I think the idea is that we use the external trigger to arm the 5105 and clock line to trigger each record.  However, if you do not need to generate a pulse double based on the clock of your line then you can use counters to do (our counters are redeclenchables with time to rearm in the ns range).

    Best regards

    John

  • Export SVG - variable not selected

    Hello

    I try to keep variables when you work in Illustrator as a SVG export. This is so that the text SVG content can be manipulated outside and then brought back to Amnesty International and the variable data update exported as XML.

    I'm scripting the SVG export. First, I created a variable for each piece of text and then export the doc. With property preserveeditability set to false (because it must be for the graphics be handled externally), variables seem to lose their link to object when the re-opening the SVG in artificial intelligence. Inspect the document SVG itself, the variables are indeed still there and remain bound by the relevant XML ID, but when the document is opened, the variables no longer seem to be linked to anything.

    Attempts to manually assign a variable once the SVG was created does not work either. It works fine if the file is always in the format I.

    Does anyone know if this is a bug, or intended behavior? If the latter is at - it workaround to keep variables related to the SVG elements, even when the editable character is not preserved?

    Thank you

    David

    You probably want to put this in the forum script.

    In my opinion, they have just enough resources to make the feature so robust that it preserves the variable features once the file is saved as SVG without editability of kept.

    Not sure what is your goal for this export method, but if you want the graphics to be handled outside while keeping the art related to variables, which does not at the same time as you say, perhaps a workaround might be illustrations not compatible variable SVG export and using another script to open after having been transformed on the outside to match and to visually change the work of the master document HAVE which variables.

    If your master document of AI has a number of ways and forms and changes of external processes, some stroke or fill colors or paths of the form, your 2nd script could simply change the forms and the colors in your document There by opening and reading the transformed or even SVG document using the text in the SVG file to get the properties of the work.

  • To detect a change in a Variable?

    Hi all

    I can detect a change in variable (a string of data)?

    I do an AS2 SWF (level 7 Player) with navigation of the combobox control.

    I have a page name variable that I change from outside the SWF with the Director and Authorware using (I think) FlashVars.

    The variable (internally) is set by default when SWF is initialized.

    Authorized external variable values are always one of the combobox data field values.

    The combobox default variable is not always the index 0 (zero) position. Or the order of the data or the other.

    The variable can be modified internally in combobox nav used to independent navigation of the external variable. -It works

    When the nav var shared changes of the external source, the ComboBox must change for the variable game data to combobox corresponding. That's what I'm trying to do.

    I can change the drop-down list Configuration programmatically (index), but failed to recognize him as a change event. Or tell him by programming

    The combobox control can be selected by the data variable, or is the only option to use the index (loop index values to match the variable data field)?

    And update the selection combobox (and therefore the nav page) by triggering a change by programming event?

    Detect the var itself without the OnEnterFrame turn change is my goal - if it even works in the version I use (flash palyer 7).

    Thank you

    Jim

    You can use watch(). I have not used for some time, so you will need to check the documentation.

  • [as2] Variable control

    Hello guys, I have a problem and I hope to better explain.
    I am creating a website using SWFAddress. No problem, apart from this thing.

    Suppose I get an external variable called pippo having this value:
    nome/15.

    I need to create an IF statement, what makes a thing like that: If pippo is == nome / + a number and if this number is greater than 0 (so she must check just the fact that 15 is a number ), and then assigns that number to the pippo_numerovariable.

    I've looked everywhere and I have found, in essence,
    a function that identifies in a variable composed of characters and numbers, if there is a number, and what is it . I ask you if there is this function and if you were so gracious to give me an example, saved my life.

    Thanks in advance for your time,

    var str:String = ' nome/15' / / (whereas pippo =nome/15)

    var sr:String = str.substr (5, 2);

    If ' nome /' is the same for all value and number only changes

    You can also use

    var len:Number = str.length

    var sr:String = str.substr (5, len);

    will be useful for numbers to a number like 0.1... 9

    trace (SR) //will track 15

    If ((sr) Number > 0) {}

    pippo_numero = Number (SR);

    }

    Hope this is what you look at.

Maybe you are looking for