How to define a vraible as numeric so that I can increase counter ?

  • Автор темы Автор темы Robejon
  • Дата начала Дата начала

Robejon

Пользователь
Регистрация
11.11.2017
Сообщения
40
Реакции
4
Баллы
8
Hi,
I have a file which has contains one line which is a number . ( Example : 212)
I used File processing to Read text from that file and assigned a variable."number"
Hence variable "number" now contains= 212

Later I tried to increase counter on that variable .. but it failed ,probably because it was taken as a string.
How can I assign that as a numeric variable ?
Thanks
 
No I do not have spaces . It simply returns "project failed "
 
Please check the attached file.
You may give any number inside the text file
 

Вложения

Did you get the error "Variable is not a number"?
 
Because You have wrong increase counter action.
Should be like this:
486ICVH.png




http://zennolab.com/wiki/en:looping?s[]=counter
 
Yes now working correctly.
Solution: Increased by 1
 

Кто просматривает тему: (Всего: 0, Пользователи: 0, Гости: 0)