![]() |
|
|
|
#1
|
|||
|
|||
|
You can manually convert the string to an integer. Example:
Code:
strValue = viz.input('Enter a number:')
try:
intValue = int(strValue)
print intValue
except ValueError:
print 'You did not enter a valid number'
|
|
#2
|
|||
|
|||
|
Thanks for the reply.
Am I correct in saying however, that you cannot combine an integer and a string to make a file name? For example if choiceM[selectM] is a string and filename is an integer? filename = filename + choiceM[selectM] Thanks |
|
#3
|
|||
|
|||
|
Yes, just convert the integer to a string and then you can concatenate it with another string:
Code:
filename = str(filename) + choiceM[selectM] |
![]() |
| Thread Tools | |
| Display Modes | Rate This Thread |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| character limit in viz.input message | moooh | Vizard | 3 | 04-15-2009 05:27 PM |
| Mouse and Viz.Input | bjgold | Vizard | 4 | 04-20-2007 01:21 PM |