Hi , I want to convert string to an interger in batch program, Please help.
Thanks,
Harish
Convert string to int
Moderator: DosItHelp
Re: Convert string to int
'
Batch only knows one type of variables :$variable STRING, basically a memory pointer.
It sucks yes I know, you won't be doing this in batch:
Batch only knows one type of variables :$variable STRING, basically a memory pointer.
Code: Select all
set /a "$var=1" :: string
set "$var=1" :: string
Code: Select all
procedure MyProcedure
var
MyVar1:integer;
MyVar2:string ;
begin
MyVar1 := 1 ;
MyVar2 := '1';
End;