Hey all.

mtm2 and other sensible chat
Post Reply
GermReturns
Member
Posts: 5
Joined: Tue Jun 16, 2009 2:59 pm

Hey all.

Post by GermReturns »

How you all been? Where do you guys play mtm2 now? RGO seems empty, and it's gone off WGC!
User avatar
Slayer
Member
Posts: 1822
Joined: Sun Oct 16, 2005 4:39 pm
Location: Winnipeg Manitoba, Canada

Post by Slayer »

no one tell him where we are.
Image
User avatar
TlathamXmahtalT
Member
Posts: 702
Joined: Sun Jun 08, 2008 7:46 am
Location: In BinEdit, using YOUR models.
Contact:

Post by TlathamXmahtalT »

...
Last edited by TlathamXmahtalT on Tue Jun 16, 2009 7:58 pm, edited 1 time in total.
User avatar
Slayer
Member
Posts: 1822
Joined: Sun Oct 16, 2005 4:39 pm
Location: Winnipeg Manitoba, Canada

Post by Slayer »

Nooooo the hacker knows where to find us.
Last edited by Slayer on Fri Jul 03, 2009 8:41 pm, edited 1 time in total.
Image
User avatar
ShadowPrincess
Gone Walkabout
Posts: 665
Joined: Tue Jan 25, 2005 10:35 am
Contact:

Post by ShadowPrincess »

Long time no see.
How you going Germ?
GermReturns
Member
Posts: 5
Joined: Tue Jun 16, 2009 2:59 pm

Post by GermReturns »

Slayer, I thought you'd grow up by now, but seems your still the same dumbass I met a couple years ago. If you don't have anything nice to say, don't say anything at all.
User avatar
Slayer
Member
Posts: 1822
Joined: Sun Oct 16, 2005 4:39 pm
Location: Winnipeg Manitoba, Canada

Post by Slayer »

Heh, Don't I nearly double your age? Both mentally and physically?


Anyways, hate is timeless, you both *beep* me off and betrayed me, I am well within my right to hate you.
Image
GermReturns
Member
Posts: 5
Joined: Tue Jun 16, 2009 2:59 pm

Post by GermReturns »

I betrayed you? Go ahead and hate over the internet, you think your smarter and wiser, but your not, I been looking at your programming and their all basic programs, you haven't improved a single bit. Keep thinking I betrayed you though. When your smarter than me and can code better than me then I'll respect you, as for now, your still a joke. :D

By the way, say I can't code? You can visit me at my site: http://hackhound.org ... && now it isn't a hacking site, it's a programming and malware analysis site. My nick is carb0n there. ;) Send me a message there if you need help with your simple vb6 apps ;)
User avatar
Slayer
Member
Posts: 1822
Joined: Sun Oct 16, 2005 4:39 pm
Location: Winnipeg Manitoba, Canada

Post by Slayer »

I haven't coded any of my personal apps in ages :). Been working in the banking industry now for 2 years.

Also I am not entirely sure what my ability to code as to do with my intelligence. Meh. So what do you do for a living then? Last I saw you, you were bent on ruining MTM2 for everyone, how have you changed then?



And well actually if u wanna help, perhaps you can help with this.

My problem is simple. The first character of a piece of data in a column may be invalid. I need a script to fix it. Preferably not using a stored procedure.


My first idea was this
Update Service10
Set LN_SmString2 = ('M' + RIGHT((Select LN_SmString2 From Service10),Len(Select LN_SmString2 From Service10) - 1)))
Where LEFT(LN_SmString2,1) <> 'M' or LEFT(LN_SmString2,1) <> 'S' or LEFT(LN_SmString2,1) <> 'D'

I've bolded the specific problem, how do I tell it which row to grab the data, the select and the update need to be looking at the same row for this to work.

If there is an easy solution to this, I'd like to know.

Otherwise, my solution would be using a variable and a curser. That should work fine EXCEPT I only know how to use variables and cursors in stored procs. I again, don't want a stored proc, just a single use script. Online help is not very helpful for some reason with this issue, so help would be appreciated.

The jyst of this script is this.

If the first characters is not M, S, or D, then make it M. All characters after that must remain the same. It is a 30 character CHAR and each character represents something to the system.
Image
User avatar
Phineus
Glow Ball
Posts: 24
Joined: Tue Feb 02, 1999 7:00 pm

Post by Phineus »

GermReturns wrote: Send me a message there if you need help with your simple vb6 apps
It may take me a while to get over there. Meantime, I can use all the help I can get with my simple vb6 apps. Drop by here and maybe you can impart some wisdom ;-)


http://mtm2.com/chat/
User avatar
Slayer
Member
Posts: 1822
Joined: Sun Oct 16, 2005 4:39 pm
Location: Winnipeg Manitoba, Canada

Post by Slayer »

now i just gotta wonder what yoru having trouble with in VB6 :). Cause internet is awesome for help, there is a crap lot of help out there, for almost everything. DevX has a crazy amount of prewritten code for you too, to just drop in place and use.


I wanna learn assembly :)
Image
User avatar
Slayer
Member
Posts: 1822
Joined: Sun Oct 16, 2005 4:39 pm
Location: Winnipeg Manitoba, Canada

Post by Slayer »

Ah dang, turns out my SQL was out in left field, guy a tech republic fixed it up for me :)

Code: Select all

Update Service10
Set LN_SmString2 = 'M' + SubString(LN_SmString2,2)
Where LN_SmString2 Not Like '[MSD]%'
Image
User avatar
Phineus
Glow Ball
Posts: 24
Joined: Tue Feb 02, 1999 7:00 pm

Post by Phineus »

Code: Select all

if (SubString(LN_SmString2,2) == 'valid') {
  Update Service10
  Set LN_SmString2 = 'M' + SubString(LN_SmString2,2)
  Where LN_SmString2 Not Like '[MSD]%'
}
else {
  print qq(scorn and abuse);
  Don't bother ;
  aka exit ;
} 
User avatar
Slayer
Member
Posts: 1822
Joined: Sun Oct 16, 2005 4:39 pm
Location: Winnipeg Manitoba, Canada

Post by Slayer »

lol I don't think that would actually work, considering there are no braces or "==" in T-SQL.
Image
User avatar
Phineus
Glow Ball
Posts: 24
Joined: Tue Feb 02, 1999 7:00 pm

Post by Phineus »

It's z-notation ; it's meta code.


:P
User avatar
JerOutlaw
Member
Posts: 130
Joined: Thu May 31, 2007 12:19 am
Location: 3 hours from Alaska

Post by JerOutlaw »

i think my brain just seized :?
Image
User avatar
nome66
Member
Posts: 142
Joined: Fri May 11, 2007 9:29 pm
Location: With parents

Post by nome66 »

woah, same here.
crash king
I like mopar
"there's no problems except the brakes. you see they only work on that wheel.....they work very well on that wheel....but only on that wheel." -Richard Hammond(top gear)
Image
User avatar
Nascarfan15
mtm2 rocks!
Posts: 609
Joined: Mon Nov 28, 2005 11:34 pm
Location: Brockton, Massachusetts
Contact:

Post by Nascarfan15 »

JerOutlaw wrote:i think my brain just seized :?
Same here! :?
Image
User avatar
Blown_Steel
Member
Posts: 58
Joined: Wed Jul 22, 2009 12:47 pm
Location: Oregon

Post by Blown_Steel »

Ditto
Mac TV
Post Reply