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. rosenk

    IPOD volume

    This is a fairly common complaint. If you really dislike it, let Apple know. Maybe they'll change the behavior with enough similar feedback. http://www.apple.com/feedback/ipod.html
  2. rosenk

    Help - Running a script without using 'sh' command.

    You most likely, then, do not have "." in your PATH. You should be able to run it as "./restart" if you're in the directory of the script. You probably don't really want to have the script be world-writable, by the way.
  3. rosenk

    Help - Running a script without using 'sh' command.

    Make sure that your script is executable.
  4. rosenk

    Quotes in String Problem (Basic)

    \" works. How were you trying to use it, exactly? (Code below does what you're trying to do.) $conFile = "dbconn.php"; $fh = fopen($conFile, 'w') or die("can't open file"); $dbname = "web39-databasename"; fwrite($fh, "\$dbname=\"$dbname\";\n");
  5. rosenk

    character array question

    String has a constructor that takes a character array. new String(charArray);
  6. rosenk

    Query returns different results from php script and command line

    The thing that comes immediately to mind is database permissions, if the php script is connecting as a different user than you're using for executing the command line queries.
  7. rosenk

    Delimiter delimma

    You can just do it with split, in fact. @fields = split /(?<!\\)\|/, $line; That regex matches any | character that is not preceded by a \.
  8. rosenk

    Closing an Attachmate Session (OLE)

    I was certainly expecting it to work for me, too. Not sure if it makes a difference, but this is a telnet session specifically.
  9. rosenk

    how to make win app also available for command line

    Create a class with a static Main() method and set this as your startup object. [STAThread] static void Main() { // do whatever you want here } If you decide that you want to display a form include (using whatever form you want to display instead of Form1, of course): Application.Run(new...
  10. rosenk

    Help stop the X from marking the non-existing image

    You could use head instead of get and make sure that the first element of the returned array starts with "image" For example: use LWP::Simple; my ($type) = head $url; if ($type =~ /^image/) { # do stuff }
  11. rosenk

    Closing an Attachmate Session (OLE)

    I've tried several different ways to close a session, but the only one that I can get to work is unreasonable. (In particular, System.Quit -- this is unreasonable because it closes ALL sessions, not just the one I want to close.) Here's a trimmed down example of one of the things I've tried...
  12. rosenk

    Finally AND Return

    A finally block always executes, even if you return a value.
  13. rosenk

    Any way I could prevent an event from executing?

    You can't prevent it from executing, but you could wrap your code in a test for Not Page.IsPostBack. If Not Page.IsPostBack Then stuff End If
  14. rosenk

    Showing forms from Sub Main

    You don't have to start in Sub Main in order to use global variables in your module.
  15. rosenk

    How to realize &quot;Reference Array&quot;

    When you say InnerEx[] PointerArray = new InnerEx[5]; you're not making 5 instances of InnerEx, you're just creating an array with 5 slots for InnerEx objects. All of the elements of the array will be null. You still need to instantiate the objects yourself.
  16. rosenk

    Showing forms from Sub Main

    If your Main() sub exits, your program is going to end. That's by definition. You can show the form non-modally, then continue to do other things -- including, perhaps, looping and checking to see if all of the forms you have displayed have been closed, exiting if they have been.
  17. rosenk

    Ms Access date format?

    What, exactly, is the error you're getting?
  18. rosenk

    Ms Access date format?

    The standard ToString() conversion for DateTime won't work for Access. You need to convert explicitly, like: selectString = &quot;INSERT INTO Purchase(ClientID, Date) VALUES (50, '&quot; &amp; mydate.ToString(&quot;d&quot;) &amp; &quot;')&quot; The &quot;d&quot; tells it to format into the...
  19. rosenk

    A Hash within a Struct and keys()

    foreach ( keys %{$games{$curGame}-&gt;matrix} ) { # stuff happens here... } That ought to do it.
  20. rosenk

    while loop error

    You can also get rid of the warning by instead using the condition: while ($condition) { } To exit you'd set $condition to 0 instead of -1. Or you could set it to undef

Part and Inventory Search

Back
Top