¿ªÔÆÌåÓý

Re: Datasets #error


 

¿ªÔÆÌåÓý

Hugh,

?

DSCreate~ creates a dataset in the variable SkillTable, BUT if you haven¡¯t assigned a variable named SkillTable, it has no place to put it.

?

Assign a variable like any other variable and it should be OK.

?

%SkillTable%,<nul>

?

Vance

?

?

?

?

?

Sent from for Windows

?

From: Hugh Foster
Sent: Monday, May 9, 2022 1:38 PM
To: [email protected]
Subject: [TableSmith] Datasets #error

?

Hi all

?

New here, so please be kind. Many years experience with TS but I cannot for the love of zark get my head round datasets. I know they create a typed array. But every time I try and use them, I get errors. I understand the syntax as far as it goes but really could do with an example to see where it goes and how to wrap stuff round it

?

I have

?

_{DSCreate~SkillTable,SkillName,-,SkillValue,-1}

_{DSRead~SkillTable,TravSkills}

?

and I get?

?

?

***ERROR on line 39 of table 'MgTrv2-Package-NPCs' - Variable 'SkillTable' in table 'MgTrv2-Package-NPCs' not found in call to 'DSRead'. ***

?

There's a relevant file of data which I think is correct. I tried creating %SkillTable%, and got a different error

?

More info is available; any help much appreciated :)

ps tried emailing this in and it seems to have failed, so apologies if I duplicated myself

?

Join [email protected] to automatically receive all group messages.