PDA

Click to See Complete Forum and Search --> : Urgent


QWERTY
Nov 8th, 1999, 10:10 AM
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).]

Juan Carlos Rey
Nov 8th, 1999, 10:26 AM
I copied/pasted your code and it worked fine.
A stupid question: do you have enough horizontal space in your form? (I mean Width)

QWERTY
Nov 8th, 1999, 10:31 AM
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.

Serge
Nov 8th, 1999, 06:39 PM
It should work fine.


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



Regards,

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

Serge

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

JorgeLedo
Nov 8th, 1999, 07:04 PM
Try to refresh the form afterwards.

It worked for me.


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