Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Search results for query: *

  1. frumpus

    Problems implementing UserPrincipal extension class in VB.NET

    I am working with the DirectoryServices.AccountManagement tools in VB.NET, specifically, finding a UserPrincipal, but I need to retrieve the Department field which that class does not offer. So I have implemented this extension class, which I found here. According to that post it was generated...
  2. frumpus

    Lock Inputbox

    Oh and by 'unintended consequences' I meant of course that it would disable the scanner as well as the keyboard.
  3. frumpus

    Lock Inputbox

    Assuming that the barcode scanner operates as a 'keyboard emulator' this may have unintended consequences. I went through a similar issue with a card-swipe reader. Appending a carriage return after the read didn't help either as that only works if a read occurs and does not prevent users from...
  4. frumpus

    Odd error using BrowseForFolder

    Actually, I was able to do what I wanted with MS Word objects. It requires that Word be installed, but it turned out to be really simple and works exactly the way I want it to. This will at least buy me enough time to learn some HTA which looks pretty awesome. Thanks guys for your efforts in...
  5. frumpus

    Odd error using BrowseForFolder

    HTA looks useful but I'm not seeing how INPUT TYPE="FILE" will help me browse for the input file with a dialog box. Even in HTA this seems to need the old common dialog and only works in XP. http://technet.microsoft.com/en-us/library/77941da4-4b4e-4dfd-8304-8f451b8c253e Did you find an...
  6. frumpus

    Odd error using BrowseForFolder

    Interesting. It does work if I select a .pdf file. No luck with .doc or anything else I've tried so far. I don't understand why they got rid of the old CommonDialog method from XP :-/
  7. frumpus

    Odd error using BrowseForFolder

    @Geates: It does run on other computers. I've tried it on mine by giving it a different path just using "C:\somefolder" in the 4th parameter and avoiding the namespace usage but still get the same error. Any clues how I might be able to fix this without reinstalling win7? @guitarzan: Ignoring...
  8. frumpus

    Odd error using BrowseForFolder

    Hmm... What I don't understand is that I can (in vbscript) create folders and files in the same directory with no problems. It is only the BrowseForFolder object that is having issues.
  9. frumpus

    Odd error using BrowseForFolder

    All I'm trying to do is get an 'open file' dialog to work. In XP it was the easiest thing in the world but in Windows 7 (64 bit) the old dialogs don't exist. From some googling I've found this can supposedly be done with BrowseForFolder which has an option to include browsing for files. This...
  10. frumpus

    Funtion to addOption to select not working

    Ah, of course. Bingo. thanks a ton! function removeAllOptions(selectbox) { var i; for(i=selectbox.options.length-1;i>=0;i--) { //selectbox.options.remove(i); selectbox.remove(i); } }
  11. frumpus

    Funtion to addOption to select not working

    gah, ok I found the addOption function. Sorry I missed that the first time through. However, I have now added it to this page and it's still not working. I am now using this code and the behavior is the same. <script language="javascript"> function addOption(selectbox,value,text) { var optn...
  12. frumpus

    Funtion to addOption to select not working

    hmm.... I've never had to declare that before and always though it was built in. After double checking other sites where I've used it and it works fine I don't see it ever declared anywhere.
  13. frumpus

    Funtion to addOption to select not working

    I'm far from an expert in Javascript but I have done this before and it's usually pretty simple. Can a trained eye see what I've done wrong here? Nothing happens when I change the 'state' in the form. <script language="javascript"> function newState() {...
  14. frumpus

    Calling a function that returns a boolean in PL/SQL

    SOLVED In the end we went ahead and wrote the wrapper function as follows: create or replace function rly_dumb_function (pidm_in number, p_num number, p_answer char) RETURN CHAR as BEGIN RETURN CASE when gb_pin_answer.f_validate_answer(pidm_in, p_num, p_answer) THEN 'Y' ELSE 'N' END; end...
  15. frumpus

    Calling a function that returns a boolean in PL/SQL

    That helped a lot thank you. Still have a small hurdle to overcome but making progress. I am using Oracle SQL Developer for the moment just to get this bit straightened out and yes, I did have to include the SET SERVEROUTPUT ON. With that it gives me: Result: 1 ...as expected. The problem is...
  16. frumpus

    Calling a function that returns a boolean in PL/SQL

    The select from dual approach appears to fail because the function returns a boolean type, but boolean is not a valid sql type. It is only valid for pl/sql. So I am right back where I started. Not knowing how to put the value into something I can actually access.
  17. frumpus

    Calling a function that returns a boolean in PL/SQL

    I should just be able to do this: select gb_pin_answer.f_validate_answer(P_PIDM => 12345, P_NUM => 1, P_ANSWER => 'someanswer') from dual; But for some reason boolean functions are just cranky i guess. That gives me this error. ORA-06552: PL/SQL: Statement ignored ORA-06553: PLS-382...
  18. frumpus

    Calling a function that returns a boolean in PL/SQL

    Ok, so I was missing a 'begin' in the above attempt. I added that and now I have this: DECLARE v_result BOOLEAN; BEGIN IF gb_pin_answer.f_validate_answer(P_PIDM => 15022, P_NUM => 1, P_ANSWER => '101996') THEN v_result := TRUE; ELSE v_result := FALSE; END IF; RETURN v_result; end; Which...
  19. frumpus

    Calling a function that returns a boolean in PL/SQL

    This is an example of one of the many things I've tried. DECLARE v_result BOOLEAN; IF gb_pin_answer.f_validate_answer(P_PIDM => 12345, P_NUM => 1, P_ANSWER => 'someanswer') THEN v_result := TRUE; ELSE v_result := FALSE; END IF RETURN v_result; end; This returns the following error on...

Part and Inventory Search

Back
Top