B4J Question check if file is already opened?

Konrado

Member
Hi,
Do You know how to check if a file is already opened in external application. F.ex. I want to use csv file but it is opened in excel and after attempt to open it in b4j I get errors.
 

alienhunter

Active Member
Licensed User
Longtime User
Hi,
Do You know how to check if a file is already opened in external application. F.ex. I want to use csv file but it is opened in excel and after attempt to open it in b4j I get errors.
hi
i use
B4X:
TRY
.....
YOUR CODE WHAT YOU WANT TO DO WITH EXCEL
CATCH


MSG ... IS OPEN
END TRY
 
Upvote 0

eurojam

Well-Known Member
Licensed User
Longtime User
I would try something like this:
B4X:
Try
  File.writeString( File.DirApp, "test.csv","lore ipsum...")
Catch
  Log(LastException)
End Try
 
Upvote 0

jmon

Well-Known Member
Licensed User
Longtime User
Upvote 0
Top