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 Chriss Miller 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: *

  • Users: AdaHacker
  • Content: Threads
  • Order by date
  1. AdaHacker

    Dynamic associative array property

    Greetings all! I'm having a problem with trying to add elements to an array property accessed via a variable. The following dummy code illustrates the problem: <?php class foo { } class bar { function bar() { $this->foo = new foo; } function setArrayValue($prop, $key, $val) { if (...
  2. AdaHacker

    Automatic Unicode mangling?

    Greetings! I'm trying to figure out why PHP is escaping Unicode characters in POST data. My goal here is to find a non-hacky way to sanitize form data regarless of locality. Here's what I'm seeing. I have some Russian text that a user sent me. If I copy and paste it as a literal sting into...
  3. AdaHacker

    OleDbDataAdapter: SELECT with field list?

    Forgive me if this is obvious, but I'm still getting used to ADO.NET and it is a Monday morning. I'm making a simple form to display data from an Access database. The relevant code looks like this: Dim conn As OleDb.OleDbConnection Dim da As OleDb.OleDbDataAdapter Dim ds As DataSet Dim...
  4. AdaHacker

    Oddity with ADODC

    I'm hoping someone can explain this to me. I'm retreiving data from an Access 97 database using an ADO data control in VB6. In this database, I have a table called &quot;position&quot; from which I'd like to get some records. The query I really want to run is: SELECT position_number...
  5. AdaHacker

    Simple inner join - why isn't this working?

    After staring at it for an hour, I finally solved this problem, but I wanted to see if anyone could tell me why it was happening. I have a query with tyhe following (abreviated) SQL: SELECT ... FROM ObjectTotals INNER JOIN FMS_CODE_DESC ON ObjectTotals.object = FMS_CODE_DESC.FMS_OBJ; Now, in...
  6. AdaHacker

    License violation?

    We have two Gateway systems that are basically identical except for some user software. Both are running NT Workstation 4.0 build 1381 with service pack 6 and both are suffering from this really weird error. It's happened three times on one machine and once on the other. It pops up every few...
  7. AdaHacker

    Datagrid/adodc weirdness

    I am totally stumped. I'm posting this on the off chance that someone has seen this before. This problem is a little hard to explain, since it's so weird, but here goes. I have a form that I use for both displaying and editing data from an Access97 database. I use a datagrid bound to an ADO...
  8. AdaHacker

    SQL and/or DAO question

    This is probably really easy, and may have been answered before, but I can't seem to find it. How do I pass a parameter to a stored query in an Access database? I'm building a different query in code, and it joins a table to a stored query that requires a parameter. I tried using the...
  9. AdaHacker

    Underlines and hotkeys

    I'm trying to set up some hotkeys for command buttons on a form. I know that you can usually just put a &quot;&&quot; in the caption before the letter you want to use as the hotkey, and then when the user presses ALT+Hotkey, it will trigger that button. This works very well, but I was under...
  10. AdaHacker

    ADO with Access DB - Urgent

    I'm not certain what broke it, but I have some code for updating a database which no longer works. It's important that I get this working today, so any help would be greately appreciated. I'm using an Access 97 database with and ADO data control from VB 6. The SQL I use to populate the data...
  11. AdaHacker

    Enumerating Access reports

    Can someone tell me what's wrong with this code? I'm just trying to loop through the reports in an Access .mdb and extract the names, so that I can give my users a nice list of reports to print. I'm using Access 97 and VB 6 to do this. Everything looks good to me, but it never enters the...
  12. AdaHacker

    Castch PrintSrcn key

    All I want to do is detect when the PrintScrn key is pressed so that I can print my form. Sounds easy, but I can't get it to work. I tried the keypress event, but apparently that doesn't pick up special keys liek PrintScrn, the function keys, etc. There's got to be a way to do this. Anyone...
  13. AdaHacker

    Textbox scrolling

    As part of an app I'm writing that utilizes a modem, I need to have some simple terminal emulation. It works perfectly, except for one thing. When I recieve data, I append it to a RichTextBox with a line like [code]RTBox.Text=RTBox.Text & data[\code] and I'd like the user to be able to see...
  14. AdaHacker

    Does this mean what I think it means?

    Hi everybody! I need to translate a CRC-16 implementation in C into VB, and I'm having some trouble, mainly because my C isn't so hot. First question: Does this line mean what I think it does? crc = ((crc ^ 0x4002) << 1) + 1; Here's what I'm guessing it's equivalent to (in pseudo-code): temp =...
  15. AdaHacker

    Checksums in VB

    I'm working on an app that retreives data through a modem. Since my tests show I'm getting some errors, I'd like to use the remote system's interactive capabilities, which sends a CRC-16 checksum after the message and waits for confirmation before proceeding. My problem is, I'm at a loss as to...
  16. AdaHacker

    Why won't it work? - modem with mscomm

    Okay, here's my problem. I'm trying to contact a remote system via a modem. It works fine when I dial the site up through hyperterminal, but from code I never get any data back. Here's some of my test code. Private Sub Form_Load() ' Set up the control with the right settings and open the...
  17. AdaHacker

    Quick if question

    I was wondering, does VB have any way to support short circuit evaluation of if statements, or any other Boolean statements for that matter? I've never seen any, and I was just wondering if it can be done. It's not particularly important, but it would a lot cleaner to write if x=a and not b...
  18. AdaHacker

    Printing to a file

    I'm modifying an old FoxPro for DOS program. Currently, it will do some processing and print out a nice little report. In an effort to move toward a paperless office (or, at least kill less that half a forest each month), I've been asked to make the report print to a file which will be stored...
  19. AdaHacker

    Those little drop down things

    I've seen ways to do this, but I lost the info a while ago. I wouldn't ask, except that I have no idea what they're called or where to start looking. What I want in one of those little drop-down windows with all the different choices. I mean the kind that appear after you start typing...
  20. AdaHacker

    Getting a list of file names

    This is probably really easy, but being unfamiliar with FoxPro, I don't even know where to look. I want to get a list (an array, a delimited string - whatever) of files in a directory that match a certain regular expression. Looping through all the files is what I eventually want to do, e.g...

Part and Inventory Search

Back
Top