ArrayBindSize and Size for PLSQLAssociativeArrays

Hey there,
I'm a complete newbie to ODP.NET and was hoping someone may be able to help with an issue. I basically need to call an SP from a VB.NET application and got as far as I could with the code below. The problem is that the parameters associates to this SP are all direction output. As a result, i'm having trouble trying to use the ArrayBindSize property and the Size property since I don't know what the number/size of the output from running the SP will exactly be? Does anyone see my predicament?
I'm also seeing the following errors when I try to compile my application:
Value of type '1-dimensional array of String' cannot be converted to '1-dimensional array of Integer' because 'String' is not derived from 'Integer'.
Thanks in advance!
Public Function RunSPReturnDS()
Try
Dim oraConnString As String = "Data Source=*****;User Id=******;Password=*****;"
Dim oraConnection As New OracleConnection(oraConnString)
oraConnection.Open()
MessageBox.Show("Connection works!", "SUCCESS", MessageBoxButtons.OK, MessageBoxIcon.Exclamation)
oracleCMD = oraConnection.CreateCommand
oracleCMD.CommandType = CommandType.StoredProcedure
oracleCMD.CommandText = "OCDI_UTILITIES.GET_EXISS_TODAY"
pStatus = New OracleParameter("P_STATUS", OracleDbType.Int32)
pStatusText = New OracleParameter("P_STATUS_TEXT", OracleDbType.Varchar2)
pRecReturned = New OracleParameter("P_RECORDS_RETURNED", OracleDbType.Int32)
pMsgSysNameList = New OracleParameter("P_MSG_SYSTEM_NAME_LIST", OracleDbType.Varchar2)
pMsgLastInDateTime = New OracleParameter("P_MSG_LAST_IN_DATETIME_LIST", OracleDbType.Date)
pMsgGoodIn = New OracleParameter("P_MSG_GOOD_IN_LIST", OracleDbType.Int32)
pMsgBadIn = New OracleParameter("P_MSG_BAD_IN_LIST", OracleDbType.Int32)
pMsgLastOutDateTime = New OracleParameter("P_MSG_LAST_OUT_DATETIME_LIST", OracleDbType.Date)
pMsgGoodOut = New OracleParameter("P_MSG_GOOD_OUT_LIST", OracleDbType.Int32)
pMsgBadOut = New OracleParameter("P_MSG_BAD_OUT_LIST", OracleDbType.Int32)
pStatus.CollectionType = OracleCollectionType.PLSQLAssociativeArray
pStatusText.CollectionType = OracleCollectionType.PLSQLAssociativeArray
pRecReturned.CollectionType = OracleCollectionType.PLSQLAssociativeArray
pMsgSysNameList.CollectionType = OracleCollectionType.PLSQLAssociativeArray
pMsgLastInDateTime.CollectionType = OracleCollectionType.PLSQLAssociativeArray
pMsgGoodIn.CollectionType = OracleCollectionType.PLSQLAssociativeArray
pMsgBadIn.CollectionType = OracleCollectionType.PLSQLAssociativeArray
pMsgLastOutDateTime.CollectionType = OracleCollectionType.PLSQLAssociativeArray
pMsgGoodOut.CollectionType = OracleCollectionType.PLSQLAssociativeArray
pMsgBadOut.CollectionType = OracleCollectionType.PLSQLAssociativeArray
pStatus.Direction = ParameterDirection.Output
pStatusText.Direction = ParameterDirection.Output
pRecReturned.Direction = ParameterDirection.Output
pMsgSysNameList.Direction = ParameterDirection.Output
pMsgLastInDateTime.Direction = ParameterDirection.Output
pMsgGoodIn.Direction = ParameterDirection.Output
pMsgBadIn.Direction = ParameterDirection.Output
pMsgLastOutDateTime.Direction = ParameterDirection.Output
pMsgGoodOut.Direction = ParameterDirection.Output
pMsgBadOut.Direction = ParameterDirection.Output
pStatus.Size = 10
pStatusText.Size = 10
pRecReturned.Size = 10
pMsgSysNameList.Size = 10
pMsgLastInDateTime.Size = 10
pMsgGoodIn.Size = 10
pMsgBadIn.Size = 10
pMsgLastOutDateTime.Size = 10
pMsgGoodOut.Size = 10
pMsgBadOut.Size = 10
'pStatus.ArrayBindSize = New Int32(10) {100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100}
'pStatusText.ArrayBindSize = New Int32(10) {100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100}
'pRecReturned.ArrayBindSize = New Int32(10) {100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100}
'pMsgSysNameList.ArrayBindSize = New Int32(10) {100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100}
'pMsgLastInDateTime.ArrayBindSize = New Int32(10) {100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100}
'pMsgGoodIn.ArrayBindSize = New Int32(10) {100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100}
'pMsgBadIn.ArrayBindSize = New Int32(10) {100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100}
'pMsgLastOutDateTime.ArrayBindSize = New Int32(10) {100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100}
'pMsgGoodOut.ArrayBindSize = New Int32(10) {100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100}
'pMsgBadOut.ArrayBindSize = New Int32(10) {100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100}
pStatus.ArrayBindSize = BindArraysToSizeInt()
pStatusText.ArrayBindSize = BindArraysToSizeStr()
pRecReturned.ArrayBindSize = BindArraysToSizeInt()
pMsgSysNameList.ArrayBindSize = BindArraysToSizeStr()
pMsgLastInDateTime.ArrayBindSize =
pMsgGoodIn.ArrayBindSize = BindArraysToSizeInt()
pMsgBadIn.ArrayBindSize = BindArraysToSizeInt()
pMsgLastOutDateTime.ArrayBindSize =
pMsgGoodOut.ArrayBindSize = BindArraysToSizeInt()
pMsgBadOut.ArrayBindSize = BindArraysToSizeInt()
oracleCMD.Parameters.Add(pStatus)
oracleCMD.Parameters.Add(pStatusText)
oracleCMD.Parameters.Add(pRecReturned)
oracleCMD.Parameters.Add(pMsgSysNameList)
oracleCMD.Parameters.Add(pMsgLastInDateTime)
oracleCMD.Parameters.Add(pMsgGoodIn)
oracleCMD.Parameters.Add(pMsgBadIn)
oracleCMD.Parameters.Add(pMsgLastOutDateTime)
oracleCMD.Parameters.Add(pMsgGoodOut)
oracleCMD.Parameters.Add(pMsgBadOut)
oracleCMD.ExecuteNonQuery()
For i As Integer = 0 To pStatus.Size - 1
Console.WriteLine(pStatus.Value(i))
Next
'ListView1.Items(3).SubItems.Add(P_STATUS)
pStatus.Dispose()
pStatusText.Dispose()
pRecReturned.Dispose()
pMsgSysNameList.Dispose()
pMsgLastInDateTime.Dispose()
pMsgGoodIn.Dispose()
pMsgBadIn.Dispose()
pMsgLastOutDateTime.Dispose()
pMsgGoodOut.Dispose()
pMsgBadOut.Dispose()
oracleCMD.Dispose()
oraConnection.Dispose()
Catch ex As Exception
MessageBox.Show(ex.Message.ToString(), "ERROR", MessageBoxButtons.OK, MessageBoxIcon.Error)
End Try
End Function
Private Function BindArraysToSizeInt() As Integer()
Dim ArrBindSizeInt(collectionObjectsInt.Count - 1) As Integer
For i As Integer = 0 To collectionObjectsInt.Count - 1
ArrBindSizeInt(i) = collectionObjectsInt(i).ToString().Length
Next i
Return ArrBindSizeInt
End Function
Private Function BindArraysToSizeStr() As String()
Dim ArrBindSizeStr(collectionObjectsStr.Count - 1) As String
For i As Integer = 0 To collectionObjectsStr.Count - 1
ArrBindSizeStr(i) = collectionObjectsStr(i).ToString().Length
Next i
Return ArrBindSizeStr
End Function
End Class

