PDA

View Full Version : Load a text file contents in a macro


ShiamakD
06-29-2009, 04:31 PM
Hi,

I would like to load a txt file contents (abc.txt) in a defined temp macro and then display it?

How can this be done.. I tried to use Application.load function without any success.

Just a suggestion, your help file is very unconventional, its hard to find anything and understand it in a shorter time..

if you could make your help file similar to micosoft (listing apis with examples etc, this would be really helpfule, and would be easy for VBLD user to find answers.

Though I rate your web support as staright *****(5 starts).

Thanks for your help.

kinook
06-29-2009, 04:37 PM
See attached sample and following help topics.

http://www.kinook.com/VisBuildPro/Manual/readfileaction.htm
http://www.kinook.com/VisBuildPro/Manual/logmessageaction.htm

ShiamakD
06-29-2009, 04:43 PM
Originally posted by kinook
See attached sample and following help topics.

http://www.kinook.com/VisBuildPro/Manual/readfileaction.htm
http://www.kinook.com/VisBuildPro/Manual/logmessageaction.htm

This seems to be VBLD 7.1 funtionality which i dont have access to, can this be done (any other way) either in 6.7a?

Thanks

kinook
06-29-2009, 09:31 PM
Use a Set Macro step with a value of

[vbld_GetFileContents("c:\path\to\file.ext")]

http://www.kinook.com/VisBuildPro/Manual/setmacroaction.htm
http://www.kinook.com/VisBuildPro/Manual/scriptexpressions.htm
http://www.kinook.com/VisBuildPro/Manual/sysscriptfile.htm