DETACH Command
Previous topic  First topic  Next topic


You can detach files attached to executable (by using resource file '.rc') to a memo var or to a phisical file using the following group of commands and/or functions:
Usted puede descargar archivos incluidos dentro del ejecutable mediante el archico de recursos '.rc' hacia una variable de tipo memo o hacia un archivo físico usando el siguiente grupo de comandos y funciones:

Use this command to list attached resources into executable:
Use este comando para listar todos los archivos incluidos en el executable:

RESOURCE LIST TO <aVarReto>
or
<aVarReto> := mg_resourceList()

<aVaReto> is a bidimentional array containing a row with cAliasName and nFileSize by each attached file

<aVaReto> es un vector bidimencional que contiene una linea con cAliasName y nFileSize por cada archivo atachado

Use this command to ask size for a specific attached file:
Use este comando para consultar el tamaño de un archivo en particular:

RESOURCE FILE SIZE [ FOR ] <cFileAlias> TO <nSize>
or
<nSize> := mg_resourceFileSize( <cFileAlias> )

Use this command to detach an attached file to a phisical file:

Use este comando para descargar un archivo atachado hacia un archivo fisico:

RESOURCE DETACH <cFileAlias> TOFILE <cFileName> [ BLOCKEVAL <BProgress> ] [ STOPVAR <lStopVar> ] [ REPLACE ] [ RETOVAR <cVarRetoLogic> ]
or
[ <cVarRetoLogic> := ] mg_resourceDetachToFile( <cFileAlias> , <cFileName> , [ <BProgress> ] , [ @<lStopVarByReference> ] , [ <lReplace> ] )

Use this command to detach an attached file to a memo var:

Use este comando para descargar un archivo atachado hacia una variable de tipo memo:

RESOURCE DETACH <cFileAlias> TOVAR <cVarName> [ BLOCKEVAL <BProgress> ] [ STOPVAR <lStopVar> ] [ RETOVAR <cVarRetoLogic> ]
or
[ <cVarRetoLogic> := ] mg_resourceDetachToVar( <cFileAlias> , @<cVarNameByReference> , [ <BProgress> ] , [ @<lStopVarByReference> ] )


You can learn more by jump to RESOURCES FILE topic.

Usted puede leer mas sobre este tema yendo al tópico RESOURCES FILE.



Marinas-GUI Version 03.06 and
Marinas-IDE Version 05.06 and
LEX Files Version 02.06


---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
last update: April 27
2017
---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------




A Harbour/QT framework to make multiplatform programs

(©) Copyright 2009-2017 by Fernando Santolin (aka CarozoDeQuilmes)
CarozoDeQuilmes@gmail.com

2009-2017 Beta tester and full English translator: Bruno Luciani
Bruno.Luciani@gmail.com

2014-2015 Final English corrector: David Worboys
DavidWorboys@hotmail.com

---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

www.marinas-gui.org


www.marinas-gui.org  

Previous topic  First topic  Next topic