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...
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...
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...
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...
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 :-/
@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...
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.
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...
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);
}
}
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...
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.
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()
{...
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...
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...
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.
...=> 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: expression is of wrong type
06552. 00000 - "PL/SQL: %s"
*Cause:
*Action:
Error at Line: 1 Column: 7
...RETURN statement cannot contain an expression
ORA-06550: line 8, column 1:
PL/SQL: Statement ignored
06550. 00000 - "line %s, column %s:\n%s"
*Cause: Usually a PL/SQL compilation error.
*Action:
So I removed the variable name from the RETURN statement, giving me this:
DECLARE v_result...
...symbol "begin" was substituted for "IF" to continue.
ORA-06550: line 7, column 1:
PLS-00103: Encountered the symbol "RETURN" when expecting one of the following:
;
06550. 00000 - "line %s, column %s:\n%s"
*Cause: Usually a PL/SQL compilation error.
*Action:
Am I even in the ballpark...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.