Home » Developer & Programmer » Forms » Global Path
Global Path [message #227479] Wed, 28 March 2007 06:15 Go to next message
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 #227489 is a reply to message #227479] Wed, 28 March 2007 06:53 Go to previous messageGo to next message
sweetkhaliq
Messages: 189
Registered: April 2006
Senior Member

Space between the my documents creates problem. Eleminate this space or change the patch of destination folder like this.
My documents to Mydocuments
and then give this path. It will remove ur error probably.

global.path:='C:\MyDocuments\Uni\Database\';
OPEN_FORM(:global.path||'STUDENT.FMX');
Re: Global Path [message #227493 is a reply to message #227479] Wed, 28 March 2007 06:58 Go to previous messageGo to next message
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 #227644 is a reply to message #227493] Wed, 28 March 2007 20:18 Go to previous messageGo to next message
djmartin
Messages: 10180
Registered: March 2005
Location: Canberra ACT Australia
Senior Member
Account Moderator
Try the call without the '.fmx'.

David
Re: Global Path [message #227716 is a reply to message #227644] Thu, 29 March 2007 02:53 Go to previous message
sweetkhaliq
Messages: 189
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.
Previous Topic: Urgent:Import Ms Agent to Form6i
Next Topic: How to populate Combo Box -> Static Record Group?
Goto Forum:
  


Current Time: Fri Dec 02 12:43:05 CST 2016

Total time taken to generate the page: 0.12043 seconds