Page loading

Share your opinion
What do you think about gambaslinux.fr?
 
Interesting
It miss some informations
Excellent website
Results
WIDGETS GAMBAS
GAMBAS 3 SOFTWARES
TUTORIALS
Library
Use File - file have been opened

Test if a gambas file is already opened



to test if a gambas file is opened, just create a file when you start application. If you start same application again, you test if the file exist and you kill imediatly the second application.

To resume ,in your open function of the form :

IF NOT exist(mypath) THEN
myFile = OPEN mypath FOR create
CLOSE #myFile
ELSE
me.CLOSE
ENDif

In the CLOSE function of your form

kill application.path & "/myfile" 'efface fichier deja ouvert

The KILL documentation

http://gambasdoc.org/help/lang/kill?fr

Thanks

Creation date : 02/03/2012 @ 08:28
Last update : 02/03/2012 @ 08:28
Category : Use File
Page read 4116 times


Print the article Print the article


react.gifReactions to this article

Nobody gave a comment yet.
Be the first one to do it!


QUICK MENU
SEARCH




LANGUAGE
COMPONENTS
Other
LANGUAGE
Where, who?
VISITS

   visitors

   visitors online

ARCHIVES GAMBAS 1/2
^ Top ^