Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Get qml file description
#1
is there a way to retieve the file description from a qml file that is opened or unopened.I know how to do it with for a qm item but haven't as of yet figured out how to do it for qml file properties.
#2
Function QmFileDescription
Code:
Copy      Help
;/
function $qmlFile str&description

;Gets .qml file description.

;EXAMPLE
;str description
;QmFileDescription "$my qm$\file.qml" description
;out description


opt noerrorshere 1
int retry
ARRAY(str) a
;g1
Sqlite x.Open(qmlFile 1)
x.Exec("SELECT text FROM texts WHERE rowid=0" a)
err ;;eror if the file is open. Copy it to a temp file.
,if(retry) end _error
,retry=1
,_qmfile.FullSave
,__TempFile tf.Init
,cop- qmlFile tf
,qmlFile=tf
,goto g1
x.Close
description=a[0 0]
#3
Thank you works great


Forum Jump:


Users browsing this thread: 1 Guest(s)