Note: This is an archived post that was originally sent to the Hollywood mailing list on Sun, 30 May 2010 14:27:06 +0200
Heyho, Mister Dalek,
thanks a lot for your comments on Who and Merlin. I guess I have to rewatch Merlin now.
You programme sounds very useful and interesting! Will this be just for you or do you want to release it when it's done?
So, for the path problem. I guess there is quite a better approach, but here is a workaround.
First try to find out in code whether you run on Amiga or Win:
Code: Select all
ver$ = GetVersion() ; find out which OS is running this app
Then define your directories in a seperate "global" strings like that:
Code: Select all
If ver$.platform = "AmigaOS3"
fee$ = "Home Directory:Fees/Monthly/<month>/"
ofees$ = "Home Directory:Fees/Owed_fees/log"
EndIf
Now you could do that either the same way with Windows but back slashes
Code: Select all
If ver$.platform = "Win32"
fee$ = "Home Directory:\Fees\Monthly\<month>/"
ofees$ = "Home Directory:\Fees\Owed_fees/log"
EndIf
or you make it more dynamically with
ReplaceStr(), where you replace the slahes with backslashes in the strings defined above.
Another solution would be to use
FileRequest() to interactively get the path to the file. This automatically gets the path in the correct format.
I hope that helps or someone else gives a better solution.
As for the MAC font problem there where discussion here on the list and maybe in the forum. Maybe someone that is more familiar with that topic knows the answer or you search through the older posts/mails.
Greetings Micha
PS: Man, I really would like to come to London, too. First, for the X1000, second for the city. Been there once, will be there again one day.

Have fun there and take some pictures! And take some Hollywood progs with you to test them on the device.