Paradox Community

Items in comp.databases.paradox

Subject:Re: Using variable with tcursor
Date:Thu, 16 May 2019 07:00:58 -0400
From:"Steven Green" <greens@diamondsg.com>
Newsgroups:comp.databases.paradox
sometimes you just have to do it the old-fashioned way

switch
case varStr = "this":
tc.this = "that"
case varStr = "you":
tc.you = "me"
endswitch


--

Steven Green
Myrtle Beach, South Carolina, USA

http://www.OasisTradingPost.com

Collectibles and Memorabilia
Vintage Lego Sets and Parts
- and Paradox support, too
"Kevin Baker"  wrote in message news:5cdbf383$1@pnews.thedbcommunity.com...

Hi Everyone,

Gonna try and keep this short and simple.  I'm trying to update a table
via tcursor and trying to pass the name of the field I need to update
via a variable.  Sample below and I know I need to open and then edit
the tcursor, just showing you were I'm getting the error, which by the
way is field varStr doesn't exist in the table.  I tried wraping varStr
in quotes, but no luck with that either.


varStr="Current Attender"

tc.varStr="new data"


Thanks,
Kevin 


Copyright © 2004 thedbcommunity.com