Skip to content
This repository has been archived by the owner on Jun 8, 2023. It is now read-only.

Request for "in text set letter#" block #1246

Open
agvardha57 opened this issue Feb 15, 2023 · 2 comments
Open

Request for "in text set letter#" block #1246

agvardha57 opened this issue Feb 15, 2023 · 2 comments

Comments

@agvardha57
Copy link

So we have
image
If we can have a similar one for set that would be ideal and save us much pain. The following blocks can be replaced by one "in text set lette#" block.
image

@tatiang
Copy link

tatiang commented Feb 20, 2023

I agree this would be useful. Here's another workaround method:

image

@agvardha57
Copy link
Author

Wow wow wow. It took me while to wrap my C infested brain around it. Yes I got it
https://x.thunkable.com/copy/f0dcc5b8fa261f08c662fe60945a7266
This is fantastic I just realized Thunkable can make a C type function call with parameters
void main() { // When scan1 button is clicked
string str
str = setletter#(6, Blueberries, e);
Label56 = str;
}
string
setletter#(fletter, ftext, frep[lacementletter) {
In Blueberries, get substring starting from first letter to index 6; // This will get "Bluebe"
Join it with "e"; // Now we have "Bluebee"
Then join it with the rest. That is in Blueberries get substring from letter index (6 + 1) = 7 to last letter index; // "rries"
}
Tatiang just brilliant. I just learnt a new trick I had never imagined Thunkable to could do a C type function call with Parameters

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants