convert numeric numbers to numeric text ??

brucembrucem Member Posts: 86
edited 2000-09-08 in Navision Financials
I am having a little problem with creating a unique file name, what i am doing is creating a file based on hour / mine / sec plus a couple of counting integers X and Z.

I have been using the string below to create the files, but i am having problems where Navision is converting the numeric values in FORMAT(z) + FORMAT(x) to text...

IE instead of 65 becoming a text value '65' it is becoming a string 'A' . I can't remove the FORMAT expression from the line as is won't compile ??

Is it possible to force the number to be converted to a numberic text string ???

Bruce

>>snippet below

FOR x:= 65 TO ("No. of Packs" + 64)
DO
BEGIN
SetTextmode:=f.TEXTMODE(TRUE);

f.CREATE('g:\watchdog\'+ COPYSTR(FORMAT(TIME),1,2) + COPYSTR(FORMAT(TIME),4,2) + COPYSTR(FORMAT(TIME),7,2) + FORMAT(z) + FORMAT(x) +'.bch');

Comments

  • jpjp Member Posts: 47
    Try using STRSUBSTNO('%1%2',z,x)
    -jp
Sign In or Register to comment.