I found quiet a lot of tripple dot ( ...) at the samples. and no documentation about it.
like this one in myzip.prg.
-
PROCEDURE Main( ... )
LOCAL hZip, aDir, aFile, aWild, ;
cZipName, cPath, cFileName, cExt, cWild, cPassword, cComment, ;
tmp
LOCAL lUnicode
IF "--unicode" $ hb_CmdLine()
hb_cdpSelect( "UTF8EX" )
hb_SetTermCP( hb_cdpTerm() )
Set( _SET_OSCODEPAGE, hb_cdpOS() )
lUnicode := .T.
ELSE
lUnicode := .F.
ENDIF
aWild := { ... }
- its in the PROCEDURE Main( ... )
- and at aWild := { ... }
pls advise Masters... and tq
Triple Dot ( ...)
Moderator: Rathinagiri
Triple Dot ( ...)
Just Hmg It !
Re: Triple Dot ( ...)
The three dots are known in English as an ellipsis, for which the dictionary says:
Regards,
CalScot
In your exampleellipsis is the omission of one or more words, which must be supplied by the reader.
It means that you should provide the code for the procedure Main() and the elements for the aWild array in the example -- that the documentation will not provide it, assuming that you will be able to fill in your own processes/data in these places.- its in the PROCEDURE Main( ... )
- and at aWild := { ... }
Regards,
CalScot
Re: Triple Dot ( ...)
Hi,hmgchang wrote:I found quiet a lot of tripple dot ( ...) at the samples. and no documentation about it.
- its in the PROCEDURE Main( ... )
- and at aWild := { ... }
pls advise Masters... and tq
It is Harbour language enhancement: variable number of parameters.
... at end of param list e.g. FUNCTION MyFunc(cArg1, nArg2, ...)
may be used elsewhere e.g. { ... } array of params
SYNTAX for variable number of parameters
1) [FUNCTION|PROCEDURE] name( ... )
or
2) [FUNCTION|PROCEDURE] name( var1, var2, varN, ... )
To access passed parameters use the following:
PCOUNT() - returns number of passed parameters
HB_PVALUE( iParamNum ) - returns <iParamNum> parameter
HB_APARAMS() - returns array with all passed parameters
or usual name of parameter variable in case of syntax 2)
Hope that useful.
Kind Regards,
Grigory Filatov
"Everything should be made as simple as possible, but no simpler." Albert Einstein
Grigory Filatov
"Everything should be made as simple as possible, but no simpler." Albert Einstein
- danielmaximiliano
- Posts: 2611
- Joined: Fri Apr 09, 2010 4:53 pm
- Location: Argentina
- Contact:
Re: Triple Dot ( ...)
Como siempre Grigory una fuente de conocimiento
As always a source of knowledge Grigory
As always a source of knowledge Grigory
*´¨)
¸.·´¸.·*´¨) ¸.·*¨)
(¸.·´. (¸.·` *
.·`. Harbour/HMG : It's magic !
(¸.·``··*
Saludos / Regards
DaNiElMaXiMiLiAnO
Whatsapp. := +54901169026142
Telegram Name := DaNiElMaXiMiLiAnO
¸.·´¸.·*´¨) ¸.·*¨)
(¸.·´. (¸.·` *
.·`. Harbour/HMG : It's magic !
(¸.·``··*
Saludos / Regards
DaNiElMaXiMiLiAnO
Whatsapp. := +54901169026142
Telegram Name := DaNiElMaXiMiLiAnO
Re: Triple Dot ( ...)
+1esgici wrote:Thanks Scotty and Grigory
Viva HMG
Valuable info
BPD
Convert Dream into Reality through HMG
Convert Dream into Reality through HMG
Re: Triple Dot ( ...)
Thks Masters,
( CalScot, gfilatov, danielmaximiliano, esgici / i like your pic and bpd2000)
I misunderstood the programs since its under the test folder,
now I know I hv to provide in place of the ...
( CalScot, gfilatov, danielmaximiliano, esgici / i like your pic and bpd2000)
I misunderstood the programs since its under the test folder,
now I know I hv to provide in place of the ...
Just Hmg It !