What am I doing wrong?
I want to get a string return from a procedure
Error: trying to write a numeric value into a string
But I do return a string 'appdir' or ....
Code: Select all
Global appdir$
;
appdir$= GetAppDir()
;
Procedure.s GetAppDir()
appdir.s
appdir=Space(255)
GetCurrentDirectory_(255,appdir)
If Right(appdir,1)"\"
appdir=appdir+"\"
EndIf
ProcedureReturn appdir
EndProcedure
Registered PB version : 3.2 (Windows)
--------------------------
C. de Visser
Author of Super Guitar Chord Finder
http://www.ready4music.com
