Need Hex conversion to char for 4 digits.

I need to read a file in and translate some of the characters into integers. I need the hex value from the character. Problem is, when using Cp850 which is the encoding of the file, some characters show as ? instead of the proper character.
A simple output shows the problem where only 4 digit hex values will not appear correctly. You can view the character set and values at the following URL http://www.microsoft.com/globaldev/reference/oem/850.htm
Here is a simple app to show the problem.
public class EncodingTest {
     public static void main(String[] args) throws Exception {
          String encoding = "Cp850"; //args[ 0 ];
          byte[] b = new byte[256];
          for (int i = 0; i < 256; i++)
               b[i] = (byte)i;
          byte c[] = new byte[1];
          String x = new String(b, encoding);
          for (int i = 0; i < x.length(); i++) {
               c[0] = b;
               if (x.charAt(i) != i)
                    System.out.println(i + " -> " + (int)x.charAt(i) + "->" + (new String(c, encoding)));
How to I get character 176 for example to show correctly? I tried to post the output from the app but all of the characters showed as ?.

Well, if you want to convert int or char values to hex, just do the following:
Integer.toHexString(int value);
Now, about your charset problem, I tried it and found out that you will definetly not be able to print strange characters in DOS.
I'll show you my example, it might help you; it prints out good in my computer...
public class EncodingTest {
    public static void main(String[] args) throws Exception {
        String encoding = "Cp850"; //args[ 0 ];
        byte[] b = new byte[256];
        for (int i = 0; i < 256; i++)
            b[i] = (byte) i;
        byte c[] = new byte[1];
        String x = new String(b, encoding);
        for (int i = 0; i < x.length(); i++) {
            c[0] = b;
if (x.charAt(i) != i)
System.out.println(i + " -> " + Integer.toHexString((int)x.charAt(i)) + "-> " + (int)x.charAt(i) + "->" + (char) i + "->" + (new String(c, encoding)));

Similar Messages

  • Just need 1/8 inch to RCA for digital coax out with audigy se right?

    DJust need /8 inch to RCA for digital coax out with audigy se right? Hi there,
    I need a low profile soundcard that can deli'ver digital 5. through either coax or optical, looks like the audigy se will do just that. I have a yamaha receiver with DTS, DD, etc with a coax input that I want to use. I want to confirm that all I really need is a cable that has an /8 inch plug for the blue digital out on the soundcard with an RCA end for my receiver.... sounds simple enough to me but I want to make sure. I know I can get the digital I/O module but don't see a point if I just need the cable I mentioned.
    Thanks.
    Message Edited by recklessftw on 0-22-2009 09:3 [email protected]

    Let's take Battlefield 242 for example. The game will not allow me to specify hardware sound.
    That would be because that card DOES NOT have any hardware on it, it is a totally software dri'ven card.
    And yes your old Li've card is much better than the Audigy SE. The Audigy SE is nothing more than a re-named SB Li've 24 bit, which is also a software based card (same applies to the X-Fi Xtreme Audio, a POS card that should have never been given the X-Fi name).

  • I have a western digital external hard drive that needs to be re formatted for use on my but iMac but I do not want to lose existing data

    I have a Western Digital external hard drive that needs to be re formatted for use on my iMac, but I do not want to lose existing data, is this possible ?

    Formatting a disk always erases all the data on it. Your only option is to back it up elsewhere and restore it once formatted.

  • Need help writing script for Digital DAQ

    Hello,
    I am trying to write an aquisition program for digital input coming from a hall sensor.  I will be passing a magnet over a hall sensor on a motor and want to record the number of rotations.  I have pasted together a script based on various websites, but it isn't functioning the way I want.  I would like to be able to collect data points indefinately, or fixed, and then print out the resulting count.  I have attepted to use the ctypes wrapper in Python.  The NI functions remain unchanged though, so if you don't know Python it shouldn't be a problem to read.  I am using a NI PCI-6503. 
    NI PCI-6503
    NI PCI-6503
    NI PCI-6503
    The code:
    # C:\Program Files\National Instruments\NI-DAQ\Examples\DAQmx ANSI C\Analog In\Measure Voltage\Acq-Int Clk\Acq-IntClk.c
    import ctypes
    import numpy
    nidaq = ctypes.windll.nicaiu # load the DLL
    # Setup some typedefs and constants
    # to correspond with values in
    # C:\Program Files\National Instruments\NI-DAQ\DAQmx ANSI C Dev\include\NIDAQmx.h
    # the typedefs
    int32 = ctypes.c_long
    uInt32 = ctypes.c_ulong
    uInt64 = ctypes.c_ulonglong
    float64 = ctypes.c_double
    TaskHandle = uInt32
    # the constants
    DAQmx_Val_ChanForAllLines = int32(0)
    def CHK(err):
    """a simple error checking routine"""
         if err < 0:
              buf_size = 200
              buf = ctypes.create_string_buffer('\000' * buf_size)
              nidaq.DAQmxGetErrorString(err,ctypes.byref(buf),buf_size)
              raise RuntimeError('nidaq call failed with error %d: %s'%(err,repr(buf.value)))
    # initialize variables
    taskHandle = TaskHandle(0)
    max_num_samples = 1000
    # array to gather points
    data = numpy.zeros((max_num_samples,),dtype=numpy.float64)
    # now, on with the program
    CHK(nidaq.DAQmxCreateTask("",ctypes.byref(taskHandle)))
    CHK(nidaq.DAQmxCreateDIChan(taskHandle,'Dev1/port1/line1',"", DAQmx_Val_ChanForAllLines))
    CHK(nidaq.DAQmxStartTask(taskHandle))
    read = int32()
    CHK(nidaq.DAQmxReadDigitalU32(taskHandle,int32(-1),float64(1),DAQmx_Val_GroupByChannel,data.ctypes.data,max_num_samples,ctypes.byref(read),None))
    print "Acquired %d points"%(read.value)
    if taskHandle.value != 0:
         nidaq.DAQmxStopTask(taskHandle)
         nidaq.DAQmxClearTask(taskHandle)
    print "End of program, press Enter key to quit"
    raw_input()
    This script returns "Acquired 1 points" immediately, regardless of how many times the hall sensor has been switched.  
    I apologize for the sloppy code, but I understand very little of the underlying principles of these DAQ functions, despite reading their documentation.  Seeing as how the code does not return an error, I am hoping there is just a minor tweak or two that will be farily obvious to someone with more experience.  
    Thanks

    Hey Daniel,
    Most of this script is from http://www.scipy.org/Cookbook/Data_Acquisition_with_NIDAQmx. 
    I needed to run the ReadDigitalU32 function in Python loop because my DAQ device did not support timed aquistion and I don't have LabView.  
    import numpy
    import time
    import ctypes
    nidaq = ctypes.windll.nicaiu # load the DLL
    # Setup some typedefs and constants
    # to correspond with values in
    # C:\Program Files\National Instruments\NI-DAQ\DAQmx ANSI C Dev\include\NIDAQmx.h
    # the typedefs
    int32 = ctypes.c_long
    uInt32 = ctypes.c_ulong
    uInt64 = ctypes.c_ulonglong
    float64 = ctypes.c_double
    TaskHandle = uInt32
    # the constants
    DAQmx_Val_Cfg_Default = int32(-1)
    DAQmx_Val_Volts = 10348
    DAQmx_Val_Rising = 10280
    DAQmx_Val_FiniteSamps = 10178
    DAQmx_Val_GroupByChannel = 0
    DAQmx_Val_ChanForAllLines = int32(0)
    # initialize variables
    taskHandle = TaskHandle(0)
    max_num_samples = 10000
    data = numpy.zeros((max_num_samples,),dtype=numpy.float64)
    read = uInt32()
    bufferSize = uInt32(10000)
    def CHK(err):
    """a simple error checking routine"""
         if err < 0:
              buf_size = 200
              buf = ctypes.create_string_buffer('\000' * buf_size)
              nidaq.DAQmxGetErrorString(err,ctypes.byref(buf),buf_size)
              raise RuntimeError('nidaq call failed with error %d: %s'%(err,repr(buf.value)))
    # Start up DAQ
    CHK(nidaq.DAQmxCreateTask("",ctypes.byref(taskHandle)))
    CHK(nidaq.DAQmxCreateDIChan(taskHandle,"Dev?/port?/line?","", DAQmx_Val_ChanForAllLines))
    CHK(nidaq.DAQmxStartTask(taskHandle))
    #initialize lists and time 1 
    t1 = time.time()
    times = []
    points = []
    while True:
         try:
              CHK(nidaq.DAQmxReadDigitalU32(taskHandle,int32(-1),float64(1),
              DAQmx_Val_GroupByChannel,data.ctypes.data,uInt32(2*bufferSize.value)
             ,ctypes.byref(read), None))
              t2 = time.time()
             #data[0] is the position in the numpy array 'data' that holds the value aquired
             #from your device
             points.append(data[0])
             times.append(t2 - t1) 
             t1 = time.time()
             #Choose time interval between data aquisition
             time.sleep(.02)
         except KeyboardInterrupt:
              break
    #process the lists of points and time intervals as you so choose
    Thanks for the help!
    Paul

  • I need help getting new authorization codes for digital copies

    I need help getting new authorization codes for digital copies of movies. Can someone help me out?

    There's a lot of results in Google when you search for this but unfortunately refreshing the page doesn't seem to generate a different code anymore. Mine also says already redeemed

  • Has Adobe any plans for PSE  Premium to accommodate Hi 8 Analogue footage for digital conversion?

    Anyone aware if Adobe has any future plans for PSE Premium to accommodate Hi8 Analogue footage for digital conversion?

    Sonny,
    Most welcome.
    Considering the changing marketes, if one has enough analog footage, I would make plans to accommodate that, while hardware is available. You seem to have found a digital camera, that can take the analog feed, digitize it, and pass it through to PrE. That should hold you for the future.
    As miniDV tape cameras are becoming scarse, and especially with pass-through capabilities, it will become more difficult to find the equipment in the future.
    Good luck,
    Hunt

  • I need to have my authorizations reset for Digital Editions, but cannot contact anyone at Adobe.

    I need to have my authorizations reset for Digital Editions, but cannot contact anyone at Adobe. Would like to purchase new devices for my reading, ubt need reset before I can.  How do I get in touch with someone at Adobe.  Everything on web site just goes in circles. 

    Adobe Live Chat: http://www.adobe.com/support/chat/ivrchat.html,
    or as a slight short cut try http://helpx.adobe.com/contact.html?product=digital-editions&topic=using-my-product-or-ser vice
    Click on 'I still need help' and then you should see 'Chat with an Agent' at the bottom of the page.
    'Ask our experts' will indeed just lead you back to this forum.
    Sometimes you will get ‘Sorry! All agents are busy— please check back soon.’
    Don’t refresh the page, just hang on and it should eventually go to ‘Chat Now, an agent is available’.
    They can reset your authorizations, and then you must reauthorize any devices you still need.
    (Unfortunately, Adobe haven’t got round to an admin website for viewing and editing authorizations.)
    Some of the representatives haven't been properly trained and don't know what to do (and claim there is nothing they can do);
    in that case the only way seems to be to give up that chat and try another session hoping for a properly trained representative.
    If your problem is with another device using Overdrive, Bluefire, Aldiko or similar third party app, it is recommended not to mention that app when on the chat, just mention that you have run out of authorizations  (E_ACT_TOO_MANY_ACTIVATIONS) .  Thanks to AJP_Bear for that tip.
     

  • Is SharePoint Enterprise Needed For Digital Signatures?

    Hey SharePoint Fam,
    Had a request come in for Digital Signature use and was wondering is this even possible without Enterprise version?  We are on Standard 2010 version......
    Thanks n advance

    Waqas is right, you can use digital signatures with SharePoint Standard.
    More information on the
    CoSign Connector for SharePoint.
    CoSign offers free trials for integrating digital signatures with SharePoint:
    1. A private SharePoint site for your personal use, with CoSign installed, on a SharePoint server run by CoSign. 
    2. You can then request an on-premises trial copy of the CoSign Connector for SharePoint to try it on your own server.
    In addition to being a standard, open solution, digital signatures from CoSign enable your documents never have to leave your network during the signing process.
    Request a free trial.
    Disclosure: I work for CoSign

  • How to Convert a HEX value to CHAR value...Unicode Issue...

    Hi,
    How can I convert HEX value to CHAR value.
    The Code in <b>non Unicode</b> system is:
    DATA: t_text LIKE tline OCCURS 0 WITH HEADER LINE.
    constants:   c_hex_20a5(2) TYPE x            VALUE '20A5'.
    t_text-tdline = 'seller of the item so listed.  A legend of the Seller Code(s) is as'.
          TRANSLATE t_text-tdline USING c_hex_20a5.
    The same code give error in <b>Uni-Code</b> system:
    <b>error is "c_hex_20a5 must be an character type object (C, N, D, T or String type)."</b>
    If anyone know, what is the solution, please let me know.
    Thanks!
    Puneet.

    Hi,
    Try declaring the Hex chars using the ABAP char utilities. This is just a sample piece of code on how to declare and use:
    CLASS cl_abap_char_utilities DEFINITION LOAD.
    DATA:  ws_lf TYPE c VALUE cl_abap_char_utilities=>cr_lf.
    data:    c_newline           TYPE x VALUE '0D'.  [ it is zero D, for carriage return ]
    ws_lf = c_newline.
        CONCATENATE it_tab-maktx
                    ws_lf
                    ws_template
                    INTO it_notificatn-template.
    Hope this helps...
    Regards
    Subramanian

  • DD 5.1 Surround Workflow to create TS file for Digital Cinema

    I need a little help.
    My objective is to create a test file for digital cinema. The client requires at the end a TS DD 5.1 mpeg HD file....
    I have tried creating the project in Premiere CS4, which is straight forward. The issue I have is in the export. I have been using the surcode plugin. The first question I have is in the routing of the channels. I can only seem to create a Premiere project with the layout of L,R,Ls,Rs,C,LSE where as the surcode only gives you the layout option of L,R,C,LSE,Ls,Rs, which I believe is the industry standard...so I have no idea if the plugin will read the channel allocation correctly.
    However, my bigger issue is that I'm not able to export a TS file from Premiere. There is an option to do so, but when I try that with the surcode plugin, the media encoder just crahses...
    I have been able to create a single 5.1 surround mpeg file from Premiere with the surcode plugin, but its of no use to the client..and I can't think of a way that would turn it into a TS file that would keep the 5.1 DD.
    I have many questions, and there are many things I don't understand...so if anybody is able help at all that would be wonderful.
    Many thanks

    What will be the playback medium of this file? How will you deliver the file? Will the client be playing the file on a computer, or on a Home Theater system? Does the client want, or need, a visual signal, as well, or it just the Audio signal that is important?
     The best delivery system that I can think of is to create your material in PrPro in a 5.1 SS Project. Unless the client is looking for just the Audio with no Video, handle the two as separate, in that once your mixing is done, you will Export the Audio as an MPEG file, in the AC3 format, with the DD 5.1 SS encoding from the Minnetonka Audio SurCode DD 5.1 SS plug-in. Export the visual material (Video) as a DV-AVI Type II elemental stream. Go to Encore, and Import the DV-AVI as a Timeline, then the AC3 as an Asset. From the Project Panel, drag the AC3 to the respective Timeline, and author a DVD. You can have menus for navigation, if needed, or just make the single Timeline your First Play, with no Menus. If you want it to Loop, set its End Action back to itself and it'll loop until the user hits Stop. Once the layout is as you wish, you have two choices: 
    Burn to a DVD disc for delivery, or Burn to Folder. The former will get your 5.1 Audio (and Video) onto a common DVD for play on the computer or in a Home Theater system. The latter will yield the VIDEO_TS folder with the necessary files contained within this folder. The Audio & Video will be in a .VOB format, but will be in MPEG-2 form. Note: this will be a DVD-Video disc, and playable in any DVD player. Whether one hears the Audio in stereo, or in SS, will depend on the capabilities of their playback system. Because it IS a DVD-Video it MUST contain Video. Now, this could be anything you choose, from Titles with instruction, to Black Video (I'd create this for real, rather than rely of purely the systhetic Black Video from Premiere - more on this, if you need it), to abstract patterns of your design, or choosing.
    Now, if one needed just the pure MPEG-2 file, outside of the VIDEO-TS structure for playback on a computer only, you could take the .VOB and rename its extension .MPEG, instead of .VOB. Still, the playback channels would be solely dependent on the equipment the file was played on. The software player might figure into this, as well, because it must have the capability to process DD 5.1 SS signals. Check out any software player that your client will be using. If you deliver the DVD-Video disc, mentioned above, a DVD software player will be required. Most computers today come with one, and most of these are DD capable, but again, it depends on the hardware on the computer, and how it's configured, that will determine if one hears the Audio in stereo, or in DD 5.1 SS.
    Before I launched off doing anything, other than editing and mixing, I would ask some very specific questions. As Harm points out, there is no TS "file," but a TS "folder." This would be a red flag for me, indicating that the client might be confused, or know just a little and not quite get the full picture. This would dictate to me, that I need to ask some other questions and phrase them in a way that yielded useful info and instructions to me.
    1.) Exactly what equipment will you wish to play this material (don't start talking files yet)?
    2.) Is this equipment capable of playing Dolby Digital 5.1 Surround Sound?
    From the answers to those two questions, you can then start filling in the blanks.
    If the client wants something to drop into a DVD player, hooked up to a DD 5.1 SS capable system, then you’re home free. If they want something that will play on a computer, Ask these questions:
    1.) What computer software will you use to play this material (still no mention of file)?
    2.) Is the computer equipped for DD 5.1 SS decoding and playback?
    These answers will direct you even more. If you get proper answers of, say CyberLink PowerDVD of #1 and "yes," for #2, go on to the next set of questions:
    1.) Can I deliver this material on a DVD-Video (the format and medium of commercial DVD’s)? Note: this will be a DVD that will play on a computer with proper software, or a Home Theater system, and will contain both Video and Audio. The client can turn the TV, or .computer’s monitor off, if they do not wish to view any Video signal, or you can create Black Video so there is nothing to see. With this delivery format, there has to be a Video stream, but it can be black.
    2.) Can I deliver this material on a Data DVD? Point out that a Data DVD will only play on a computer and not on a set-top player through the TV and a Home Theater’s Audio system. Some people do not know the difference, and you cannot trust your client to, unless you specifically ask them.
    If the answer to #1 is "no," and the answer to #2 is "yes," go on to the next question:
    If I deliver this material to you on a Datat DVD, will an MPEG-2 file with DD 5.1 SS be acceptable? If so, I'd still do the Burn to folder to get the .VOB and rename it to .MPEG. Test this file on your system. A .VOB can contain a lot of things, but yours was created with no Menu or other material, so it should be just the pure .MPEG-2 file. Still, test, before you deliver.
    Now, on the off chance that your client needs something like an SACD, or DVD-Audio, you will be shopping for software. Before you do, I’d post to the Adobe Encore forum and ask Neil Wilkes for his suggestions for the creation of DVD-Audio discs. Believe every word he types and follow his recommendations to the letter.
    Good luck, and if you need more detail, or other suggestions after you query your client, please ask,
    Hunt
    [Edit] I see that you also mention "HD." This will mean either a BD (Blu-ray Disc) for delivery, or a BD folder, Burned to a DVD-Video. If you will have HD Video material, your best going the full BD route. If you only will have Audio, the "HD" will not come into play. What exactly do you mean with the term "HD?" This can make a world of difference.
    [Edit 2] Sorry about the formatting in the second paragraph. I cannot seem to get it to display properly, though it looks perfect in the editing screen.

  • Programmatically Accessing Self Sign in Plug in for Digital Signature

    Hello There,
    We are looking forward to use “Adode Acrobat 9 Pro – Self Sign in Plug in” for one of the application to digitally sign PDF document i.e. appending signature to existing PDF document. We have gone through Adobe site (http://learn.adobe.com/wiki/download/attachments/52658564/samplesignatures.pdf?version=1 ; http://www.adobe.com/ap/epaper/tips/acrsignatures/ ) and explored “Tips and Techniques” along with screenshots.
    We would like your help on following queries:
    ·         Can we programmatically from C#.NET access Adobe Object and create certificate for digital signature? If Yes, can you please provide pointers, references and sample code snippets? [We understand that we do not need to purchase SDK as Professional would be sufficient for digital PDF signature]
    ·         Does Adobe Pro installer provide DLL which can be leveraged in Code base i.e. C#.NET?
    ·         How does certificate management work for digital signing? Can third party like verisign, local computer / certificate from organization server work for digital PDF signature?
    ·         Please provide Technical Reference manual to use Adobe from C#.NET
    ·         Can you please throw some light and pointers on Licensing and Cost?
    We are running on a deadline hence your quick help and response will be highly appreciated.
    Thanks & Regards

    best check on the sdk forum:
    http://forums.adobe.com/community/acrobat/acrobat_sdk
    sdk docs can be found here:
    http://www.adobe.com/devnet/acrobat/?view=documentation

  • File Content Conversion - documentation, especially for all parameters?

    Hi,
    Can anyone point me to do for the File Content Conversion documentation?  especailyl for all the parapters for record set structures?  I've found some articles, posts here and there, but nothing that just lists them all.
    I'm try to parse a flatfile thats simply looks like this:
    abc
    d
    e
    Into a single recordset with 3 structures..
    the first struct has 3 fields, 1 char each
    then 2nd structure has 1 field
    then the 3rd structure has 1 field
    however, no matter what I try, the engine always seems to try to parse the 2nd line as the first structure type.. thus complaining line 2 can't be converted to the first strucuture format...

    Here are couple of weblogs
    For Sender
    /people/venkat.donela/blog/2005/06/08/how-to-send-a-flat-file-with-various-field-lengths-and-variable-substructures-to-xi-30
    /people/sap.user72/blog/2005/01/06/how-to-process-csv-data-with-xi-file-adapter
    /people/michal.krawczyk2/blog/2004/12/15/how-to-send-a-flat-file-with-fixed-lengths-to-xi-30-using-a-central-file-adapter
    /people/anish.abraham2/blog/2005/06/08/content-conversion-patternrandom-content-in-input-file
    /people/michal.krawczyk2/blog/2004/12/15/how-to-send-a-flat-file-with-fixed-lengths-to-xi-30-using-a-central-file-adapter
    SAP Help for sender
    http://help.sap.com/saphelp_nw04/helpdata/en/2c/181077dd7d6b4ea6a8029b20bf7e55/content.htm
    For Receiver:
    /people/arpit.seth/blog/2005/06/02/file-receiver-with-content-conversion
    SAP Help for receiver
    http://help.sap.com/saphelp_nw04/helpdata/en/d2/bab440c97f3716e10000000a155106/content.htm
    regards
    SKM

  • Which monitors for digital photography?

    What features should be considered when choosing a color monitor for handling and editing digital photographs? What considerations should be given to size, resolution and features? What are some brand names that are reasonably priced that have the important features.
    I'll be using the monitor as a plug-in for my PowerBook G4 when I want to have a larger screen than 15".
    Thank you.

    Have you done any searching on the internet? A quick search resulted in these topic:
    Saturday Shout: The Best Monitors for Digital Photography ...
    Choosing a Computer Monitor, digital cameras, digital photography ...
    Apple Displays for Digital Photography
    All you have to to is search.
    OT
    TIP: For insurance against the iPhoto database corruption that many users have experienced I recommend making a backup copy of the Library6.iPhoto (iPhoto.Library for iPhoto 5 and earlier versions) database file and keep it current. If problems crop up where iPhoto suddenly can't see any photos or thinks there are no photos in the library, replacing the working Library6.iPhoto file with the backup will often get the library back. By keeping it current I mean backup after each import and/or any serious editing or work on books, slideshows, calendars, cards, etc. That insures that if a problem pops up and you do need to replace the database file, you'll retain all those efforts. It doesn't take long to make the backup and it's good insurance.
    I've created an Automator workflow application (requires Tiger or later), iPhoto dB File Backup, that will copy the selected Library6.iPhoto file from your iPhoto Library folder to the Pictures folder, replacing any previous version of it. There are versions that are compatible with iPhoto 5, 6, 7 and 8 libraries and Tiger and Leopard. Just put the application in the Dock and click on it whenever you want to backup the dB file. iPhoto does not have to be closed to run the application, just idle. You can download it at Toad's Cellar. Be sure to read the Read Me pdf file.
    NOTE: The new rebuild option in iPhoto 09 (v. 8.0.2), Rebuild the iPhoto Library Database from automatic backup" makes this tip obsolete.

  • New To Oracle.. Needs Help:: Conversion from SQL Server to Oracle 11g

    I am new to Oracle 11g and badly need the conversion of SQL Server Functions to Oracle.. Sample Pasted Code not working .. end with error.. pls help
    Create Table TempT (ID1 Varchar (10),
    ID2 Varchar (10)
    CREATE OR REPLACE PACKAGE GLOBALPKG
    AS
    TYPE RCT1 IS REF CURSOR;
    TRANCOUNT INTEGER := 0;
    IDENTITY INTEGER;
    END;
    CREATE OR REPLACE FUNCTION fTempT
    i IN VARCHAR2 DEFAULT NULL
    RETURN GLOBALPKG.RCT1
    IS
    REFCURSOR GLOBALPKG.RCT1;
    BEGIN
    OPEN REFCURSOR FOR
    SELECT TT.*
    FROM TempT TT
    WHERE (fTempT.i = ''
    OR TT.ID1 = fTempT.i)
    RETURN REFCURSOR;
    END;
    CREATE OR REPLACE FUNCTION fTempTF
    i IN VARCHAR2 DEFAULT NULL
    RETURN GLOBALPKG.RCT1
    IS
    REFCURSOR GLOBALPKG.RCT1;
    BEGIN
    OPEN REFCURSOR FOR
    SELECT *
    FROM TABLE(fTempT(i))
    RETURN REFCURSOR;
    END;
    LAST FUNCTION ENDs WITH ERROR
    Error(13,7): PL/SQL: ORA-22905: cannot access rows from a non-nested table item

    2. The major purpose is to get a simplest way to create a parameterized function who can return a table like output. 2nd function has no use instead i was testing the result of First Function like thisIf you just want to select from a select, you should use a view not a function.
    1. which program is more help ful for writing and executing queries bcoz after using Query Analyzer of Microsoft It seems difficult to work on SQL Developer.
    sqlplus? If you are having difficulty learning new tools because of an old one you used, probably best to forget the old one and concentrate on learning the new one because it will be different. This goes for the database itself also.
    2. Can DMLs be used within a Function.Yes, you just can't execute the function in another SQL statement if it modifies data and this is a good thing.
    3. Can temporary tables be used within a function.Unfortunately yes, but they shouldn't be unless you are in a slowest application competition.
    5. Each Function which is a Table Function must be accompanied with Type Definitions?? its a bit longer way of doing the things than SQL ServerThat is why it is better to use views instead, is there any reason you want a select that you can select from inside a function?
    SQL Server for last 9 years thats why i refer this toolThat is not in itself a problem, if you try and do what you did in SQLServer in Oracle, that will be a problem though.

  • I need to buy a license for Flex Builder 2.0 as I do?

    I need to buy a license for Flex Builder 2.0 as I do?

    The Airport built-in to the iMac is exactly the same standard as that used in PC's 802.11b/g compatible and possibly 802.11n as well depending on the model. It means that anywhere you use can use a PC for wireless you should be able to use the iMac. It sounds as though your wireless network is protected with a WEP Key or similar encryption method and you have not entered the correct key into the iMac when attempting to join the wireless network or have not selected the appropriate key type from the drop down list. Quite a common situation is that if your password for your wireless network is a hex key, i.e only contains the numbers 0-9 and letters A-F then you need to select WEP Hex Key as the password type when joining the wireless network not WEP Password.

Maybe you are looking for

  • REFRESH ALV WITHOUT ABAP OBJECTS

    Hi, I am interested in refreshing an alv created WITHOUT ABAP OBJECTS; I use functions like REUSE_ALV_GRID_DISPLAY and I was wondering if is there any function like this to refresh an ALV when I make changes in the data inside of it. Thanx!

  • Ldap identity configs

    Hi, Can you provide some identity examples (workflow-identity-config.xml ) so I can use AD or OID thanks edwin

  • Adjustment brush applies brush strokes randomly

    I'm running XP & when I use the adjustment brush it slows down and then applies brush strokes in areas that I have not painted.

  • MASSIVE Merged clip BUG

    I've been working on a feature film and recently relinked my project to a different drive. All media files were found and located and everything is linked properly. Some audio on clips that were merged are now not being recognized by premiere, I can'

  • Cannot print in iPhoto. Message appears "No available themes"

    When I try to print a photo in iPhoto, a message appears "No available themes.There were no themes located. Until at least one theme has been installed, this feature will be unavailable." I reinstalled Mountain Lion but the problem persists.