Viktor Szakáts wrote:
>
> The solution is in fact very simple:
> ---
> IF hbpLoad( "test.hbp", @aOptions, @aFiles )
> // do all the visual stuff, add/delete options,
> // add/delete files
> hbpSave( "test.hbp", aOptions, aFiles )
> ENDIF
>
> FUNCTION hbpSave( cFN, aOptions, aFiles )
> LOCAL cFile := ""
> FOR EACH tmp IN aOptions
> IF " " $ tmp
> cFile += Chr( 34 ) + tmp + Chr( 34 ) + hb_osNewLine()
> ELSE
> cFile += tmp + hb_osNewLine()
> ENDIF
> NEXT
> FOR EACH tmp IN aFiles
> IF " " $ tmp
> cFile += Chr( 34 ) + tmp + Chr( 34 ) + hb_osNewLine()
> ELSE
> cFile += tmp + hb_osNewLine()
> ENDIF
> NEXT
> RETURN hb_memoWrit( cFN, cFile )
> ---
>
Exactly.
My point was only that SOURCES will always FOLLOW flags,
no flags in between sources. In all above messages I was
trying to explain this.
The above two functions are OK.
Only one point:
"-3rd=some text with spaces" => -3rd="some text with spaces"
seems more natural to me.
-----
enjoy hbIDEing...
Pritpal Bedi
_a_student_of_software_analysis_&_design_
--
View this message in context:
http://n2.nabble.com/hbMK2-3rd-SomeString-Broken-tp4651138p4651522.html
Sent from the harbour-devel mailing list archive at Nabble.com.
_______________________________________________
Harbour mailing list (attachment size limit: 40KB)
[email protected]
http://lists.harbour-project.org/mailman/listinfo/harbour