You can use the Script control to do this.
>> -----Original Message-----
>> From: gregseverywhere@h...
>> [mailto:gregseverywhere@h...]
>> Sent: Wednesday, May 16, 2001 11:12 AM
>> To: professional vb
>> Subject: [pro_vb] execute string
>>
>>
>>
>> anyone,
>>
>> I am receiving a string from an external source and must execute it.
>>
>> str = "if x = 3 then < do something > else <do something
>> else> end if"
>>
>> How do I go from this string to executing it in VB 6.0
>>
>>
>> thanks...Greg
>>
>>
>>
>>
>> $subst('Email.Unsub')
>>