Author Topic: Question: Delete a named layout from Database  (Read 13947 times)

0 Members and 1 Guest are viewing this topic.

MickD

  • Gator
  • Posts: 3498
  • (x-in)->[process]->(y-out)
Re: Question: Delete a named layout from Database
« Reply #30 on: January 29, 2008, 06:22:26 AM »
whoops, I see Dan already tried erase, I was looking at Glenn's visual notepad code (which looks like it could work) :D

Was that successful?
Forth is like the Tao: it is a Way, and is realized when followed.
Its fragility is its strength; its simplicity is its direction - Michael Ham

"First, solve the problem. Then, write the code." John Johnson

Glenn R

  • Water Moccasin
  • Posts: 1932
  • What idiot child of married cousins wrote this?!
Re: Question: Delete a named layout from Database
« Reply #31 on: January 29, 2008, 06:25:16 AM »
whoops, I see Dan already tried erase, I was looking at Glenn's visual notepad code (which looks like it could work) :D

Was that successful?

As stated by Dan, no - it didn't seem to work...but as I said earlier, I thought it would.
Me

MickD

  • Gator
  • Posts: 3498
  • (x-in)->[process]->(y-out)
Re: Question: Delete a named layout from Database
« Reply #32 on: January 29, 2008, 06:30:39 AM »
Sorry Glenn, I didn't mean your VN code, I was refering to  Dan's 'erase' code (the smiley was in the wrong place :) )
Forth is like the Tao: it is a Way, and is realized when followed.
Its fragility is its strength; its simplicity is its direction - Michael Ham

"First, solve the problem. Then, write the code." John Johnson

Glenn R

  • Water Moccasin
  • Posts: 1932
  • What idiot child of married cousins wrote this?!
Re: Question: Delete a named layout from Database
« Reply #33 on: January 29, 2008, 06:34:24 AM »
Oh yes, the erase certainly worked - I was just trying to shorten it by removing from the dictionary directly, rather than open the dict entry and cast to a layout.

Cheers,
Glenn.
Me

MickD

  • Gator
  • Posts: 3498
  • (x-in)->[process]->(y-out)
Re: Question: Delete a named layout from Database
« Reply #34 on: January 29, 2008, 06:41:13 AM »
Oh yes, the erase certainly worked - I was just trying to shorten it by removing from the dictionary directly, rather than open the dict entry and cast to a layout.

Cheers,
Glenn.

Yep, I see that and I agree, why have a remove method otherwise??

You're right about getting back into arx though, some (even most) things are a lot easier/more direct to do than in the COM or .net languages even if there's twice as many lines of code.
Forth is like the Tao: it is a Way, and is realized when followed.
Its fragility is its strength; its simplicity is its direction - Michael Ham

"First, solve the problem. Then, write the code." John Johnson