Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
GetQmItemNames fetches content from system folder
#11
Sorry to ask it here, but I do not think it is a bug that's why I asked here:

I altered the "GetQmItemsInFolder" code to work with the current beta version (2.4.1.0).
The problem I have, is the a[i].id is not an integer or not recognized as an integer?

When using the function "GetQmItemPath" in combination with the a[i].id, I get the error:
Quote:Error (RT) in <open "qm_snippet_FirstStart /2071">qm_snippet_FirstStart: incorrect argument. <help #IDP_ERR>?

When I use the val(a[i].id) function, I get the error: "expected string expression"
But when I converted the a[i].id to a string (_s) and then put it into an integer container (u), it works.

See below code, how I used it. (below a[i].id is qm_itm[i].id)
If I used qm_itm[i].id directly I get the error as described above.

Function qm_snippet_FirstStart
Code:
Copy      Help
,_s=qm_itm[i].id
,int u=val(_s)
,;; SD2    
,GetQmItemPath u fullpath


Messages In This Thread

Forum Jump:


Users browsing this thread: 6 Guest(s)