|
Humpton Apprentice
Joined: 10 Oct 2000 Posts: 158 Location: Chicago, IL
|
Posted: Thu May 25, 2006 6:58 am
Parsing db Variables to a Channel |
Hi there.
Hopefully this makes sense...
As lots of us do, I like to report some things to my group channel.
I thought I could create a database of the different things I want to report and then use the magical
gtell %db(@dbQuotes, quote1)
and all would be fine.
Using ADDKEY I have no problem getting into quote1 "I just leveled!", for example.
Catch is I'm actually sending '%db(@dbQuotes, quote1)' to the channel not 'I just leveled!".
Any thoughts? |
|
_________________ Stay JOLLY!
H
___
Humpton lives like he types.... fast, and full of mistakes! |
|
|
|
edb6377 Magician
Joined: 29 Nov 2005 Posts: 482
|
Posted: Thu May 25, 2006 8:06 am |
put it in an alias for example.
Create a bobtell alias
in it
gtell BLAH BLAH
and i think it might be %item but without actually knowing whether gtell is a real command and some structure on if its a true database or a data record variable im not positive.
Its 4am ill check on this after i wake up.. if its still unanswered ill post a script |
|
_________________ Confucious say "Bugs in Programs need Hammer" |
|
|
|
Humpton Apprentice
Joined: 10 Oct 2000 Posts: 158 Location: Chicago, IL
|
Posted: Thu May 25, 2006 9:38 am |
Hmm, you're right. It does work out of an alias. Odd, but I can live with it.
Thanks!
H |
|
_________________ Stay JOLLY!
H
___
Humpton lives like he types.... fast, and full of mistakes! |
|
|
|
nexela Wizard
Joined: 15 Jan 2002 Posts: 1644 Location: USA
|
Posted: Thu May 25, 2006 10:42 pm |
To expand it from the command line you would have to do gtell <%db(@dbQuotes, quote1)>
Also you must have allow <> for expansion checked in the prefrences. |
|
|
|
Humpton Apprentice
Joined: 10 Oct 2000 Posts: 158 Location: Chicago, IL
|
Posted: Thu May 25, 2006 11:12 pm |
WOW! It's easy when you know how...
Thanks again! |
|
_________________ Stay JOLLY!
H
___
Humpton lives like he types.... fast, and full of mistakes! |
|
|
|
|
|