Thanks ,
; String$ = ReplaceString(String$, StringToFind$, ReplacementString$ [, Mode [, StartPosition [, NbOccurrences]]])
OneHtmlLineOut$ = ReplaceString(ImageHtmlLineIn$ ,"FolderAddress" ,HoldFolderAddress$ [, [, [, 1 ]]])
OneHtmlLineOut$ = ReplaceString(ImageHtmlLineIn$ ,"FolderAddress" ,HoldFolderAddress$ , , , 1)
OneHtmlLineOut$ = ReplaceString(ImageHtmlLineIn$ ,"FolderAddress" ,HoldFolderAddress$ [, , , 1])
Pls , what is the proper syntax ?
ReplaceString only once syntax ?
ReplaceString only once syntax ?
vmars.us Win11 x64 , Martin Guitar 000-16 (1995)
"All things in moderation , except for love and forgiveness."
"All things in moderation , except for love and forgiveness."
- StarBootics
- Addict
- Posts: 984
- Joined: Sun Jul 07, 2013 11:35 am
- Location: Canada
Re: ReplaceString only once syntax ?
Hello,
The square bracketed parameters means they are optional.
This is perfectly fine :
Best regards
StarBootics
The square bracketed parameters means they are optional.
This is perfectly fine :
Code: Select all
OneHtmlLineOut$ = ReplaceString(ImageHtmlLineIn$ ,"FolderAddress" ,HoldFolderAddress$)
StarBootics
The Stone Age did not end due to a shortage of stones !
Re: ReplaceString only once syntax ?
If you want to specify the NbOccurrences option then you must put something in the optional fields that come before it.
Code: Select all
OneHtmlLineOut$ = ReplaceString(ImageHtmlLineIn$ ,"FolderAddress" ,HoldFolderAddress$,#PB_String_NoCase,1,1)
Re: ReplaceString only once syntax ?
Thanks ,
Hmm..
So if I use at least 1 option , I must use them all ?
Hmm..
So if I use at least 1 option , I must use them all ?
vmars.us Win11 x64 , Martin Guitar 000-16 (1995)
"All things in moderation , except for love and forgiveness."
"All things in moderation , except for love and forgiveness."
Re: ReplaceString only once syntax ?
Additional options are required in order.
Example.. if you only need the 1st option the options that follow are not required.
If you need the 3rd option then you must also include the 2 options before it.
Example.. if you only need the 1st option the options that follow are not required.
If you need the 3rd option then you must also include the 2 options before it.
Re: ReplaceString only once syntax ?
Thanks Paul
vmars.us Win11 x64 , Martin Guitar 000-16 (1995)
"All things in moderation , except for love and forgiveness."
"All things in moderation , except for love and forgiveness."