• Welcome to Valhalla Legends Archive.
 

User type strings

Started by CrAz3D, August 16, 2003, 12:58 PM

Previous topic - Next topic

CrAz3D

vb 6

I am trying to include user type strings (%s, %e, etc...) into a greeting function or just basic commands, how would I go about this.
rebundance - having or being in excess of sheer stupidity
(ré-bun-dance)
Quote from: Spht on June 22, 2004, 07:32 PMSlap.
Quote from: Adron on January 28, 2005, 09:17 AMIn a way, I believe that religion is inherently evil, which includes Christianity. I'd also say Christianity is eviller than Buddhism (has more potential for evil).
Quote from: iago on April 19, 2005, 01:06 PM
CrAz3D's ... is too big vertically, at least, too big with ... iago ...

Camel

I think what you are asking is how to replaces "%s" and "%e" from the 'greeting format' with associated strings based on the user. If I'm correct on that, you can use Replace().

CrAz3D

oh, ok then.  Thnx

If that doesn't work I'm trying to do basically the same thing as stealthbot's greeting variables.
rebundance - having or being in excess of sheer stupidity
(ré-bun-dance)
Quote from: Spht on June 22, 2004, 07:32 PMSlap.
Quote from: Adron on January 28, 2005, 09:17 AMIn a way, I believe that religion is inherently evil, which includes Christianity. I'd also say Christianity is eviller than Buddhism (has more potential for evil).
Quote from: iago on April 19, 2005, 01:06 PM
CrAz3D's ... is too big vertically, at least, too big with ... iago ...

CrAz3D

#3
The replace() worked, thnx again Camel.
rebundance - having or being in excess of sheer stupidity
(ré-bun-dance)
Quote from: Spht on June 22, 2004, 07:32 PMSlap.
Quote from: Adron on January 28, 2005, 09:17 AMIn a way, I believe that religion is inherently evil, which includes Christianity. I'd also say Christianity is eviller than Buddhism (has more potential for evil).
Quote from: iago on April 19, 2005, 01:06 PM
CrAz3D's ... is too big vertically, at least, too big with ... iago ...

warz

#4
I posted a useful example that I wrote awhile back showing how to do exactly what you're asking.

Check it out: http://tks.slacktech.com/source/vb/My%20Form%20Examples/custom_variables.frm

Just append format_message somewhere in your send function and it'll replace any available variables, all the time.

CrAz3D

I don't know that I'd want it to do that but thnx.
rebundance - having or being in excess of sheer stupidity
(ré-bun-dance)
Quote from: Spht on June 22, 2004, 07:32 PMSlap.
Quote from: Adron on January 28, 2005, 09:17 AMIn a way, I believe that religion is inherently evil, which includes Christianity. I'd also say Christianity is eviller than Buddhism (has more potential for evil).
Quote from: iago on April 19, 2005, 01:06 PM
CrAz3D's ... is too big vertically, at least, too big with ... iago ...

warz