Global Path [message #227479] |
Wed, 28 March 2007 06:15 |
sara666
Messages: 7 Registered: March 2007 Location: Wales
|
Junior Member |
|
|
Hi
i have got the following code in my WHEN-BUTTON-PRESSED
BEGIN
:global.path:='C:\My Documents\Uni\Database\';
OPEN_FORM(:global.path||'STUDENT.FMX');
END;
but this does not work and i am unsure why as when i press the button is says "cannot find...".
can anyone point out the reason why this does not work?
Thanks
[Updated on: Wed, 28 March 2007 06:19] Report message to a moderator
|
|
|
|
Re: Global Path [message #227493 is a reply to message #227479] |
Wed, 28 March 2007 06:58 |
sara666
Messages: 7 Registered: March 2007 Location: Wales
|
Junior Member |
|
|
hi
i have changed it and the spaces are gone but still cannot find where it is - even tho the form is in that direcory
are there other ways of trying or is this the best approach?
or do i need a delare block? if so how do i implement this within my code?
Thanks
[Updated on: Wed, 28 March 2007 07:17] Report message to a moderator
|
|
|
|
Re: Global Path [message #227716 is a reply to message #227644] |
Thu, 29 March 2007 02:53 |
sweetkhaliq
Messages: 200 Registered: April 2006
|
Senior Member |
|
|
There is no problem in the code. I have done this. It worked quite well. I have run this code with button.
see the code
:global.path:='D:\work\';
OPEN_FORM(:global.path||'MODULE1.fmx');
I think there may be path problem in your code. Give the exact path then execute it.
|
|
|