Post Reply 
String Library
12-23-2015, 06:39 AM (This post was last modified: 12-23-2015 06:41 AM by Tyann.)
Post: #3
RE: String Library
Bonjour
Les fonctions LFORMAT ET RFORMAT ne fonctionnent pas correctement.
Exemple :
LFORMAT(16,2,"0") renvoie "0016" au lieu de "16".
Ceci est du à un bug de la fonction MAKELIST.
Voici une version corrigée de setstr qui est utilisée par ces deux fonctions:

Hello
The LFORMAT AND RFORMAT functions do not work properly.
Example :
LFORMAT (16,2,"0" ) returns " 0016 " instead of "16" .
This is due to a bug in the MAKELIST function.
Here is a corrected version of setstr that is used by these two functions:

Code:

setstr(c,n)
BEGIN
 LOCAL i,r;
 c:=typara(c);r:="";
 FOR i FROM 1 TO n
  r:=r+c;
 END;
 r;
END;
Sorry

Sorry for my english
Find all posts by this user
Quote this message in a reply
Post Reply 


Messages In This Thread
String Library - Tyann - 11-16-2015, 12:11 PM
RE: String Library - Tyann - 12-07-2015, 09:43 PM
RE: String Library - Tyann - 12-23-2015 06:39 AM
RE: String Library - BruceH - 03-20-2017, 03:30 PM
RE: String Library - Tyann - 03-20-2017, 08:39 PM
RE: String Library - BruceH - 03-20-2017, 10:18 PM
RE: String Library - Tyann - 03-20-2017, 10:44 PM
RE: String Library - BruceH - 03-21-2017, 04:36 PM



User(s) browsing this thread: 1 Guest(s)