Results 1 to 5 of 5

Thread: Urgent

  1. #1

    Thread Starter
    Fanatic Member
    Join Date
    Oct 1999
    Location
    MA, USA
    Posts
    523

    Post

    Do you have any ideas why this code would not work???

    Me.Caption = "Name [" & RecentFileName(Index) & "]"

    or

    Me.Caption = "Name [" & RecentFileName(Index) & Chr(91)

    It doesn't print the last ] thing.

    Thanks

    ------------------
    Visual Basic Programmer (at least I want to be one)
    ------------------
    PolComSoft
    You will hear a lot about it.

    [This message has been edited by QWERTY (edited 11-08-1999).]

  2. #2
    Hyperactive Member Juan Carlos Rey's Avatar
    Join Date
    Aug 1999
    Location
    Mendoza, Argentina
    Posts
    301

    Post

    I copied/pasted your code and it worked fine.
    A stupid question: do you have enough horizontal space in your form? (I mean Width)

  3. #3

    Thread Starter
    Fanatic Member
    Join Date
    Oct 1999
    Location
    MA, USA
    Posts
    523

    Post

    I have a lot of space. This code works for me too... well sometimes. It works when I'm trying to change form's caption from another form, but it doesn't when I want to do it from the same form.

    Thanks for your response

    ------------------
    Visual Basic Programmer (at least I want to be one)
    ------------------
    PolComSoft
    You will hear a lot about it.


  4. #4
    Serge's Avatar
    Join Date
    Feb 1999
    Location
    Scottsdale, Arizona, USA
    Posts
    2,744

    Post

    It should work fine.


    Form1.Caption = "Name [" & RecentFileName(Index) & "]"



    Regards,

    ------------------

    Serge

    Software Developer
    Serge_Dymkov@vertexinc.com
    Access8484@aol.com
    ICQ#: 51055819



  5. #5
    Addicted Member
    Join Date
    Oct 1999
    Location
    Oporto, Portugal
    Posts
    134

    Post

    Try to refresh the form afterwards.

    It worked for me.


    ------------------
    Jorge Ledo
    j_ledo@hotmail.com
    Portugal

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width