VXCMD - Can't Create DB in Windows - FYI
Ken Ray
kray at sonsothunder.com
Mon Aug 18 13:36:47 CDT 2003
> > Sorry about that... you're right, Robert. I missed the word
> "example"
> > in my comment. It was supposed to say "I suggest you update
> your VXCMD
> > example accordingly."
>
> So if I have correctly understand, must be updated example in
> the archive of VXCMD_WIN.
>
> I have copy it directly from MAC archive last time.
>
> Interesting if it is possible to write nativePath() once that
> will work for each platform?
Sure... you already have the "switch" statement in there, you only need
to do something like this:
function nativePath thePath
switch (the platform)
case "MacOS"
delete char 1 of thePath
replace "/" with ":" in thePath
break
case "Win32"
replace "/" with "\" in thePath
break
end switch
end nativePath
Ken Ray
Sons of Thunder Software
Email: kray at sonsothunder.com
Web Site: http://www.sonsothunder.com/
More information about the Valentina
mailing list