Using "boolean status" to prohibit a function from being performed!?

Hey guys,
Hope you can help me with this, shouldn't be so hard but I just can't find a way to do it. Obviously, I'm doing something wrong but what?
(Bear in mind that I pretty much just started JAVA)
What I'm trying to do is the following:
1.The end-user presses a button in a Window. (doesn't matter in which.)
2. When the button is pressed, the boolean variable "status" should become "false", preventing the function ACTION from being performed. (Disables the whole function so that it simply doesn't happening.)
This is how I have attempted to solve the problem. (This is a simplified example, of course)
boolean status = false; // globally defined variable that will disable a function to be performed
if(ABUTTON) // if this button is pressed
status = false; // if the button is pressed, the boolean status is supposed to become false, hindering an "ACTION" to perform (see below.)
return status; // return the new status (false) to the globally defined boolean. (im not sure if I can do this!?)
Function ACTION // this is the function that should be dependent of the boolean value of the status.
if (status == true) // perform the task ONLY if status is true, hence: if the end-user has NOT pressed the "BUTTON."
Do this... // if status = true, do this crap
else
do nothing. // else, don't do it.
The error i get when doing this is: "Cannot return a value from method whose result type is void"
Any idea how to solve this?
Thanks!

mik3l wrote:
What I'm trying to do is the following:
1.The end-user presses a button in a Window. (doesn't matter in which.)
2. When the button is pressed, the boolean variable "status" should become "false", preventing the function ACTION from being performed. (Disables the whole function so that it simply doesn't happening.)
The error i get when doing this is: "Cannot return a value from method whose result type is void"It looks like you are focusing on the wrong problem. The error has little or nothing to do with the logic of your program.
Let's say I have a method declared like this
private void takeAction() When you declare a method using void it means that the method does not return any value. So if you have a statement inside the method that returns a value, the compiler says that's a no-no. So, you either need to change the method declaration to the type of return value, or you need to remove the line(s) that return a value.

Similar Messages

  • Calling simAPI function from a UCB based on sa_user.c template

    I am importing external C code using the ucb block to be used both under sysbld autocode. Therefore, I am using "sa_user.c" template for the UCB.
    The basic functionality works fine under both sysbld and autocode simulation.
    I would like to use SIM API  functions from the ucb code while running under sysbld. I can protect the sim API function from being called when running with autocode using  "#ifdef SBUSER".
    However, the problem is that simAPI function to gather information on the current UCB requires, as input, a pointer to the iinfo structure:
        SIMAPI_GetUCBBlockInfo(int *iinfo, SB **SBptr, BLK **BLKptr)
    The function prototype for main ucb function for this template:
    void USR01(INFO,T,U,NU,X,XDOT,NX,Y,NY,RP,IP)
         struct STATUS_RECORD       *INFO   ;
         RT_DURATION    T       ;
    does not provide access to the iinfo strcutre (which is usaualy  passed as an input argument to the ucb functions based on sybld usr01.c template).
    Is there a way to get around that?
    I would try to create an integer array and set the content. However, I do not have any information about what should be the size and values of this array.
    Thanks
    Farshid

    Thanks Chris,
    I can understand your point about the purpose of the "sa_user" style ucb in providing minimum features that are common and supported by both Autocode and sysbld. This makes sense about features that affect the result of simulation such as linearization. However, I do not see any "harm" in being able to do special things (such as calling simapi function that does not affect the simulation result) while running under sysbld (using #ifdef SBUSER to protect autocode from calling unsupported features).
    I can use the USR01.c, however, I will not be able to generate and run the code for the model (which is essential for us).  
    Considering the above, The question or problem is  why the  SIMAPI_GetUCBBlockInfo() function requires a pointer to the iinfo structure to bring back pointers to the current block and superblock?
    The other soultion could have been to allow the user to create a local ucbhook.c file. Currently this does not work since simexe generates a ucbhook (ucbhook.c) on the fly which is compiled and linked into a shared object (which is then being removed at the end of make process).
    Farshid

  • Call function from data base with clob input parameter.

    Hello,
    In this project I use Jdev 11g.
    I call function from database.
    create or replace function get_fa_list (
    p_fa_id_list in clob
    return sys_refcursor
    is
    vCursor sys_refcursor;
    begin
    put_msg ('begin');
    if p_fa_id_list is null then
    put_msg ('CLOB is null!');
    else
    put_msg ('size CLOB: ' || dbms_lob.getlength (p_fa_id_list));
    end if;
    put_msg ('Save');
    open vCursor for
    select rownum as id, s.*
    from (
    select f.latitude, f.longitude, count (distinct f.res_id) as res_count, count (*) as fa_count, 16711680 as color, res_concat_distinct (f.res_id) as station_list
    from mv_frequency_assignment f, table (SplitClob (p_fa_id_list, ',')) l
    where f.ext_system = 'BI' and
    f.ext_sys_id = l.column_value
    group by f.latitude, f.longitude
    ) s;
    put_msg ('Open and End');
    return vCursor;
    end get_fa_list;
    I use TopLink in ejb.
    i use follow code for call function and get result.
    public List<TmpResPoints> findAllPointsBI(String p_id){
    UnitOfWork uow = getSessionFactory().acquireUnitOfWork();
    uow.beginEarlyTransaction();
    StoredFunctionCall call = new StoredFunctionCall();
    call.setProcedureName("get_fa_list");
    call.useUnnamedCursorOutputAsResultSet();
    ClobDomain c = new ClobDomain(p_id);
    //System.out.println(c.toString());
    call.addNamedArgumentValue("p_fa_id_list", c);
    ReadAllQuery query = new ReadAllQuery();
    query.setReferenceClass(TmpResPoints.class);
    query.setCall(call);
    List<TmpResPoints> result = (List<TmpResPoints>)uow.executeQuery(query);
    uow.commit();
    uow.release();
    return result;
    But size parameter "p_fa_id_list" is 0. (geting from temp table in Data base). this code in function >>
    if p_fa_id_list is null then
    put_msg ('CLOB is null!');
    else
    put_msg ('size CLOB: ' || dbms_lob.getlength (p_fa_id_list));
    end if;)
    How I can call this function from dataBase and get result?
    thx,
    Demka.

    What is the SQL generated?
    The argument should just be the Clob value (a String) not the domain object.
    Also try addNamedArgument, and then pass the named argument to the query.
    James : http://www.eclipselink.org

  • How do I prevent files from being backed up to iCloud and iTunes?

    I have created the ios app using adobe AIR16 and flash cc. After submission of my aap into aapstore, I received a message from Apple with the following message –
    From Apple
    2.23 - Apps must follow the iOS Data Storage Guidelines or they will be rejected.
    By using xcode we can prevent files from being backed up to icloud and itunes, but i want to know that  what is the way to achieve this by using AIR. While creating an explicit app id from apple developer account , i am not enabling icloud support.

    Within AIR you can set the File.preventBackup property to true on a directory or file to prohibit that content from being backed up to the cloud:
    File - Adobe ActionScript® 3 (AS3 ) API Reference
    This is all you need to call when you first create the folder or file to have it work with iOS backup guidelines.

  • Best way to mix multiple camera angles from multiple performances?

    There has to be a slick way to do this, but I can't seem to figure it out.  I'm hoping someone can offer their advice on the best way to approach this project. (I'm using Premiere Pro CS4)
    I have footage from 2 performances of a high school play that I want to mix together, with 2 cameras used each night:
    Cam1: Friday Right
    Cam2: Friday Center
    Cam3: Saturday Wide Left
    Cam4: Saturday Wide Right
    I only had 2 cameras, but I wanted to capture 4 different angles that I could later mix and match.  The problem is that, as live performances go, you can't count on exact timing from night to night.  It's really simple to do multi-camera editing for one night with the Multicamera Monitor (painfully simple), which works great for the 2 angles that were filmed on the same performance, but if I try to do it with footage from different nights, it only takes about a minute for actions onstage to be so far off between the two nights that I can't switch between cameras with reasonable accuracy.
    Since I will be going back and forth many times among 4 clips, the ideal solution that I have come up with (but I don't think Premiere can do) is to have the ability to set markers or keyframes at certain locations that basically say "switch to MM:SS on camera X now" without actually trimming clips and overlaying them into a single video track.  So basically determining which camera is "Live".  This would let me do rolling edits without having to create a new clip every time I want to switch to that camera angle.
    I may be missing something very simple or over-analyzing something that really won't be that bad, but I'm having a hard time wrapping my mind around the best way to approach cutting back and forth among the same 4 unsynchronized camera angles numerous times.  If nayone has a suggestion I'd love to hear it.
    Thanks,
    -keen

    Time - being in sync...
    Most performances like that shot ( for like a music video ) are done to recorded music ( lip sync and play to recorded music ) ..so timing stays the same to the music...  dont know what kind of performance you shot but this gives you an idea how tough it is to keep timing for music performances.
    ---------you wrote -----
    Since I will be going back and forth many times among 4 clips, the ideal  solution that I have come up with (but I don't think Premiere can do)  is to have the ability to set markers or keyframes at certain locations  that basically say "switch to MM:SS on camera X now" without actually  trimming clips and overlaying them into a single video track.  So  basically determining which camera is "Live".  This would let me do  rolling edits without having to create a new clip every time I want to  switch to that camera angle.
    If you can't just use one night as suggested earlier by Jim and Stan....I would say bite the bullet and just do what you dont want to do...
    make subclips ( trim clips or whatever ) and forget about rolling edits...
    You might want to consider putting stuff in 4 sequences... day 1, day 2, day 3, day 4...
    make a 5th sequence called "rough cut " or something...
    each time you take a "clip" from one of the 4 sequences move that clip up one video channel ( and copy / paste to your 5th sequence )..which then gives you a visual quick guide what you have USED from the sequences...so you dont waste time scrubbing through stuff you already put into sequence 5....
    You may be able to choose just ONE sound track from one night and just use THAT...and pick shots that FIT those moments in time OK from all 4 sequences....you can play with duration / time of a small clip ( as it is unlinked to the sound in this scenario ) to make it FIT better...but that would be very subtle changes...
    ps...I keep forgetting...some people use the camera to record sound instead of a sound mixer, recorder, etc...so if thats your case what I suggested at bottom of mssg probably would not work...using duration / time...unless its REALLY minor adjustment...hmmmm, maybe export just the sound from a single performance and try using that as your ONE sound file for the performance...I really dont know what you would do if you recorded sound with the cameras...as I would never do that I dont know what to suggest if thats the case...

  • Stopping HD from being accessed

    I've had to return my G5 iSight to the dealer for repairs. There is a lot of personal data on one of the partitions on the internal drive and to stop access to that partition, I set up an account for the dealer to use, and as well, I stopped it from being visible on the dealer's desktop by allowing only the Administrator (me) access to the disk.
    That worked well. But I thought I'd try to erase the partition from within the dealer's account by using Disk Utility. Sure enough, the partition appeared and Disk Utility seemed to allow me to erase it.
    How can I lock a partition so that it is password protected and nothing can be done to it from within a dealer's account?
    Thanks in advance for any suggestions

    There's very little you can do to prevent access to that partition as a whole. You can't even rely on your login password, since that can be reset by anyone with a system disk. What I would advise is to keep all sensitive data in an encrypted file of some sort. Encrypted disk images work beautifully for this purpose. I have one that contains all my passwords, account numbers, financial information, etc. The password is long and is not remembered in any keychain.
    If the disk image option doesn't work for you, there are all kinds of commercial and non-commercial encryption options. Just search somewhere like MacUpdate or VersionTracker.

  • To use Boolean function in DECODE or CASE statement

    Hi all
    I have a scenario where i need to use a boolean function inside DECODE statement. When i tried this way iam getting "ORA-06553: PLS-382: expression is of wrong type".
    I doubt whether i can use boolean function inside DECODE or not?
    My query will be like this:
    select decode(my_fuction( ),'TRUE',1,'FALSE',0) from dual;
    Any help is highly appreciated.
    Thanks
    Sriram

    Overloaded functions must differ by more than their
    return type . At the time that the overloaded
    function is called, the compiler doesn't know what type
    of data that function will return. The compiler cannot,
    therefore, determine which version of the function to
    use if all the parameters are the same.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               

  • How to use the pps function from JCOP?

    Hi
    I'm trying to use the pps function from JCTerminal (JCOP API: [url http://www.cs.ru.nl/~woj/jcopapi/com/ibm/jc/JCTerminal.html#pps(int, int)]pps function ) to connect my client to a virtual card with a specific protocol (T=0).
    But I always got the error: "Protocol and parameter selection not supported by this terminal!"
    I've tried to make an ATR that support both protocol : [url http://smartcard-atr.appspot.com/parse?ATR=3b909580811fc7dc]3B 90 95 80 81 1F C7 DC.
    I really don't know what value to put in the second parameter (baud rate), I've tried with 150000, which is in the range of the ATR but I'm not sure this is correct. And I could't find any example of it.
    I'm also not sure where to put the pps command, the specification say directly after a reset, so I tried this implementation:
    System.out.print("Start");
              readers = TerminalFactory.getDefault().terminals().list(State.CARD_PRESENT);
              //If no readers has a card it ends the process
              if(readers.isEmpty()){
                   System.out.println("\nNo card in the reader...");
                   return;
              System.out.println("\nReader Type: "+readers.get(0).toString());
              term = (PCSCJCTerminal)JCTerminal.getInstance("PCSC", readers.get(0).toString().substring(15));
              term.open();
              System.out.println("\nTerminal opened");
              //Getting the ATR
              atr = new ATR(term.waitForCard(2000));
              try {
                   term.pps(JCTerminal.PROTOCOL_T0, (int)150000);
              } catch (Exception e) {
                   e.printStackTrace();
              System.out.println("ATR: "+toHex(atr.getBytes()));
              //sending a data 11223344
              System.out.println("\nsending data: 11223344");
              byte[] responsesend = term.send(0,cmdsend,0,cmdsend.length);
              System.out.println("Response data is:" + toHex(responsesend));
              //close terminal
              term.close();
              System.out.println("\nTerminal closed");I've got this output on the console:
    <font size="2">StartReader Type: PC/SC terminal Virtual CAD Reader 0
    Terminal opened
    ATR: 3b 90 95 90 00 81 1f c7 cc
    sending data: 11223344
    <font color="red">Protocol and parameter selection not supported by this terminal!</font>
         at com.ibm.jc.JCTerminal.pps(Unknown Source)
         at com.test.essai.main(essai.java:46)
    </font>>
    And If I take a look at the data exchanged with the card:
    <font size="2">Running in Virtual Card mode...
    ATR: 3B909580811FC7DC
    Waiting for event (power: off, protocol: unknown/undefined)...
    Waiting for event (power: off, protocol: unknown/undefined)...
    Raw event data: 01
    Event: VCAD_EC_POWER_ON (0x01)
    Reply: VCAD_SC_OK (0x00) (in reply to VCAD_EC_POWER_ON) ATR: 3b909580811fc7dc
    Raw reply data: 003b909580811fc7dc
    Sending reply...
    Waiting for event (power: on, protocol: unknown/undefined)...
    Waiting for event (power: on, protocol: unknown/undefined)...
    Raw event data: 06ff11957b
    Event: VCAD_EC_EXCHANGE_TPDU (0x06) C-TPDU: ff11957b
    Accepting any PPS request parameters: Protocol: t=1; FI=9, DI=5
    Reply: VCAD_SC_OK (0x00) (in reply to VCAD_EC_EXCHANGE_TPDU) R-TPDU: ff11957b
    Raw reply data: 00ff11957b
    Sending reply...
    </font>>
    This (above) is the PPS command but not from the PPS function, it is always sent with protocol T=1
    <font size="2">Waiting for event (power: on, protocol: t=1)...
    Raw event data: 0501
    Event: VCAD_EC_SET_PROTOCOL (0x05) Protocol: t=1
    Reply: VCAD_SC_OK (0x00) (in reply to VCAD_EC_SET_PROTOCOL)
    Raw reply data: 00
    Sending reply...
    Waiting for event (power: on, protocol: t=1)...
    Raw event data: 0600c10120e0
    Event: VCAD_EC_EXCHANGE_TPDU (0x06) C-TPDU: 00c10120e0
    Handling protocol-specific command...
    Protocol block:
    NAD: 0x00
    PCB: 0xc1 (T1_S_BLOCK); S-Block type: T1_SBT_IFS_REQ
    LEN: 1
    INF:
    IFS: 20
    EDC: 0xe0
    Changing IFS(other) from 32 to 32
    Reply: VCAD_SC_OK (0x00) (in reply to VCAD_EC_EXCHANGE_TPDU) R-TPDU: 00e10120c0
    Raw reply data: 0000e10120c0
    Sending reply...
    Waiting for event (power: on, protocol: t=1)...
    Raw event data: 0600001300a404000d54657374436c69656e7441707000f0
    Event: VCAD_EC_EXCHANGE_TPDU (0x06) C-TPDU: 00001300a404000d54657374436c69656e74
    41707000f0
    Processing app. command...
    App. block:
    NAD: 0x00
    PCB: 0x00 (T1_I_BLOCK); Seq. #: 0; More data: 0
    LEN: 13
    INF:
    00a404000d54657374436c69656e7441707000
    EDC: 0xf0
    cmd name: N/A (class #4)
    cmd: 00a40400 0d 54657374436c69656e74417070 70
    Responding with the reversed command data, SW is hardcoded to 90<INS>
    rsp: 707041746e65696c4374736554 90a4
    Reply: VCAD_SC_OK (0x00) (in reply to VCAD_EC_EXCHANGE_TPDU) R-TPDU: 00000f70704
    1746e65696c437473655490a475
    Raw reply data: 0000000f707041746e65696c437473655490a475
    Sending reply...
    Waiting for event (power: on, protocol: t=1)...
    Raw event data: 060040041122334400
    Event: VCAD_EC_EXCHANGE_TPDU (0x06) C-TPDU: 0040041122334400
    Processing app. command...
    App. block:
    NAD: 0x00
    PCB: 0x40 (T1_I_BLOCK); Seq. #: 1; More data: 0
    LEN: 4
    INF:
    11223344
    EDC: 0x00
    cmd name: N/A (class #1)
    cmd: 11223344
    Responding with the reversed command data, SW is hardcoded to 90<INS>
    rsp: 9022
    Reply: VCAD_SC_OK (0x00) (in reply to VCAD_EC_EXCHANGE_TPDU) R-TPDU: 0040029022f
    0
    Raw reply data: 000040029022f0
    Sending reply...
    Waiting for event (power: on, protocol: t=1)...
    Raw event data: 03
    Event: VCAD_EC_POWER_OFF (0x03)
    Reply: VCAD_SC_OK (0x00) (in reply to VCAD_EC_POWER_OFF)
    Raw reply data: 00
    Sending reply...
    Waiting for event (power: off, protocol: unknown/undefined)...
    </font>>
    If someone know how to use this function or have any advice to help me to select a specific protocol with Jcop API, please let me know.
    If you you need any more information don't hesitate to ask.
    Best regards
    Edited by: Cyril on Sep 22, 2011 9:54 AM

    -1
    I'm using a virtual terminal (windows driver), and I don't see how I could turn off the Auto-pps. I've also tried with a real reader and a card and I have the same error.
    -2
    I've tried value in the range of the atr (based on this analysis: [url http://smartcard-atr.appspot.com/parse?ATR=3b909580811fc7dc]http://smartcard-atr.appspot.com/parse?ATR=3b909580811fc7dc ). But I don't know if only I value of baud-rate is possible in the range. Anyway I just would like to change the protocol, not the baud-rate.
    -3
    I've already tried to call pps function before, after the first reset, or with another reset later and I always got the same thing.
              term = (PCSCJCTerminal)JCTerminal.getInstance("PCSC", readers.get(0).toString().substring(15));
              term.open();
              System.out.println("\nTerminal opened");
              //Getting the ATR
              atr = new ATR(term.waitForCard(2000));
              System.out.println("ATR: "+toHex(atr.getBytes()));
              jcard = new JCard(term,atr,0);
              jcard.reset();          
              try {
                   term.pps(JCTerminal.PROTOCOL_T0, (int)312500);
              } catch (Exception e) {
                   e.printStackTrace();
              }The same pps is always send after each reset...

  • Using function from windows dll in abap program

    Hi
    How can i use a function from a standard  DLL that in c:\winnt\system32.?.
    Ami

    Hello ami,
    here is the solution to your question - I know, a little bit late, but I hope not to late.
    Cheers
    Stefan
    "-Begin-----------------------------------------------------------------
      Report  ZLOGON.
      "-Variables-----------------------------------------------------------
        Data Win32 Type OLE2_OBJECT.
        Data Token Type String Value '0000'.
        Data hToken Type Integer.
        Data phToken Type Integer.
        Data ret Type Integer.
      "-Main----------------------------------------------------------------
        Create Object Win32 'DynamicWrapperX'.
        If Win32-Handle > 0.
          "-Define external functions---------------------------------------
            Call Method Of Win32 'Register' Exporting
              #1 = 'advapi32.dll' #2 = 'LogonUserA'
              #3 = 'i=sssuup' #4 = 'r=l'.
            Call Method Of Win32 'Register' Exporting
              #1 = 'kernel32.dll' #2 = 'CloseHandle'
              #3 = 'i=h' #4 = 'r=l'.
            Call Method Of Win32 'Register' Exporting
              #1 = 'kernel32.dll' #2 = 'GetLastError'
              #3 = 'r=u'.
          Call Method Of Win32 'StrPtr' = phToken Exporting
            #1 = Token #2 = 's'.
          Call Method Of Win32 'LogonUserA' = ret Exporting
            #1 = 'bambi' #2 = '.' #3 = 'hugo' #4 = 2 #5 = 0 #6 = phToken.
          If ret <> 0.
            "-Logon successful----------------------------------------------
              Write: 'Logon as bambi user'.
            Call Method Of Win32 'NumGet' = hToken Exporting
              #1 = phToken.
            Call Method Of Win32 'CloseHandle' = ret Exporting
              #1 = hToken.
            If ret = 0.
              Call Method Of Win32 'GetLastError' = ret.
              Write: / ret.
            EndIf.
          Else.
            Call Method Of Win32 'GetLastError' = ret.
            Write: / ret.
          EndIf.
          Free Object Win32.
        EndIf.
    "-End-------------------------------------------------------------------
    Edited by: Stefan Schnell on Sep 6, 2011 7:07 AM

  • I cant use the highlight, underline, or strikethrough function in a specific pdf file. The file isnt locked. I used to highlight texts from that file before the latest update. The problem occurs only with that file. Urgent need. Please help. Thanks!

    i cant use the highlight, underline, or strikethrough function in a specific pdf file. The file isnt locked. I used to highlight texts from that file before the latest update. The problem occurs only with that file. Urgent need. Please help. Thanks!

    Chester31,
    Thank you very much for sharing your file with us!  Now that we are able to reproduce the problem at our end, you may stop sharing the file on Acrobat.com.
    Do you know when this problem (for not being able to add new highlight/strikeout/underline) has started?  Did you update your iOS from 7.x to 8.0 recently?
    We will continue investigating the problem and let you know what we find.
    Thank you again for your help.

  • Why can I not use the channel name, which is obtained from the function of DAQmx Task, as the input of the channel name for the function of Get Channel Information of DAQ?

    Why can I not use the channel name, which is obtained from the function of DAQmx Task, as the input of the channel name for the function of Get Channel Information of DAQ?

    Not a lot of details here, but my guess is this isn't working for you because you are wiring in the task to the Active Channels Property and not the actual Channel Name. I have attatched a screenshot of what I believe you are trying to do. The Task has 2 channels in it, so I need to index off one of the channels and wire it into the active channels input of the Channel Property node. Then I can read information about that channel
    Attachments:
    channel_name.JPG ‏69 KB

  • Pipelined functions from mssql using DG4MSQL

    Hi to All
    I have made installation of DG4MSQL 11.1 to connect Oracle db 10.2.0.4 to MSSQL server and found this problem.
    On my MSSQL side there are piplined database objects , functions that behave like tables and which from mssql side is queried by forexample select * from table(parameter);
    I tried to query objects on oracle db side using the same syntax like this:
    select * from "table(parameter)"@sqlserverlink;
    and this
    select * from "table"@sqlserverlink (parameter);
    and it gave error:
    ORA-00933: SQL command not properly ended
    Also tried standard oracle syntax for selecting from pipleined function like this :
    select * from TABLE("table"@sqlserverlink(NULL));
    or
    select * from TABLE("table"(NULL)@sqlserverlink);
    and it gives error
    ORA-00933: SQL command not properly ended
    .Can enynone give me some answer for this. Are piplined functions supported through DG4MSQL when connecting from oracle to mssql.
    Greetings
    Kenan

    What is exactly the syntax of your object name.
    Table, table and TABLE are 3 differents objects!!!!!
    select object_name,object_type from all_objects@sqlserver where upper(object_name)='table';
    ====>normal , you have no row because your object name is not 'TABLE'
    You have to respect the case sensivity
    Try rather:
    select object_name,object_type from all_objects@sqlserver where object_name LIKE '%able%';
    So in your SQL SERVER (which version?) what do you see exactly???
    In which object category do you see it?Is it a user defined function?
    When you use a function, it is used to retrieve a value.
    example: select "table"@sqlserver (NULL) from dual;
    ==>you get one rowwith one value
    If your object is a table supposed to retrieve resultset (many rows) you can't pass it with a parameter:
    select * from Table@sqlserver (NULL);
    ==>it won't work
    So my question is also what are you supposed to retrieve when you select in SQL SERVER:
    select * from table(null)
    ==>many rows or one row???
    You can test with the DBMS_HS_PASSTHROUGH package:
    DECLARE
    ret integer;
    c integer;
    BEGIN
    c := DBMS_HS_PASSTHROUGH.OPEN_CURSOR@sqlserver;
    DBMS_HS_PASSTHROUGH.PARSE@sqlserver(c, 'select * from table(null)');
    ret := DBMS_HS_PASSTHROUGH.EXECUTE_NON_QUERY@sqlserver(c);
    dbms_output.put_line(ret ||' passthrough output');
    DBMS_HS_PASSTHROUGH.CLOSE_CURSOR@sqlserver(c);
    END;
    If it is succesfull, you're supposed to get:
    ===>1 passthrough output
    Please give me all the information and I could help you more.
    Regards
    Mireille

  • Calling a function from a dll written by using visual studio c++

    Hi, how can i call a function from a dll which is written by visual studio c++ in test stand?  Although the functions in dll are exported and i've chosen c/c++ adapter, i saw no function in test stand. Is there a different step while i'm calling a function from a dll written by c++ than calling a function from a dll written by cvi?

    Hey Sadik,
    Selecting the C/C++ DLL Adapter Module should be sufficient for this. When you drag an action step for this onto the Main Step and navigate to the location of the DLL, the function list should populate and you should be able to select the function you want to use. If this is not the case, would you be able to post this DLL so that we can test this on our end?
    Regards,
    Jackie
    DAQ Product Marketing Engineer
    National Instruments

  • Calling a BOOLEAN returning function from SQL

    Hello All,
    I have created below function which return BOOLEAN value :
    CREATE OR REPLACE FUNCTION FUNC_1
    P_EMPID IN emp.empno%type
    )RETURN BOOLEAN
    AS
    L_VAR NUMBER;
    BEGIN
    SELECT 1 INTO L_VAR
    FROM EMP
    WHERE EMPNO = P_EMPID;
    IF L_VAR = 1 THEN
    RETURN TRUE;
    ELSE
    RETURN FALSE;
    END IF;
    END;Now I want to call this function from SELECT but I know that SQL does not support BOOLEAN value so I tried in other way i.e. via CASE
    SELECT CASE FUNC_1(7788)
           WHEN TRUE THEN 'TRUE'
           WHEN FALSE THEN 'FALSE'
           ELSE 'NULL'
           END CASE
    FROM DUALBut it is giving me error "ORA-00904: "FALSE": invalid identifier'
    How can I achieve this ?
    Thanks & Regards,
    Rakesh

    Hi Rakesh,
    Why cant you try something like this, When BOOLEAN type is not supported in SQL.
    Here I have made the return value a number. And, at case comparison, we get the BOOLEAN
    result as TRUE of FALSE.
    CREATE OR REPLACE FUNCTION func_1 (p_empid IN emp.empno%TYPE)
       RETURN NUMBER
    AS
       l_var   NUMBER;
    BEGIN
       SELECT count(*)
         INTO l_var
         FROM emp
        WHERE empno = p_empid;
       IF l_var = 1
       THEN
          RETURN 1;
       ELSE
          RETURN 0;
       END IF;
    END;And,
    SELECT CASE func_1 (55656)
              WHEN 1
                 THEN 'TRUE'
              WHEN 0
                 THEN 'FALSE'
           END
      FROM DUAL;Which return TRUE if the Employee Number Exists and FALSE if doesnot.
    Thanks,
    Shankar.

  • Problem using isChannelSecure() function from SecurityService Interface

    Hi everyone
    I'll appreciate if anyone could tell me what is exactly the properties arguman in
    boolean isChannelSecure(byte properties) function from SecurityService Interface.
    Best Regards
    Shanar

    API?

Maybe you are looking for

  • Tooltip with Rollover Menus

    I am using a tooltip widget in cunjunction with the menu widget and trying to get my menu rollovers to stay active while still utilizing the tooltip to bring up photos. However the rollover state is zeroed out by the tooltip. The page is located here

  • Planned price in material master default in valuation price in PR

    Hello, I want to default planned price  of material master in valuation price of Purchase requisition, Currently MAP is defaulted in valuation price field in Purchase requisition. Is this possible by using any user exit? Regards

  • Move an activation from one computer to another

    we recently lost a desktop - we had a activation for the suite on that computer - we also have a laptop we used the second activation on. Since we are unable to unsubcribe the desktop we are looking for the way to get this done - if anyone is aware o

  • No Input dectected

    I am trying to plug my Guitar into Garageband 3 using a griffin imic, and it is not working. I have a g4 Quicksilver with no mic input. I have an imic connected, and have changed the input to this device in system preference. I see the input level mo

  • Install on external

    Attempting install on 20G "thumb" drive. Purpose another issue, the G3 presently runs 10.3.9; unable to locate the original Panther discs resorted to 10.2. A: should I attempt install on actual thumb drive-I used a "camera" to USB B: just bring my G4