Well - yes and no :-)
When it comes to desktop displays then historically the term resolution has been used to describe only the Pixel Dimensions of the physical display and not the pixels per unit of measurement. Typically we don't bother any more about the screen PPI because its usually high enough not to be a problem.
Projectors on the other hand display the image on varying screen sizes due to the distance from the screen. This makes resolution in terms of PPI important again. Yes, the projector has 'fixed' pixel dimensions but because the screen size varies the PPI will also vary. The further away the screen gets the larger the Pixels get and at some distance the image gets very 'pixellated' i.e you start to see the actual pixels.
The other thing to keep in mind is that projectors are typically driven from a PC ( I guess we should include the Mac folks in this :-) )which may have a resolution (pixel dimensions) much higher than the projector. This may mean that you have to change the display properties on your PC to match or you may be lucky that the projector can re-sample for you.
To answer the OP then the resolution in terms of PPI is more a question of controlling the distance between projector and screen and you need to check this visually although the venue may limit what you can actually do.
In terms of Image Size (Pixel Dimensions) then I would say it depends on how critical you and your audience are, but to be honest there are probably other factors like colour, brightness and contrast that are going to be bigger issues than image sharpness.
Colin #2

Similar Messages

  • CD burning with disk utility - format and size for 800 MB - 90 minutes CD

    Hi Support,
    I'm trying to burn a CD with 800 MB (90 minutes) using disk utility. When I create a new empty image I can select the size. Unfortunately there is no option for a 90 minutes CD. When I create the image with 800 MB and I try to burn it, disk utility tells me that the image is too big. So my first question is what is the maximum size for such a CD?
    Next question, which format should I use? When creating a new empty image, I have the options "Beschreibbares Image" and "Mitwachsendes Image" (I have a Germann OS). But I dont't have the option to create a "CD/DVD Master", which is availabe, when I create an image from a folder. What I have to do, is to convert the image afterwards to a "CD/DVD Master". This is very circumstantial.
    So my questions are:
    1. Is there an easier way o create an empty disk image for a CD/DVD?
    2. Is the format "CD/DVD Master" required to burn a CD. It is also possible to burn images with other formats. What is the advantage/disadvantage of this format?
    3. Which format is required to use the CD in a Windows computer or a standalone CD/DVD player? The volume format must probably "MS-DOS Filesystem" in this case?
    4. Is it possible to burn multi session CD's in this case?
    5. Is there a comprehensive documentation somewhere available for this burning issue on Mac? The help of disk utility is really not enough.
    Thanks for answers and hints Thomas

    Hi thmayr!
    Although the original instructions were for a 700 MB disc, perhaps the article linked to below, could be helpful.
    From "Macworld" Feb 2005 issue p.90 Link To Article. Scroll to the second tip on the page: "Unix Tip of the Month: Utilize Extra Space on CD-Rs".
    Content:
    Create a new folder in the Finder.
    Drag everything you want to burn, up to 700 MB, into the folder.
    Open Terminal and type cd ~/Desktop
    Press the Enter key. This changes Terminal's active directory to your user's Desktop folder.
    Type hdiutil makehybrid -o myburn.iso (There's a space after the o in iso, and myburn can be any name you choose) DON'T press Enter
    Switch to the "Finder"
    Drag & drop the folder you created onto the Terminal window. Terminal should fill in the full path to the folder.
    Press Enter. Enter key will then execute the command.
    What you have done is used the hdiutil Unix command to create a hybrid disk image named myburn.iso (you can choose whatever name you like, in place of myburn, but use iso for the extension.
    You should see the message "Creating hybrid image" in your Terminal window, as well as an indication of the task's progress.
    When finished, you should see a disk image called myburn.iso on your Desktop.
    You can use Disk Utility to burn this image, or you can type
    hdiutil burn ~/Desktop/myburn.iso in Terminal
    Insert a blank CD-R when prompted, and then just wait until it's done.
    ali b

  • Maximum bitrate and size for Apple TV3

    Hello,
    how much is maximum bitrate and file size for Apple TV3 homesharing? I transfared some bluray, but it lags. Im streaming via cabble.

    No official answer on this but specs say:
    Video Formats
    H.264 video up to 1080p, 30 frames per second, High or Main Profile level 4.0 or lower, Baseline profile level 3.0 or lower with AAC-LC audio up to 160 Kbps per channel, 48kHz, stereo audio in .m4v, .mp4, and .mov file formats
    MPEG-4 video up to 2.5 Mbps, 640 by 480 pixels, 30 frames per second, Simple Profile with AAC-LC audio up to 160 Kbps, 48kHz, stereo audio in .m4v, .mp4, and .mov file formats
    Motion JPEG (M-JPEG) up to 35 Mbps, 1280 by 720 pixels, 30 frames per second, audio in ulaw, PCM stereo audio in .avi file format
    AppleTV 2/3 have less than 8GB of memory to buffer movies but there are movies over 8GB and I've certainly streamed larger than that.
    What lags?  Playback?  Stuttery display?

  • Default font and size for office mac O8. I prefer Times New Roman, size 12

    I have OS 10 and Word Office Mac : 2008. I prefer using generally Times New Roman, size 12 but sometimes for some applications something called Calumbria (spelling?) comes up ... and then I have to search for in the long list for Times New Roman.
    95 % of the time Times New Roman comes up and I it is fine but sometimes with new documents then I get this Calumbria thing that I don't want. Any help would be most appreciated. I hope my question makes sense.
    Don in California.

    You might want to also ask in the forum for Word:
    http://www.officeformac.com/ProductForums/Word/

  • File Type and Size for Video iPod

    I have the latest ipod that does it all, but I am a little concerned about the lack of control on the file type size. I can export a mp4 file with my own settings so it isn't such a large file but it won't load or play. I can convert the file but it makes it the standard file size which is larger than I want it to be. Isn't there a way to save my own settings and still have it play video?
    Thanks for any info from anyone.

    I want to save a higher and better compression and not such high quality settings as the ipod standards settings are.
    You can't.
    http://www.apple.com/quicktime/tutorials/creatingvideo.html
    Video formats supported:
    H.264 video up to 768 Kbps, 320 x 240, 30 frames per sec., Baseline Profile up to Level 1.3 with AAC-LC up to 160 Kbps, 48 KHz, stereo audio in .m4v, .mp4 and .mov file formats;
    MPEG-4 video up to 2.5 Mbps, 480 x 480, 30 frames per sec., Simple Profile with AAC-LC up to 160 Kbps, 48 KHz, stereo audio in .m4v, .mp4 and .mov file formats

  • Best file type and size for logo?

    I should know this but I am going to ask anyway. I am have a local graphic artist create a new logo for me. It needs to be keyed in my show opening, segues, and close. The program is shot and edited in 720p but sometimes 1080p. The larger the better for scaling down? I am always lost when it come to this topic.
    Thanks in advance.
    Cheers.
    Tom

    As Russ said, it is better to scale down than up.
    Let me add this: if possible, the original file for the logo should use vectorial graphics. This way it won't have a fixed size, and can resized without any loss of quality. This should not be a problem if, for example, the logo is created in Illustrator (formats like eps, pdf, svg can contain vector data). Vector files are also usually smaller in size, although that is probably not a bi consideration here.
    Then you can make rasterized versions at different sizes, as needed. You'll probably use a png file in the video, as png supports alpha channel (transparency).

  • Optimal DPI and size for book?

    I will be scanning slides for a ibook project which means I can size them any way I want. Can anyone tell me the best DPI that the ibook printers like. Rather than let the program resize I'd prefer to do it myself, is there a way of finding out the exact photo box dimensions so I can size my scan exactly.
    Thanks for any help.
    Mark

    I will be scanning slides for a ibook project which means I can size them any way I want. Can anyone tell me the best DPI that the ibook printers like.
    Any photo that will print less than 180 DPI will generate a low resolution warning - Any thing over 300 DPI is overkill - so between 180 and 300 dpi for the final print
    Rather than let the program resize I'd prefer to do it myself, is there a way of finding out the exact photo box dimensions so I can size my scan exactly.
    The photo frames are in a 4:3 ratio and range from about 1 3/8 x 1 7/8 to 8 1/2 x 11 (the full page is not 4:3)
    Since your photos are not going to be 4:3 unless you crop them you may want to right click on them after placing them and choose fit to frame so the entire photo prints
    LN

  • What is the best format and size for a logo in a flash project?

    I have this flash project in which i animate a logo from big to small, the logo in the big state looks pretty good but when the flash movie reduces the image the logo tends to pixelate(i dont know if this term is correct).
    Thanks,

    That is what happens when you change the size of an image.
    The best format for a logo is vector.  Then you can change its size, rotation, etc without any distortion or pixelation.
    If you are unable to go with a vector graphic, try to use several images of varying sizes and switch between them as needed to recreate the tween, or, try a PNG and hope the pixelation isn't too bad.

  • Minimum computer speed and size for Logic

    Am thinking of gettting Logic Pro with my comparatively small G4- Am I looking for trouble or should I go for express until I can get a bigger box- what would you recommend as your minimum requirements for speed hard drive etc? Thanks !
    Dual 800 MHzPower Mac G4   Mac OS X (10.4.8)   1.25GB SDRAM

    You should be able to play back many audio files -
    and freeze files ( since they are audio files ). But
    if you want to use bigger, modern plugs you'll need a
    node or PCI solution. With your present config, you
    should have little problem playing back as many audio
    files as you need - you'll just spend a lot of time
    waiting for freeze files to render. Many 3rd party
    AUs will be out of reach - as well as stuff like
    sculpture but if you are patient and resourceful, it
    should be OK to get you by for many productions. I
    have a Dual G4 ( 1.25 ) and can do a lot with it and
    Logic. Mostly, this answer depends on what plugins
    you use and if they are realtime. I can't say Express
    will really reduce the load - just restrict you from
    attempting to while making you work slower as far as
    editing. Personally, I wouldn't bother with LE. If
    you like LP's plugs you can get a node machine or buy
    a new machine in a few months...
    J
    justin - thanks for your reply- pardon my ignorance on this, but what is a freeze file and what is a node machine?
    Thanks

  • How to change quality and size for a Nokia 920 cam...

    My Nokia 920 is now 2 weeks old and I'm totally bummed that I cant get a strait answer to this simple question.... How to change the quality-size setting to the camera... The camera is advertised as a 8.7... It's default size is NO way that.... Nor do I want to take default size photos ALL the time.. Any help would be appreciated.
    Solved!
    Go to Solution.

    It takes photos in this modeif your looking at them from skydrive you can change the size by going to Settings, backup, photos.
    If  i have helped at all a click on the white star below would be nice thanks.
    Now using the Lumia 1520

  • Will Apple ever allow customized fonts and sizes for home screen?

    6 Plus 64 GB. Over all love it, but the top "bar" displays are freakishly small especially the time display top center. Extremely difficult to read. Even on lock screen which is much bigger, the font is so thin that it nearly disappears depending on color scheme of background. As opposed to an App to display something different, it might be nice if Apple allowed the option. Any suggestions? Thx.

    There are a couple of choices. While you cannot do anything about the status bar text, as far as the clock is concerned, you can go into Settings>General>Accessibility and select Bold Text. That will take the thin out of the clock.
    Apple does not participate here in the forum. This is a user to user support forum, so looking for others that feel like you is not what this is for. If you want to let Apple know about your desire for a change, go to the feedback page HERE, and click on the appropriate subject.

  • Where can I define font and size for printing sourcecode

    Hi all,
    I'm looking for the definitions to print sources. I find only the settings for the editor, but not for printing ?
    Can somebody help ?
    Thanks
    J. Kvhler

    Hi all,
    I'm looking for the definitions to print sources. I find only the settings for the editor, but not for printing ?In JDeveloper 9.0.3 go to Tools -> Preferences. Look under Code Editor, and there is a page for Printing.
    I don't think these options were exposed in 9.0.2, but they are in the 9.0.3 preview release.
    Hope this helps,
    Rob

  • How do I determine the size of an event (cmd I does not show any size for events).

    How do I determine the size of an Event in iPhoto? (Cmd + I does not show size information at the event level).

    If you're running iPhoto 8 (09) select the event and look at the Info pane at the lower left hand corner of the window.  It will give you the number of photos and size:
    for iPhoto 9 (11) open the Event, select all of the photos in it and open the Info drawer at the right by typing Command+i.  The number of photos and size will be at the top of the Info drawer.
    OT

  • Font and size help

    lblProvNameText = new JLabel("Provider ID");
    lblProvNameText.setMinimumSize(new Dimension(100, 15));
    lblProvNameText.setPreferredSize(new Dimension(100, 15));
    lblProvNameData = new JLabel("");
    lblProvNameData.setMinimumSize(new Dimension(100, 15));
    lblProvNameData.setPreferredSize(new Dimension(100, 15));
    lblProvNameText.setFont(new Font("Ariel",Font.PLAIN,12));
    for each component, i am setting the minimum size etc ..
    is there a way i can pass this to a method and set the font and size for labels and just call the method (should that method validate(); again or don't have to ....?
    anyhow i am repainting at end of components once..
    method addcomp()
    //add
    revalidate();

    import java.awt.*;
    import javax.swing.*;
    public class LabelDemo {
      public static void main(String[] args) {
        JLabel
          labelOne   = new JLabel("Label 1"),
          labelTwo   = new JLabel("Label 2"),
          labelThree = new JLabel("Label 3"),
          labelFour  = new JLabel("Label 4");
        JLabel[] labels = {
          labelOne, labelTwo, labelThree, labelFour
        Color[] backgroundColors = {
          Color.blue, Color.red, Color.yellow, Color.green
        Color[] foregroundColors = {
          Color.yellow, Color.cyan, Color.pink, Color.blue
        Font labelFont = new Font("lucida sans regular", Font.PLAIN, 18);
        JPanel panel = new JPanel(new GridBagLayout());
        GridBagConstraints gbc = new GridBagConstraints();
        gbc.gridwidth = gbc.REMAINDER;
        gbc.weighty = 1.0;
        gbc.insets = new Insets(10,0,10,0);
        for(int i = 0; i < labels.length; i++) {
          labels.setOpaque(true);
    labels[i].setBackground(backgroundColors[i]);
    labels[i].setForeground(foregroundColors[i]);
    labels[i].setPreferredSize(new Dimension(120,25));
    labels[i].setFont(labelFont);
    labels[i].setHorizontalAlignment(JLabel.CENTER);
    panel.add(labels[i], gbc);
    JFrame f = new JFrame("Label Demo");
    f.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
    f.getContentPane().add(new JScrollPane(panel));
    f.setSize(400,300);
    f.setLocation(300,400);
    f.setVisible(true);

  • WMS set center and size

    Does anyone know what "Center and Size must be defined when WMS Theme is to be rendered" means? I believe I have set up correctly and have "Get capabilities" set to "http://nowcoast.noaa.gov/wms/com.esri.wms.Esrimap/wwa?service=wms&version=1.1.1&request=GetCapabilities".
    Cheers

    If you are previewing a WMS theme in MapBuilder, you need to define a center and size of the map so the request to retrieve an image from the WMS server will know the area to be processed. This WMS server appears to have some world data in geographic coordinates, so just try a center and size for some part in US (cx: -98, cy: 40, size: 20).

Maybe you are looking for

  • Unable to install SQL Server 2012 on windows 7 os

    Hello All, I am trying to install SQL Server Enterprise evaluation edition sp1 on windows 7 os professional edition. Previously I have used to sql server 2012 enterprise evaluation edition on the same os. I did not have any issues at that time. But

  • Authorization object not to allow certain user to enter sloc PO

    Dear All, i have manage to go su21 to create under mm purchasing authorization object called Y_BEST_LOC with Acty and LGORT field. other than that i have insert check item under program RM06ENHI. after that i go to su24 to assign the transaction code

  • Extracting from PDF in Preview (bad quality)

    I have a huge PDF document, but need only a few of those pages, so I thought I'd extract the desired pages. Having the PDF file opened in Preview, and on the first page I wanted to save I went to "File"-"Save as" and chose a suitable format. The prob

  • Idvd 08 encoding

    My idvd only lets me encode files as best performance instead of professional quality which takes up less space. Usually i wouldn't mind except i now have to buy more expensive dvd's that hold more capacity and ideas on how to burn at high or profess

  • Preview and Acrobat

    I have very much liked using Preview as the standard viewer for PDF as well as various image formats, but evidently Acrobat 7 introduced elements that my version of Preview cannot handle any more - I get 'the file may be corrupt or a version that Pre