Old 04-16-2017, 05:01 AM   #1
RCJacH
Human being with feelings
 
Join Date: Apr 2016
Location: Beijing, China
Posts: 215
Default JSFX: Question regarding strcat()

Why won't this work?

Code:
@gfx 100 100
str = "A";
srcstr = "B";
gfx_r = gfx_g = gfx_b = 1;
gfx_x = gfx_w * 0.5; gfx_y = gfx_h * 0.5;
gfx_drawstr(strcat(str, srcstr));
prints "A" only
RCJacH is offline   Reply With Quote
Old 04-16-2017, 08:20 AM   #2
eugen2777
Human being with feelings
 
eugen2777's Avatar
 
Join Date: Aug 2012
Posts: 271
Default

literals.
You can use temporary string - #.
gfx_drawstr(strcat(strcpy(#, str), srcstr));
__________________
ReaScripts

Last edited by eugen2777; 04-18-2017 at 05:48 PM.
eugen2777 is offline   Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -7. The time now is 01:32 AM.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2024, vBulletin Solutions Inc.