zes,
Try reworking this part a bit.
Quote:
var dataSourcePath = "FILEDSN=C:\Documents and Settings\Administrator\My Documents\Dunix\Projects\Zai\MatchingGame\Opus Project\Database\MatchingGameDataSource.dsn;"
var matchDatabase = new Database(dataSourcePath)
if (matchDatabase.Connect())
{
Some general observations.
1- most times I see that paths in Opus require \\ to represent the usual \ when in a string.
2- var dataSourcePath --- I've had trouble with putting expressions in strings. Sometimes I've had to break them down and then use the eval() command... which is a great tool, but I found tricky to master.
3- isn't the var 'matchDatabase' an object? Then, does the if statement operate correctly? Testing for an object? Maybe make it more explicit, e.g. == true, or verify it exists?
If you're following the manual and a good sample script on databases in Opus, then my comments may not apply.
p.s. Are you using Vista?
The path shown about would indicate you are running on WinXP or such.