Search:

Type: Posts; User: rockies1

Page 1 of 10 1 2 3 4

Search: Search took 0.19 seconds.

  1. Replies
    3
    Views
    1,702

    Is string in another string

    For the life of me, I can not seem to manage what should be something simple.

    I am looking for something like this:


    String strMyString = "Smith, Andrew"
    If(There is a comma in strMyString)...
  2. Replies
    3
    Views
    4,276

    VB6 ListBox with images

    Anyone know of a way to have a listbox that also allows images with the text?

    Can be 3rd party...

    Thanks!
  3. Replies
    4
    Views
    823

    Re: How long until a given date

    That helped greatly, THANK YOU!
  4. Replies
    4
    Views
    823

    Re: How long until a given date

    I'm looking for a Java solution, not an SQL solution, but thanks.
  5. Replies
    4
    Views
    823

    How long until a given date

    I am trying to figure out how to determine how many days until a given date from today.

    For example, if today is 4/26 and I need to know how long until 5/17, I need to know that it is 21 days.
    ...
  6. Replies
    2
    Views
    1,261

    Re: Converting Java snippet to VBA

    Well, I changed it to this:

    Function UPCtoISBN(strUPCin As String) As String
    Dim strTemp As String
    If Len(strUPCin) = 13 And Left(strUPCin, 3) = "978" Then

    strTemp =...
  7. Replies
    2
    Views
    1,261

    Converting Java snippet to VBA

    I have the following Java code:
    public static void main(String [ ] args)
    {
    String isbn = "9781590387474";
    if (isbn.length() == 13 && isbn.indexOf("978") == 0)
    {
    isbn =...
  8. Save file in folder that corresponds to MP3 ID info

    My MP3s have gotten out of control....I have so many with no tags or bad tags all in 1 folder, that it is no fun looking for a file...

    I have coded something that will allow me to load a folder of...
  9. Replies
    0
    Views
    617

    Javascript form validation not working

    I have this code
    <?php #

    if (isset($_POST['submit']))
    { // Handle the form.
    //put the php here
    } // End of the main Submit conditional.
    else
    {
    ?>
  10. Replies
    5
    Views
    719

    Re: Validate entered value

    But doesn't the form only get 1 submit button?

    I need to have 2 actions with the form. 1 to submit the entire thing and 1 to call the servlet to validate the e-mail.

    E-mail will be part of...
  11. Replies
    5
    Views
    719

    Re: Validate entered value

    I will be looking it up in an oracle table.

    I don't need to validate the format, just the existance of it in the table.

    I really need to know how I can have 2 buttons that submit to 2 different...
  12. Replies
    5
    Views
    719

    Validate entered value

    I have an HTML form that when submitted goes to a java servlet.

    Within that form is an e-mail address field that I would like users to be able to validate by clicking a button and then have that...
  13. Replies
    5
    Views
    840

    Re: Get a random item from an array

    I used this: Public Function ShuffleArray(ByRef data() As String) As String()

    Dim swap As String
    Dim x As Integer
    Dim r As Random = New Random()
    Dim...
  14. Replies
    1
    Views
    387

    What is this error??

    ContextSwitchDeadlock was detected
    Message: The CLR has been unable to transition from COM context 0x190768 to COM context 0x1908b8 for 60 seconds. The thread that owns the destination...
  15. Replies
    5
    Views
    840

    Get a random item from an array

    I have an array of strings.

    I need to generate a random list of these strings with no repeats.

    Any pointers?
  16. Re: Count the number of files on a drive

    That worked great, thank you!
  17. [RESOLVED] Count the number of files on a drive

    Anyone know how to get a count of files with a given extension on a drive?

    There may or may not be folders on the drive.

    Thanks!
  18. Replies
    4
    Views
    768

    Re: Free Disk Space...

    2005 Express Edition


    Microsoft Visual Studio 2005
    Version 8.0.50727.42 (RTM.050727-4200)
    Microsoft .NET Framework
    Version 2.0.50727

    Installed Edition: VB Express
  19. Replies
    4
    Views
    768

    Free Disk Space...

    I searched to find the free disk space, and found this but I get an error about Directory not being declared.

    I'm stumped.

    Any suggestions?

    Thanks!
    Sub getinfodrive(ByVal s As String)
    ...
  20. Replies
    5
    Views
    617

    Re: StatusStrip Question

    Cool, thank you!
  21. Replies
    5
    Views
    617

    StatusStrip Question

    Is it possible to have the StatusStrip the full width of the form and have the items in the strip spaced evenly in it?

    If so, any ideas how?

    Thanks!

    Morgan
  22. Replies
    9
    Views
    3,982

    Re: Parsing Delimited Strings

    Looks good but, unfortunately, I am stuck using java 1.4.2 and Scanner appeared in 1.5. :mad:

    Thank you for your help on this, I appreciate it! :thumb:
  23. Replies
    9
    Views
    3,982

    Re: Parsing Delimited Strings

    I can't change the values in the string as I am getting them from a vendor-provided file and loading them to oracle.

    I ended up re-writing the method to this:

    public static String...
  24. Replies
    9
    Views
    3,982

    Re: Parsing Delimited Strings

    Because the length of the string changes every time and substring requires a specific starting point.

    I need the Nth item in a delimited list.
  25. Replies
    9
    Views
    3,982

    Parsing Delimited Strings

    I use the follwing method to parse delimited strings so I can get certain pieces:

    public static String instanceSearch(String strIn, int intInstance, String strDelimiter)
    {
    String strToReturn...
  26. Re: Disable dropdown based on another dropdown's value

    That worked perfectly, thank you!
  27. Disable dropdown based on another dropdown's value [RESOLVED]

    I have a page with 2 dropdowns. One is called type and contains One-Time and Recurring. The other is frequency and contains many items.

    If a user selects Recurring from type, I want the Frequency...
  28. Replies
    4
    Views
    842

    I have got to learn to refresh before posting. ...

    I have got to learn to refresh before posting.

    I can't believe I spent all that time on so much code when this little bit did it.

    Thank you SO much!
  29. Replies
    4
    Views
    842

    Thanks for the suggestion. This is what I ended...

    Thanks for the suggestion. This is what I ended up going with. Not real pretty, but it works.


    public static boolean isLeap(int year)
    {
    return year % 4 == 0 && (year % 100 != 0 || year %...
  30. Replies
    4
    Views
    842

    Odd Date format conversion

    I have a file that I receive from another company. In it there are dates in this format:

    2004001
    or
    2004294

    The 2004 is the year, obviously, but the next 3 digits give me the month & day.
    ...
  31. Replies
    8
    Views
    518

    I ended up using this: BufferedReader in = new...

    I ended up using this:

    BufferedReader in = new BufferedReader(new FileReader( strTheFile ));
    StringBuffer sbufReadFromFile = new StringBuffer(in.readLine ());
    if ( sbufReadFromFile == null )
    {...
  32. Replies
    8
    Views
    518

    The line contains many records with many fields...

    The line contains many records with many fields that are of different lengths, fixed width-not delimeted.
  33. Replies
    8
    Views
    518

    Read in X characters of a file

    I have a file that I need to process. Some of them are as large as several MB.

    The file is a single line of data, each record being 450 bytes.

    I've read files using this:

    BufferedReader in...
  34. Replies
    2
    Views
    1,298

    Eclipse doesn't like gc.setTimeInMillis I...

    Eclipse doesn't like
    gc.setTimeInMillis

    I found this code that I had for another old project that I'll try and modify:
    import java.text.SimpleDateFormat;
    import java.util.*;
    import...
  35. Replies
    2
    Views
    1,298

    Calculate Yesterday's Date

    I have the following code for calculating yesterday's date:
    public static String CalcYestDate()
    {
    //Set up date to run for
    java.util.Calendar gc;
    java.util.Date curDate;
    String ...
  36. Refreshing a window when closing another window

    I have a page where users can upload files to me.

    The link from the main page pops up an upload window, the user uploads it, and then when they close the popup, I want the first window to refresh...
  37. Replies
    0
    Views
    591

    Transfer a file using a servlet

    I need to transfer a file from a users PC to our application/web server and have that file associate with the record they are editing.

    I've begun with the following HTML:

    <!DOCTYPE HTML PUBLIC...
  38. Replies
    5
    Views
    1,180

    Duh... I changed FileOutputStream fos; to ...

    Duh...

    I changed
    FileOutputStream fos; to
    FileOutputStream fos = new FileOutputStream( this.getLOCAL_FILE() ); and it works now.

    Thanks!
  39. Replies
    5
    Views
    1,180

    Won't compile that way because the compiler says...

    Won't compile that way because the compiler says that fos in the Catch may not have been initialized...

    public void doFTPGet() throws Exception
    {
    FtpClient fcMyFtp = new FtpClient();...
  40. Replies
    5
    Views
    1,180

    The file not found is from the source. The...

    The file not found is from the source.

    The file I want to delete is the zero-byte file that is created at the destination.
Results 1 to 40 of 375
Page 1 of 10 1 2 3 4



Click Here to Expand Forum to Full Width