• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 265
  • Last Modified:

Problem with FileXtra4 - FolderSelectDialog

When using FileXtra4  command fx.FolderSelectDialog() on Mac OS 10.4 the address returned ends with a colon(:) When used under OS 10.5 the address is returned without the colon - giving a false address.when added to other info.
How can I get the exact version of the OS operating system and tell the difference???
BuddyAPI  baVersion("OS")  only returns "OS10"
Can't think of any other way
Can anybody help - Please
Regards
AlbumMan
0
AlbumMan
Asked:
AlbumMan
1 Solution
 
Chris-ChambersCommented:
Hi,

Have you tried a simple test to see if the string ends with a colon, and appending one if there isn't?

Hope this helps,

Chris.
strFolder = fx.FolderSelectDialog()
  
if (strFolder.char[strFolder.length] <> ":") then
  strFolder = strFolder & ":"
end if

Open in new window

0
 
AlbumManAuthor Commented:
Many thanks, I sometimes miss the obvious!!!
0

Featured Post

Get expert help—faster!

Need expert help—fast? Use the Help Bell for personalized assistance getting answers to your important questions.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now