Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

multiple *string parameters

Status
Not open for further replies.

lalatiana

Programmer
Jun 28, 2005
2
FR
Hi everybody
(Clarion 5.5 and above)
Has anybody noticed that Clarion 5.5 and above do accept only 1 (one) parameter when it is passed as *string [ prototype : procedurename(*string) ]. This prototype [ procedurename(*string,*string) ] seems not to work (with 2 or more *string parameters).

The classic prototype [ procedurename(string,string) ] works normally.
 
!I cannot reproduce your problem.
!The following works just fine
!Tested with C55eeF & C6_9034
!
!My _GUESS_ is that you're talking about procedures in a DLL,
!In which case add the ,RAW attribute to the prototype
!Also you will probably wish to add ,PASCAL or sometimes ,C



PROGRAM
MAP
concat(*CSTRING argA, *CSTRING argB),STRING
END

szA CSTRING('Testing ')
szB CSTRING('1 2 3')
szAnswer CSTRING(128)
CODE
szAnswer = concat(szA,szA)
szAnswer = concat(szAnswer, szB)
MESSAGE('szAnswer['& szAnswer &']')

concat PROCEDURE(*CSTRING argA, *CSTRING argB) !,STRING
CODE
RETURN argA & argB




 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top