Normal Topic Pop up forms question (Read 707 times)
BOBSCOTT
Senior Member
Members
*****
Offline


That Darn Computer #$X#
{curse words}

Posts: 1195
Joined: Nov 22nd, 2002
Pop up forms question
May 7th, 2008 at 9:40pm
Print Post Print Post  
I usually use SubRoutines() with Thiselement() to manage redundant tasks like setting initial caps. This works great with forms.

I have now been using XResultSet with @RunWindow() more and more,  popping up forms on the fly to create new records in other databases. (The way Hammer demonstrated on the Online Information Session - Apr 25, 2008) When I use this technique I need to make sure the data is properly formatted prior to posting/writing out the data. Since I am messing with the data from string arrays and variables not elements I find myself creating huge amounts of the exact same code only with  different variables to achieve my goal.

Can you recommend the best technique I should be using? I know I am missing something Sad

How about a ThisVariable() command that works like ThisElement() so I can use my subroutines.

Thanks
  

Team – Together Everyone Achieves More
Back to top
 
IP Logged
 
Hammer
YaBB Administrator
Lanticans
*****
Offline


Fire bad. Tree pretty.

Posts: 3436
Location: Ohio
Joined: Nov 22nd, 2002
Re: Pop up forms question
Reply #1 - May 7th, 2008 at 11:10pm
Print Post Print Post  
Make them into functions that accept an argument and return the reformatted result.

Function DoSomething(vIn as String) as String
var vRet as String

    vRet = @Replace(vIn, "A", "Z") // Or whatever you want to do to it
    Return vRet

End Function
  

- Hammer
The plural of anecdote is not data.
Back to top
IP Logged
 
BOBSCOTT
Senior Member
Members
*****
Offline


That Darn Computer #$X#
{curse words}

Posts: 1195
Joined: Nov 22nd, 2002
Re: Pop up forms question
Reply #2 - May 7th, 2008 at 11:13pm
Print Post Print Post  

Thanks, (I think) Huh
  

Team – Together Everyone Achieves More
Back to top
 
IP Logged