Previous Thread
Next Thread
Print Thread
extended .CLEAR #37613 29 Sep 24 09:58 AM
Joined: Jun 2001
Posts: 3,406
J
Jorge Tavares - UmZero Online Content OP
Member
OP Online Content
Member
J
Joined: Jun 2001
Posts: 3,406
Hi Jack,

Would it be interesting to have something like .CLEARVAL to clear all the values in an ordmap keeping the keys?

Just preparing monday's breakfast do not expect any sunday's reaction, hope you HAD a great one. cool


Jorge Tavares

UmZero - SoftwareHouse
Brasil/Portugal
Re: extended .CLEAR [Re: Jorge Tavares - UmZero] #37614 30 Sep 24 07:54 PM
Joined: Jun 2001
Posts: 11,794
J
Jack McGregor Offline
Member
Offline
Member
J
Joined: Jun 2001
Posts: 11,794
Hi Jorge,

Yes, thank you, I HAD a great one!

But now it's Monday, and I'm trying to replace a failing SSD drive on my laptop, so maybe I'm distracted, but I'm wondering what the use case is for this. Keeping in mind that ideally, we'd like any such command to work similarly with all arrays and collections (in the same sense that .CLEAR does). There's also the question of what exactly is meant by clearing the values. Is that the same as setting them to "" for varstr, and perhaps a single null byte for varx? (Note that we can't set the value to .NULL because that deletes the key-value pair.)

Hoping you HAD a great Monday! cool


Moderated by  Jack McGregor, Ty Griffin 

Powered by UBB.threads™ PHP Forum Software 7.7.3