Viktor,

pw := Space( Len( pw ) )

could do it?

And a

pw := Stuff( pw, 1, Len( pw ), Space( Len( pw ) ) )

Given that the string has same lenght shouldn't it reuse allocated memory?

Maurilio.


Viktor Szakáts wrote:
> Hi All,
> 
> Is there a safe way to clear to content of a variable in Harbour?
> 
> --- server.prg
> ? "Please enter password:"
> ACCEPT TO pw
> <process pw>
> pw := NIL
> <server loop>
> ---
> 
> I want that the content of 'pw' variable be surely 
> cleared from memory.
> 
> Is this currently possible? and how?
> 
> Brgds,
> Viktor
> 
> _______________________________________________
> Harbour mailing list (attachment size limit: 40KB)
> [email protected]
> http://lists.harbour-project.org/mailman/listinfo/harbour
> 

-- 
 __________
|  |  | |__| Maurilio Longo
|_|_|_|____| farmaconsult s.r.l.


_______________________________________________
Harbour mailing list (attachment size limit: 40KB)
[email protected]
http://lists.harbour-project.org/mailman/listinfo/harbour

Reply via email to