IMPORTANT ANNOUNCEMENT

These forums were permanently set to read-only mode on July 20, 2022. From that day onwards, no new posting or comment is allowed on the site, but the historical content remains intact and searchable.

A new location for posting questions about PlanetPress Suite is now available:

OL Learn - PlanetPress Classic (opens in new tab)

Topic Options
#30302 - 09/01/09 10:48 AM Directory Array
John William BR Offline
OL Newbie

Registered: 05/21/09
Posts: 14
Loc: Rio de Janeiro
hi to all,

I have one a big problem,how do I display a text using a file. "txt" using the directory array?

Top
#30303 - 09/01/09 11:06 AM Re: Directory Array
Anonymous
Unregistered


Hello John,

I'm not sure what you are trying to do, are you using a Folder Capture to get txt documents dropped into a folder? Or are you using Folder Listing and want to do somethign else with it?

Please give more details on your process, so we can better see what you need.

Eric.

Top
#30304 - 09/01/09 01:04 PM Re: Directory Array
John William BR Offline
OL Newbie

Registered: 05/21/09
Posts: 14
Loc: Rio de Janeiro
hi to all

well what I'm trying to do is to use an external text to convert his content into a variable with the array of resource directory planet press desing I already use the software for some time but I can not use this function.

I tried to do a show (& variable) in the press and other talk but I can not.

Top
#30305 - 09/01/09 06:38 PM Re: Directory Array
Anonymous
Unregistered


Hi John William,

May I ask why you need to do that? I feel there would be better ways to achieve your goals. What will the text be used for once in the array? Please describe what your form needs to do and we can help you find the best way to do it. Could you also specifiy if you have watch or not?

Thanks. Regards,

Olivier

Top
#30306 - 09/02/09 04:15 PM Re: Directory Array
John William BR Offline
OL Newbie

Registered: 05/21/09
Posts: 14
Loc: Rio de Janeiro
hello all,

well what can I do to capture a text that is not on the database but in a folder and enter your coneudo Bernardelli in the desing, now I do it using the watch to the function input text file, but I would use the directory array and capture a text that is in a folder and turn it into a global variable.

for example, a file in c: / test / test.txt (content "test") would like to transform it into a variable "& test"

why am I having pleblemas to watch someone could help me?
pesquisar

Top
#30307 - 09/02/09 04:35 PM Re: Directory Array
Anonymous
Unregistered


Hi John,

Referring to your 2nd post, if you use an array variable, you need to specifiy which field of the array you want to show. The brackets "[]" are used to do that. Remember arrays are 0 based, so if you have 5 text files in your directory, you will need to use the parameters 0 to 4 to show them.
Examples:
Code:
&myglobalvariable := &myarraydirectory[0]  
show(&myarraydirectory[0])
show(&myarraydirectory[&i])
For(&i,1,1,5)
  show(&myarraydirectory[&i-1])
  crlf
endfor()
etc...
Hope this helps. Regards,

Olivier

Top
#30308 - 09/04/09 09:25 AM Re: Directory Array
John William BR Offline
OL Newbie

Registered: 05/21/09
Posts: 14
Loc: Rio de Janeiro
hi all,
thanks oliver but..
work could only partially display the file path and not your content, is there any way to display the contents of the file?

Top
#30309 - 09/04/09 10:34 AM Re: Directory Array
Anonymous
Unregistered


John,

The Folder Listing plugin does not retreive the contents of any files - it's used to list the contents of the folder (a list of the names of the files within this folder). If you want to get the content of the files, you will need to add a Load External File plugin, which replaces your current job with the contents of the file.

Hope this helps,
Eric.

Top
#30310 - 09/23/09 12:46 PM Re: Directory Array
John William BR Offline
OL Newbie

Registered: 05/21/09
Posts: 14
Loc: Rio de Janeiro
How do I configure this?
Is the watch or for the design? the watch I've done something, but in this case have to do this configuration into the design.

can you help me?

Top
#30311 - 09/23/09 12:48 PM Re: Directory Array
Anonymous
Unregistered


John,

The Load External File is a Watch plugin, and the configuration should be self-explanatory once you open it.

Eric.

Top