Hey all.
-
GermReturns
- Member
- Posts: 5
- Joined: Tue Jun 16, 2009 2:59 pm
Hey all.
How you all been? Where do you guys play mtm2 now? RGO seems empty, and it's gone off WGC!
- TlathamXmahtalT
- Member
- Posts: 702
- Joined: Sun Jun 08, 2008 7:46 am
- Location: In BinEdit, using YOUR models.
- Contact:
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.

- ShadowPrincess
- Gone Walkabout
- Posts: 665
- Joined: Tue Jan 25, 2005 10:35 am
- Contact:
Long time no see.
How you going Germ?
How you going Germ?
Tournament Host:
MTM2
http://www.mtm2tournaments.com
http://www.mtm2online.com
Evo1
http://www.evo1online.com
MTM2
http://www.mtm2tournaments.com
http://www.mtm2online.com
Evo1
http://www.evo1online.com
-
GermReturns
- Member
- Posts: 5
- Joined: Tue Jun 16, 2009 2:59 pm
-
GermReturns
- Member
- Posts: 5
- Joined: Tue Jun 16, 2009 2:59 pm
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. 
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 ;)
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 ;)
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.
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.

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 ;-)GermReturns wrote: Send me a message there if you need help with your simple vb6 apps
http://mtm2.com/chat/
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]%'
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 ;
} - Nascarfan15
- mtm2 rocks!
- Posts: 609
- Joined: Mon Nov 28, 2005 11:34 pm
- Location: Brockton, Massachusetts
- Contact:
- Blown_Steel
- Member
- Posts: 58
- Joined: Wed Jul 22, 2009 12:47 pm
- Location: Oregon


