KiXforms Forum Index KiXforms
The Forum for the KiXforms Community
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 
 Quick Links 
Site News
Downloads
Documentation
Donations
Script Archive
Tracking Systems

DataSet - missing some required stuff

 
Post new topic   Reply to topic    KiXforms Forum Index -> KiXforms.NET Discussion
View previous topic :: View next topic  
Author Message
Lonkero
KiXforms Devotee
KiXforms Devotee


Joined: 13 Mar 2003
Posts: 1022
Location: Espoo, Finland

PostPosted: Mon Jan 02, 2006 4:19 pm    Post subject: DataSet - missing some required stuff Reply with quote

as a starters, the constructor is missing from docs.
I bet you, shawn did that cause you coded the stuff for something like datagrid.
but, the data classes are needed for other stuff too.

also, the Contains and the IndexOf methods are missing.
now one needs to go via for loop to get the desired table.

_________________
Hammer
Back to top
View user's profile Send private message Visit poster's website MSN Messenger
Lonkero
KiXforms Devotee
KiXforms Devotee


Joined: 13 Mar 2003
Posts: 1022
Location: Espoo, Finland

PostPosted: Mon Jan 02, 2006 4:38 pm    Post subject: Reply with quote

as there is no XML code available (the search returned nothing) on this board, here is a simple example to get everybody started.
like said, the doc doesn't have the constructor and the datatables can't be pulled with indexOf but a clever mind can work it out:
Code:
;*************************************************************************
;  Script Name:   LoadDB
;  Description:   Loads the userdatabase and sharedfolders info.
;*************************************************************************
 If Not IsDeclared($SO_KF_BASE)
   $SO=SetOption("CaseSensitive", "ON")
   $SO=SetOption("HideCursor", "ON")
   $SO=SetOption("NoMacrosInStrings", "ON")
   $SO=SetOption("NoVarsInStrings", "ON")
   $System = CreateObject("Kixforms.System")
   Global $SO_KF_BASE
EndIf

$DB = $System.DataSet()
MD "%ProgramFiles%\Filer38\"
$ = $DB.ReadXML("%ProgramFiles%\Filer38\Filer38.db", $System.XMLReadMode_ReadSchema)
If Not $DB.DataSetName = "Filer38"
 $DB.DataSetName = "Filer38"
 $table = $DB.Tables.Add($System.DataTable("Share"))
 $table = $DB.Tables.Add($System.DataTable("Downloaded"))
 $table = $DB.Tables.Add($System.DataTable("Uploaded"))
 $table = $DB.Tables.Add($System.DataTable("Users"))
 $ = $DB.WriteXML("%ProgramFiles%\Filer38\Filer38.db", $System.XMLWriteMode_WriteSchema)
Else
 "DataSetName: " $DB.DataSetName ?
 For $numeri = 1 to $DB.Tables.Count
  $DB.Tables.Item($numeri).TableName ?
 Next
 Sleep 2
EndIf

_________________
Hammer
Back to top
View user's profile Send private message Visit poster's website MSN Messenger
Display posts from previous:   
Post new topic   Reply to topic    KiXforms Forum Index -> KiXforms.NET Discussion All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum


Powered by phpBB © 2001, 2005 phpBB Group