Working with strings

Hello

I have been working with c# for a while and switched to obj - c to create an application for the playbook. Ive made c# is much easier than objc when it comes to type conversion.

Is there an acutal type 'string' in obj - c? If this isn't the case, I should just use an array of characters?

Can someone explain to me how I would like to convert it a float to a string array of characters.

Can I use in liberation (thining of the license) since ive used itoa to convert int to char array.

Any help would be greatly appreciated,

Thank you

Mike

You might need to include a specific heading for atof - google will tell you that one. I don't know anything about c#. C++ standard library which can facilitate things for you, especially when it comes to data structures for managing the lists and so on. It also allows you to use a model of OBJECT-oriented design.

If you must restart in C++ depends on what you're actually trying to conceive; If you simply play / learning through tutorials and then switching probably isn't worth. If you are designing a large application which would benefit of OOP, switch to C++.

Also as a side note, IMO Qt is much friendlier to the right C or C++ with the stdlib. For example with your string problem, class QString of Qt features of a super method of 'toFloat()' easy to use: http://qt-project.org/doc/qt-4.8/QString.html.

Tags: BlackBerry Developers

Similar Questions

  • work with strings, substring, pulling the characters after a certain word

    Hello please see this string:

    var String1:String = "we invite you to join our celebration of the world day of intellectual property 2015 brain where: 149 Swan St., Buffalo, NY 14203 handlebars when: Thursday, April 23, 2015, 05:30 - 19:30 there will be drink specials and complimentary hors d'oeuvres!" And prizes! ";

    What I want to do is to remove all characters after the word ' where: ' in a string so that it hits "when:" & do the same thing to grab the string of the moment: until it hits PM

    What is the best way to do it?

    Thanks in advance.

    String.indexOf allows you to find the position of a string in the main string, substr years or a substring out pieces. Something like this:

    trace (string1. Substring (string1. IndexOf("WHERE:") + 6, String1.indexOf ('When :")));

    trace (string1. Substring (string1. IndexOf("When:") + 5, String1.indexOf ("PM") + 2));

  • Bindings.Select does not work with the primitive properties like string etc?

    My code works when I use a < String > ObjectProperty, this however does not work when I use a string instead.

    Don't know if this Bindings.select behavior is a bug or expected.

    The NBS are:

    The impression is:

    ObjectProperty < String >--> < String > ObjectProperty: abc

    String-> string: null

    String-> < String > ObjectProperty: null

    I expect all cases to print 'abc' good

    import javafx.beans.binding.Bindings;
    import javafx.beans.property.ObjectProperty;
    import javafx.beans.property.SimpleObjectProperty;
    import javafx.beans.property.SimpleStringProperty;
    import javafx.beans.property.StringProperty;
    
    public class SelectBindingTest {
    
        public static class A {
    
            private StringProperty comment = new SimpleStringProperty(this, "comment");
            private ObjectProperty<String> commentObj = new SimpleObjectProperty<>(this, "commentObj");
    
            String getComment() {
                return comment.get();
            }
    
            StringProperty commentProperty() {
                return comment;
            }
    
            void setComment(String comment) {
                this.comment.set(comment);
            }
    
            public String getCommentObj() {
                return commentObj.get();
            }
    
            public ObjectProperty<String> commentObjProperty() {
                return commentObj;
            }
    
            public void setCommentObj(String commentObj) {
                this.commentObj.set(commentObj);
            }
        }
    
        public static class B {
            private ObjectProperty<A> member = new SimpleObjectProperty<>(this, "member");
    
            A getMember() {
                return member.get();
            }
    
            ObjectProperty<A> memberProperty() {
                return member;
            }
    
            void setMember(A member) {
                this.member.set(member);
            }
        }
    
        public static void main(String[] args) {
            B b = new B();
            A member = new A();
            b.setMember(member);
    
            final String expectedString = "abc";
    
    // this works
            SimpleObjectProperty<String> targetStringObjProperty = new SimpleObjectProperty<>("initialTargetText");
            member.setCommentObj("initialSourceText");
            targetStringObjProperty.bind(Bindings.<String>select(b.memberProperty(), "commentObj"));
            member.setCommentObj(expectedString);
            System.out.println("ObjectProperty<String> -> ObjectProperty<String>: " + targetStringObjProperty.get());
    
    // this doesn't work
            SimpleStringProperty targetStringProperty = new SimpleStringProperty("initialTargetText");
            member.setComment("initialSourceText");
            targetStringProperty.bind(Bindings.selectString(b.memberProperty(), "comment"));
            member.setComment(expectedString);
            System.out.println("StringProperty -> StringProperty: " + targetStringProperty.get());
    
    // this doesn't work either
            targetStringObjProperty = new SimpleObjectProperty<>("initialTargetText");
            member.setComment("initialSourceText");
            targetStringObjProperty.bind(Bindings.<String>select(b.memberProperty(), "comment"));
            member.setComment(expectedString);
            System.out.println("StringProperty -> ObjectProperty<String>: " + targetStringObjProperty.get());
        }
    
    }
    
    
    
    

    EDIT: Sorry for the horrible formatting. Can't seem to understand how to properly insert empty lines.

    Read the fine print in http://docs.oracle.com/javafx/2/api/javafx/beans/binding/Bindings.html#select(javafx.beans.value.ObservableValue, java.lang.String...)

    All classes and properties used in an affair of selection must be public.

    If you do your commentProperty, getProperty (and setProperty, although I suppose it doesn't matter) methods in public class has, it works as expected.

    Post edited by: James_D (link fixed javadoc)

  • Genral how do synchronized encoders work with a PCI-6602


    Well, here is the work routine for syncronous data two encoders, and it seems to work very well.

    I have this working with my two 2000 encoders of CPR, let's see how it works when I get the CPR 500 000 encoders later.

    The three major problems that caused it does not work have been:

    (1) argument to the task of createCOpulsechanfreq must be between 0 and 1 of the cycle Theduty.  I had ' 50.0 ' before, it works when it is "0.5".

    (2) the time base sample that I used (ctr7) necessary must be started before one of my two angle encoder tasks have been created

    (3) the string "dev/PFI8" should be replaced by ' / dev/PFI8 ".   I don't really understand why, but it was what seemed to fix it.

    If this question has been answered...      Now I have a different problem when playing 8 values PWM both with the Semiperiodcounter, which I'll post in a new a different thread.

    Thank you!

    "' Working code here

    Public Sub Aquireposition(samples As Long, data0() As Double, data1() As Double)

    Protected BaseTaskHandle as long
    Dim encoder0TaskHandle As Long
    Dim encoder1TaskHandle As Long
    Dim TaskIsRunning As Boolean
    Dim ReadCount as long
    Dim strCounterString As String

    On Error GoTo ErrorHandler
      
    DAQmxErrChk DAQmxCreateTask ("base", BaseTaskHandle)
         
    DAQmxErrChk DAQmxCreateCOPulseChanFreq(BaseTaskHandle, "/Dev1/ctr7", "base", DAQmx_Val_FrequencyUnits2_Hz, DAQmx_Val_Level1_Low, 0#, 200#, 0.5)
    "Specify the continuous time
    DAQmxErrChk DAQmxCfgImplicitTiming(BaseTaskHandle, DAQmx_Val_AcquisitionType_ContSamps, 200)
    "Startup DAQmx code."
    DAQmxErrChk DAQmxStartTask (BaseTaskHandle)
       
    "DAQmx Configure Code
    DAQmxErrChk DAQmxCreateTask ("encoder", encoder0TaskHandle)
          
    TaskIsRunning = True
         
    DAQmxErrChk DAQmxCreateCIAngEncoderChan(encoder0TaskHandle, "/Dev1/ctr0", "", DAQmx_Val_EncoderType2_X4, 0, 0#, DAQmx_Val_EncoderZIndexPhase1_AHighBHigh, DAQmx_Val_AngleUnits2_Degrees, 500, 0#, "")
    DAQmxErrChk DAQmxCfgSampClkTiming(encoder0TaskHandle, "/Dev1/PFI8", 1, DAQmx_Val_Rising, DAQmx_Val_AcquisitionType_FiniteSamps, samples)
       
    "second encoder.
    DAQmxErrChk DAQmxCreateTask ("encoder1", encoder1TaskHandle)
    TaskIsRunning = True
         
    DAQmxErrChk DAQmxCreateCIAngEncoderChan(encoder1TaskHandle, "/Dev1/ctr1", "", DAQmx_Val_EncoderType2_X4, 0, 0#, DAQmx_Val_EncoderZIndexPhase1_AHighBHigh, DAQmx_Val_AngleUnits2_Degrees, 500, 0#, "")
    DAQmxErrChk DAQmxCfgSampClkTiming(encoder1TaskHandle, "/Dev1/PFI8", 1, DAQmx_Val_Rising, DAQmx_Val_AcquisitionType_FiniteSamps, samples)

    "Startup DAQmx code."
    DAQmxErrChk DAQmxStartTask (encoder0TaskHandle)
    DAQmxErrChk DAQmxStartTask (encoder1TaskHandle)
     
    "DAQmx Code reading
    DAQmxErrChk DAQmxReadCounterF64 (encoder0TaskHandle-1, 0.05 * samples, data0 (0), samples, ReadCount, ByVal 0 &)
    DAQmxErrChk DAQmxReadCounterF64 (encoder1TaskHandle-1, 0.05 * samples, data1 (0), samples, ReadCount, ByVal 0 &)
     
    "Everything is done! StopTask
    ' DAQmxErrChk DAQmxStopTask (TaskHandle)
    "Work stoppage is not necessary because the clear task also stops task"
    DAQmxErrChk DAQmxClearTask (encoder0TaskHandle)
    DAQmxErrChk DAQmxClearTask (encoder1TaskHandle)
    DAQmxErrChk DAQmxClearTask (BaseTaskHandle)

    Exit Sub

    ErrorHandler:

    ' MsgBox "error:" & Err.Number & ""& Err.Description, "Error".
    ' mlngPWM_ErrorCount (lngChannel) = (lngChannel) + 1 mlngPWM_ErrorCount
    "MainForm.PWMErrorCount =" errors ("& lngChannel &"): "" & mlngPWM_ErrorCount (lngChannel)
      
    Next summary

    End Sub

  • command Simulator "StringInjection" does not work with SureType keyboard

    Hello

    I use the Simulator command 'StringInjection' to simulate keyboard input. However, it does not work with SureType keyboard.  Still, it appears a list of suggested words, which make the string injection stops. Is anyway to avoid this?

    It is the expected behavior.  StringInjection simulates typing on the keyboard, what might trigger a prompt SureType.

  • Ideas for why HttpConnection works with some clients and not others

    Hi, I have an application that downloads and analyzes an xml file. This works perfectly for some users and does not at all for others. They can even access the XML on the web, but it won't work with my application. Some said they used a bold font, other OS 4.5. Here is an excerpt from my source:

    HttpConnection conn = (HttpConnection) Connector.open(url);conn.setRequestMethod(HttpConnection.GET);String _node, _element;DocumentBuilderFactory docBuilderFactory = DocumentBuilderFactory.newInstance();DocumentBuilder docBuilder = docBuilderFactory.newDocumentBuilder();docBuilder.isValidating();Document doc = docBuilder.parse(conn.openInputStream());doc.getDocumentElement().normalize();NodeList list = doc.getElementsByTagName("*");// .. parse data
    

    Edit: formatting is all messed up

    Not necessarily. You * can * make your app to use BIS-B if you are a partner of the Alliance and I recommend this, but this is not necessary.

    Your customers can also connect using WAP 1.1, WAP2 or direct TCP. I would recommend that you try WAP2 first, this requires no info gateway APN or WAP. You can get the WAP2 info directly from the maintenance book.

    Try the code in the example (in the white paper that I attached earlier).

    Your best bet is to develop some hueristics of network connection using the CoverageInfo class (see the documentation of the API).

    We are doing something like this, at the bottom of the list:

    BES

    BIS-B

    WiFi

    WAP2

    WAP1.1

    Direct

    I think that in the USA, CA, UK and Western Union, BES and BIS - B cover approximately 90% of users. Once you walk out of those areas, it starts to be more exciting.

  • WWPN or WWNN ESX host are stored as numbers long.  How can I work with these values?

    I need to update our database of the machine with the WWPN and WWNN of each ESX host.  These are stored in the form of long integers.  What is the correct way to deal with a long integer as a partner to a 64-bit mac?  Is there a mechanism within vRO for this?  If the number has been stored as a string, that I could work with her, but when I try to convert using. toString(), I find myself with an incorrect value.

    Hello

    something like that

    for (var i = 0; i)< hostobject.configmanager.storagesystem.storagedeviceinfo.hostbusadapter.length;="" i++="">

    {

    If (HBA [i] instanceof VcHostFibreChannelHba)

    {

    System.Debug ("nodeWorldWideNameHex:" + hbas [i] .nodeWorldWideNameHex);

    System.Debug ("portWorldWideNameHex:" + hbas [i] .portWorldWideNameHex);

    }

    }

  • The essential ADF error ECourse - work with ADF connections

    I'm learning the ADF and make the ADF Essentials ECourse. I'm on the 'practice' for the first section of the ADF links. I know that the course was written for JDeveloper 11.1.2.0.0 but I use 11.1.1.7 since it is what is installed on the virtual machine available for download. During step 5-15: I get the following error when I go to view tab JPAModel "you attempted to set a value of the class type java.lang.String for deptId parameter with the expected type of class java.lang.Long query string select o o employees where o.departments.departmentId =: deptId.»

    When I think back to the procedure, the screen shots see the that GetEmployeesfindbyDept (BigDecimal Deptid)...) whereas the code that is generated in my project is GetEmployeesfindbyDept (object Deptid)...)

    I don't know if this is what causes the error, but it seems logical. What should I do to fix this error, because I REALLY want to continue this training.

    The link I provided above has tutorials for each section of the ADF.

    I recommend to start with:

    Development of rich Web Applications with Oracle ADF

    And then more: expand the JSF - controller working with stubborn workflows, regions and routers

  • Having trouble getting a REST to work with our ticketing system

    After building servers my team must complete the tickets for the kickoff of a 'validation' workflow to verify the server is in place and configured as expected. Our ticketing system can accept many REST calls to automate this process and prevent us from manually fill in a form again. However, it seems to use a type of authentication that is not necessarily supported by the plugin to REST.

    API authentication methods. Documentation of Gemini

    The link above is the article explaining the auth method. It's a name of user/key combination that is encoded in Base64. I have my login and my password encoded, but now I don't know how to make the plugin Orchestrator properly to meet the requirements of this API. I tried many things like shared Basic authentication setting and the 'basic' as the username and my encoded string usage in the ' password ' field, but no dice. " I still get a 401 Unauthorized the Gemini project back. Can anyone shed some light on how I might accomplish this? I met a brick wall here.

    Nevermind that. After working with our web developers, it turns out that someone has changed the method of authentication of this goofy apikey led to NTLM. I tried that and you can now query information without problem.

    Ugh! Good news is that I can now move!

  • Challenges, working with the Blues in vco vcac plugin

    Hello

    Work with the latest plugin VCAC release VCO (5.2 and 5.5 respectively), I intending me to put a simple set of wrapper script element before the workflow 'Configure a virtual machine for an action plan', such that (to start) entries and group plan Director supply could be sent in the form of simple name strings, rather than expecting to complex objects (as expected) to allow for easier consumption REST API (not through the layer of presentation btw, who used the inventory tree to search for and provide said interactive input objects).  I couldn't find any provided action let me do the recoveries of simple object by name and decided to start by entering a complete picture of the objects and don't string correspondent against her...

    This proved be simple enough for the provision of groups and works very well - namely due to the provided method "host.findAllChildProvisioningGroups ()", you were using it directly or through the action "getAvailableProvisioningGroups".

    Blue are becoming another story.  I found the 'getBlueprints' action, which appears to be operated by the presentation layer when the workflow is run interactively, holding an object provisioningGroup in entry (which I had already recovered above).  It did not work when used in a script element, however.  After reviewing the support action, I found that it relied on a property of the object group configuration, rather than a method (it is not a useful method available).  Adding that debugging confirmed that the table was never fill when referenced (group.virtualMachineTemplates).  I don't know if it's broken or if I should wait only it works through presentation, or if I was just incorrect use - but I started looking for alternatives.

    I have looked around in the browser of the API and other samples, including the set of extensibility and reviewed all the activities planned, but they always seem to wait for the entry of VCAC:Blueprint type.  I found getBlueprintsForProperty and it is close to what I need, if it is running too slow when you pull a list of close-up (nearly one second per object).  I don't know linqpad can empty all the plans into VCAC (via ODATA) much faster.

    In the end, I'm looking for a way to get easily all plans for a commissioning Group (or even a host if it is fast enough), returned in an array of type VCAC:Blueprint can I browse - or even more simply, to retrieve the object model directly based on a property displayName known and gets my object.  I am aware of the VCAC entity the full mechanism added in the last plugin, but concerned that I'll be back will not match the input type... It seems that some properties do not match the type VCO and others do not part of an entity to plan at all.  Frankly I was hoping to not who become familiar with the innards of the existing API VCAC and wouldn't not rather recreate a plan object of its parts of the requested Party.

    If you're still with me, thank you! - and, ideas?  I'd like to hear missing me something simple here...

    -Milson

    OK spent more time on it with begins to implement a piece of javascript to directly get an object in the inventory of its entity vCAC. Instead of an iteration all objects of the same type, it is the object directly by ID.

    var entityKeyProperties = entity.entityKey;
    var entityIdKey = entityKeyProperties.keys[0];
    var entityIdValue = entityKeyProperties.get(entityIdKey);
    System.log("Found key " + entityIdKey + " : " + entityIdValue);
    
    switch(entity.entitySetName) {
    
        case "VirtualMachines" :
            inventoryObject = Server.findForType("vCAC:VirtualMachine", entity.hostId + "/" + entityIdValue);
            break;
    
        case "VirtualMachineTemplates" :
            inventoryObject = Server.findForType("vCAC:BluePrint", entity.hostId + "/" + entityIdValue);
            break;
    
        default : throw "No inventory object for entity type " + entity.entitySetName;
    }  
    

    I worked with the old version of the plug-in and then decided to test with the last version of the plugin (5.2) and made a great discovery.

    Engineering simplified our life with the implementation of entity.getInventoryObject ();

    So basically:

    var entity = vCACinventoryObject.getEntity(); // convert an inventory object to an entity
    inventoryObject = entity.getInventoryObject(); // convert an entity to an inventory object
    

    So in your case the code to quickly find a blueprint by name would be:

    if (vcacHost == null) return null;
    var model = "ManagementModelEntities.svc";
    var entitySetName = "VirtualMachineTemplates";
    
    var property = new Properties();
    property.put("VirtualMachineTemplateName",name);
    
    var entities = vCACEntityManager.readModelEntitiesByCustomFilter(vcacHost.id, model, entitySetName, property, null);
    
    var blueprints = new Array();
    for each (var entity in entities) {
        blueprints.push(entity.getInventoryObject());
    }
    
    return blueprints;
    
  • Work with items from ExtendScript

    Hello!

    I have a few questions about working with elements form ExtendScript via API FM.

    (1) how to assign a value to text in an element?

    (2) can I insert a new element to an existing element? If it is possible then what objects or functions should be used for this? They write in a reference that the object of the element has the Delete() method, but I did not find the method Insert() or anything resembling it.

    Thank you!

    Michael,

    These samples do not contain specific examples for what you want to do. To complete, here's a function that inserts a new element and adds text. The arguments are:

    doc (object) - a document object is valid.

    parentElem (object) - the element where you want to insert the new item. The new item is inserted at the beginning.

    newElemTag (String) is the tag for the new item.

    newElemText (String) = the text for the new item.

    Note that:

    -This function has no control of errors, which would be a good idea for a more robust script.

    -When adding items and inserting text, you deal with text and item locations. These can be complex for a beginner to understand.

    Russ

    function insertElementAndAddText(doc, parentElem, newElemTag, newElemText)
    {
        //Get the element definition from the EDD for a 

    element. var elementDef = doc.GetNamedElementDef(newElemTag); //Set up the element location for the insertion... //the beginning of the current element branch. var elementLoc = new ElementLoc(); elementLoc.parent = parentElem; elementLoc.child = parentElem.FirstChildElement; elementLoc.offset = 0; //Insert the new element var newElem = elementDef.NewElementInHierarchy(elementLoc); //Adjust the element location to be at the beginning of the //new element branch elementLoc.parent = newElem; elementLoc.child = newElem.FirstChildElement; elementLoc.offset = 0; //Set up the text location required to add the text, then add it. textLoc = doc.ElementLocToTextLoc(elementLoc); doc.AddText(textLoc, newElemText); }

  • SQL: REGEXP_SUBSTR CSV with string delimiter

    Hello

    I would like to create a function to split a CSV file with string using REGEXP delimiter.

    Because the REGEXP function does not deal with NULL values, in the first place, I use a REGEXP_REPLACE:

    SELECT REGEXP_REPLACE (' ' ' ';) "2011-12-30 15:33:15 '; "" 116 "; » « ; » 1 » ; "" ANSWER "; "" SIP/SDX20016-b6ec9c10 '; (""', '("") + ',' 'NULL' ') FROM dual;

    Result:

    'NULL '; "2011-12-30 15:33:15 '; "" 116 "; "' NULL '; » 1 » ; "" ANSWER "; "" SIP/SDX20016-b6ec9c10 '; "' NULL '.

    If I can deal with the empty columns.

    Then I apply this REGEXP:

    SELECT REGEXP_SUBSTR (' 'NULL';) "2011-12-30 15:33:15 '; "" 116 "; "' NULL '; » 1 » ; "" ANSWER "; "" SIP/SDX20016-b6ec9c10 '; ("' NULL ' ',' [^(";")] +', 1, level)-LOOSE COLLECTION ltab_SplittedTelList
    OF the double
    CONNECT REGEXP_SUBSTR (' 'NULL';) "2011-12-30 15:33:15 '; "" 116 "; "' NULL '; » 1 » ; "" ANSWER "; "" SIP/SDX20016-b6ec9c10 '; » NULL » ', ' [^ « ; »] +', 1, level) IS NOT NULL;

    Result:

    NULL VALUE

    2011-12-30 15:33:15

    116

    NULL VALUE

    1

    REPLIED

    SIP/SDX20016-b6ec9c10

    NULL VALUE

    Very good, but if I put a delimiter column ';' in the middle of a string, for example in the middle of the date, I had my date cut in two.

    I can't find the correct model for my REGEXP.

    Jump, it is possible to do it with REGEXP.

    Thanks in advance,

    Greg.

    Hi, Greg.

    Here's a way to do it in pure SQL:

    WITH got_str AS

    (

    SELECT "' ';'" 2011 12-30; 15:33:15 '; 116. " » « ; » 1 » ; "" ANSWER "; "" SIP/SDX20016-b6ec9c10 '; ' ' ' ' ' AS str

    OF the double

    )

    SELECT THE LEVEL

    , REGEXP_SUBSTR (' ";' |") Str | ';"'

    , '";" ((([^"]*"[^;]) *[^"])*)'

    1

    LEVEL

    NULL

    1

    ) AS sub_str

    OF got_str

    CONNECT BY LEVEL<= 1="" +="" regexp_count="" (="">

    , '";"'

    )

    ;

    Note that I added one; after 2011-12-30.

    Output:

    LEVEL SUB_STR

    ---------- -------------------------

    1

    2 on 12-30-2011; 15:33:15

    3 116

    4

    5 1

    6 ANSWERED

    7 SIP/SDX20016-b6ec9c10

    8

    As always, the solution depends on your version.  It works in Oracle 11.2.

    Your message, it seems that you do this in PL/SQL.  The above query will work in PL/SQL, of course, but it might be simpler to use the code of procedure.  Parse the string from left to right, followed the quotation marks and semicolons.  If you find a semicolon, and the total number of quotes spent so far is the same, then you have found the beginning of a new secondary channel.

  • Works with different types of vector

    So, I'm working on ways to work with vectors. So if I have a method that makes things with vectors and returns a new vector

    function intersection(v1:Vector.<XML>,v2:Vector.<XML):Vector. < XML > {}

    var result: vector. < XML > = new Vector. < XML >

    understand which elements are in the two vectors and in the result

    return the result;

    }

    For the moment, I work with XMLs vectors, but what happens if I wanted to do this with strings or Sprites or something like?

    I do a different function to each manage? Or is there a way writing that he accepts any type of vector and return one of the same?

    Yes, it'll always be the case for a function that returns a * data type and you are implicitly that casting as a specific data type.  It doesn't matter whether you use specific vector data types or any other type of data.  the compiler using strict is always going to show an error.

    explicitly cast your value returned (as has) or not to use the compiler in strict mode.

  • AS the operator does not work with the DATE

    Hello
    I have a simple select statement and in the WHERE clause if I use AS with a date field it doesn't but it works with a string field. For example:
    --does not work. does not bring any rows
    Select * From MyTab
    Where  time_period Like '%';
    --works and brings ALL data
    Select * From MyTab
    Where  level_code Like '%';
    Where time_period is of data type DATE and VARCHAR2 level_code.

    Hello

    That's how AS is supposed to work.

    x LIKE y
    

    won't be TRUE if x is ZERO, no matter what.

    If you want an expression which returns TRUE when x is NULL and y '%', then use NVL to map NULL to an appropriate value.
    For example:

    Select  *
    From      Mytab
    Where       NVL ( TO_CHAR ( time_period
                          , 'MM/DD/YYYY HH:MI:SS AM'
                    )
             , ' '     -- One space
             ) Like '%';
    

    TO_CHAR to explicitly create a string based on a DATE, in the format that you want. Do not rely on implicit conversions.

  • APEX 4.0.1. does not work with IE8 or Firefox 3.6

    I've updated my brwser IE from 6 to 8: even the login page to find errors reporst APEX.
    The entire application does not work with Firefox.

    I do any customization for Firefox and IE8?

    Error messages (such as reported by IE8):



    Webpage error details

    User Agent: Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 5.1; Trident/4.0; .NET CLR 2.0.50727; .NET CLR 3.0.4506.2152 .NET CLR 3.5.30729;. InfoPath.2; .NET CLR 1.1.4322)
    Timestamp: Friday, October 22, 2010 07:49:27 UTC


    Message: Not terminated string constant
    Line: 8
    Char: 78
    Code: 0
    URI: http://127.0.0.1:8080/apex/f? p = 4550:1:2607772430187012


    Message: Invalid character
    Line: 1
    Char: 1
    Code: 0
    URI: file:///D:/apex4.01/apex/images/libraries/jquery/1.4.2/jquery-1.4.2.min.js


    Message: Invalid character
    Line: 1
    Char: 1
    Code: 0
    URI: file:///D:/apex4.01/apex/images/javascript/apex_4_0.js


    Message: Invalid character
    Line: 1
    Char: 1
    Code: 0
    URI: file:///D:/apex4.01/apex/images/javascript/apex_legacy_4_0.js


    Message: Invalid character
    Line: 1
    Char: 1
    Code: 0
    URI: file:///D:/apex4.01/apex/images/javascript/apex_widget_4_0.js


    Message: Invalid character
    Line: 1
    Char: 1
    Code: 0
    URI: file:///D:/apex4.01/apex/images/javascript/apex_dynamic_actions_4_0.js


    Message: Invalid character
    Line: 1
    Char: 1
    Code: 0
    URI: file:///D:/apex4.01/apex/images/libraries/jquery-ui/1.8/ui/minified/jquery-ui-1.8.custom.min.js


    Message: Invalid character
    Line: 1
    Char: 1
    Code: 0
    URI: file:///D:/apex4.01/apex/images/javascript/apex_builder_4_0.js


    Message: "apex" is not defined
    Online: 89
    Char: 1
    Code: 0
    URI: http://127.0.0.1:8080/apex/f? p = 4550:1:2607772430187012


    Message: Object EXPECTED
    Online: 46
    Char: 1
    Code: 0
    URI: http://127.0.0.1:8080/apex/f? p = 4550:1:2607772430187012


    Message: Object EXPECTED
    Online: 46
    Char: 1
    Code: 0
    URI: http://127.0.0.1:8080/apex/f? p = 4550:1:2607772430187012


    Message: Object EXPECTED
    Online: 46
    Char: 1
    Code: 0
    URI: http://127.0.0.1:8080/apex/f? p = 4550:1:2607772430187012


    Message: Object EXPECTED
    Online: 46
    Char: 1
    Code: 0
    URI: http://127.0.0.1:8080/apex/f? p = 4550:1:2607772430187012


    Message: Object EXPECTED
    Online: 46
    Char: 1
    Code: 0
    URI: http://127.0.0.1:8080/apex/f? p = 4550:1:2607772430187012


    Message: Object EXPECTED
    Online: 46
    Char: 1
    Code: 0
    URI: http://127.0.0.1:8080/apex/f? p = 4550:1:2607772430187012


    Message: Object EXPECTED
    Online: 46
    Char: 1
    Code: 0
    URI: http://127.0.0.1:8080/apex/f? p = 4550:1:2607772430187012


    Message: Object EXPECTED
    Online: 46
    Char: 1
    Code: 0
    URI: http://127.0.0.1:8080/apex/f? p = 4550:1:2607772430187012

    Hello

    Path of the image must be
    You have wrongly last set in the installation script

    You can reset the path of the image with the reset_image_prefix.sql script.
    Run the script as SYS. When he invites new path enter

    /i/
    

    After this you may need to download images again to DB with the apxldimg.sql script

    Kind regards
    Jari

Maybe you are looking for

  • P7 - 1420t: plug on motherboard

    I added a USB to my HP p7 - 1420t.  The card requires a power connection 4 pins on the motherboard.  Where is the plug located on the motherboard?  Could I also use one of the connectors for power cable providing the hard drive and optical drive?

  • Display went dim?

    My monitor went dim. I can still see everything - it's just dark. How can I fix?

  • How to enable windows firewall, in the model of sony vaio vpceb36fg

    Sony vaio model vpceb36fg use... in this security alert comes as "windows firewall is not up-to-date on or off '... I don't know how to turn on the firewall... McFee anti virus was in default... I uninstalled and using avast antivirus... but I still

  • Configure the Media Center with TV combo tuner

    I'm trying to set up Media Center (Vista Home Premium) to recognize the analog part of my TV Wonder ATI 750USB tuner. Support page of Windows says ther is a fix. However, the services are not available and there is no indication when they will be ava

  • My office has pages of calendars, etc. in the column of gadgets!

    AM operating Windows Vista Edition Home Premium and my office is filled with calendars in the column of gadgets to the right of the screen.  Whenever I try to delete a calendar system breaks down!