use the value() function.
i don't really get what your variables are holding, or whether the final
globals want to be strings or integers, so i can't be more specific, but
i think that's what you need.
for example,
mysprite = ("ptTextSprite_Left"&whichLine).value
where whichLine = 2, and there's a property ptTextSprite2 which equals
sprite 23.
using whichline as an integer variable, i can get the value of the
property named the same as the string i build...
mysprite = 23
hope this helps,
bhakti
Gene Fritzinger wrote:
>
> Could someone possibly suggest a method for using a variable as a string in a
>command. The problem is, the variable contains quotation marks that need to be
>removed in order to use it in a command. The answer probably includes to do command.
> ex.
> set gReportPeriodStartDate = "date("&gTheYear_RPF&gTheMonth_RPF&gTheDay_RPF&")"
> set gReportPeriodEndDate = "date("&gTheYear_RPT&gTheMonth_RPT&gTheDay_RPT&")"
> set gNumberOfWeeks = gReportPeriodEndDate - gReportPeriodStartDate
> put gNumberOfWeeks into field "numberOfWeeks"
>
> Please consider helping me with this,
> g fritzinger
>
> [To remove yourself from this list, or to change to digest mode, go to
> http://www.penworks.com/LUJ/lingo-l.cgi To post messages to the list,
> email [EMAIL PROTECTED] (Problems, email [EMAIL PROTECTED])
> Lingo-L is for learning and helping with programming Lingo. Thanks!]
--
R. Bhakti Klein
Educational Software R & D
http://www.DLWorkshop.net
��
Baritone
���
"On Earth, you can only do little things;
but you can do them with a lot of Love."
-- Mother Theresa
[To remove yourself from this list, or to change to digest mode, go to
http://www.penworks.com/LUJ/lingo-l.cgi To post messages to the list,
email [EMAIL PROTECTED] (Problems, email [EMAIL PROTECTED])
Lingo-L is for learning and helping with programming Lingo. Thanks!]