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

kf3 version does show nada.

 
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: Fri Oct 07, 2005 10:59 pm    Post subject: kf3 version does show nada. Reply with quote

in english, the version class of kf3 does not work.
Code:
Function KiXformsVer(optional $n)
;a short UDF that retrieves the version of KF2 or KF3

dim $,$kf2,$kf3
 $kf3=createObject("KiXforms.system")
 $kf2=createObject("KiXtart.system")
 if vartype($kf2) = 9  $kf2 = $kf2.version endif
 if vartype($kf3) = 9  $kf3 = $kf3.version.tostring endif
 select
  case 2 = $n
   $KiXFormsVer = $kf2
  case 3 = $n
   $KiXFormsVer = $kf3
  case 1
   $KiXFormsVer = $kf2 + iif(len($kf2) AND len($kf3)," / ","") + $kf3
 endselect
  exit @error
endfunction

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


Joined: 22 Feb 2003
Posts: 1983
Location: Canada

PostPosted: Fri Oct 07, 2005 11:58 pm    Post subject: Reply with quote

try the ProductVersion property (and ProductName).
Back to top
View user's profile Send private message
Lonkero
KiXforms Devotee
KiXforms Devotee


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

PostPosted: Sat Oct 08, 2005 12:32 am    Post subject: Reply with quote

lot better.
thanks.

_________________
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: Sat Oct 08, 2005 12:37 am    Post subject: Reply with quote

btw, you might wanna check the chm.
it's not there.

on the other hand, searching with "version" returns about every control there is in kf3 but not the system itself.

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


Joined: 22 Feb 2003
Posts: 1983
Location: Canada

PostPosted: Sat Oct 08, 2005 12:43 am    Post subject: Reply with quote

its kinda tough to document the system namespace because there is a hidden class that is emulating this namespace, COM doesn't support namespaces and ndoc doesn't support members hanging directly off a namespace. Think if I did document it, would probably stick it in the another real class - like maybe Application, ie-

?"Version=" $System.Application.ProductVersion

idk yet - haven't decided
Back to top
View user's profile Send private message
Lonkero
KiXforms Devotee
KiXforms Devotee


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

PostPosted: Sat Oct 08, 2005 12:56 am    Post subject: Reply with quote

application sounds good.
_________________
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