Freelance Project Requests Software Development in C# WPF Asp.Net Core Vba Excel Word SQL-Server EF Linq, UWP Net

Solved: conversion from void to non-scalar type String requested bei String.replace und toLowerCase


Error message:


error: conversion from 'void' to non-scalar type 'String' requested


Fehlerzeile, Arduino Original-Code

Original from the -> Tutorial/StringSubstring

String stringTwo = stringOne.replace("<html><head></head><body></body></html>", "Blah");


Debug Message

exit status 1

conversion from 'void' to non-scalar type 'String' requested




No transfer to a zwide variable







In the case of replace(..) the return istransferred to a second variable, but the result is written back to the variable itself



  // put your main code here, to run repeatedly:

   String stringOne = "abc";

   String stringTwo = stringOne;



   stringTwo = stringTwo.substring(2);






   //string as result of string.replace(a,b)

   stringTwo = stringOne.replace("a","b");





Contact for Jobs, Project Requests: