Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.clipper.visual-objects > #10400
| From | Martin <Martin@spam.spam> |
|---|---|
| Newsgroups | comp.lang.clipper.visual-objects |
| Subject | Re: XML Help please Norbert or John |
| Date | 2017-04-07 10:32 +0100 |
| Organization | A noiseless patient Spider |
| Message-ID | <oc7m62$858$2@dont-email.me> (permalink) |
| References | <oc317d$bq$1@dont-email.me> <oc3f1n$j8a$1@dont-email.me> <oc5no0$oht$1@dont-email.me> <oc687s$l6q$1@dont-email.me> |
It compiles
Tahnkyou
On 06/04/2017 21:28, JohnMartens wrote:
> FUNCTION LeesRechtsVan(cHeleString AS STRING,uStart AS USUAL) AS STRING
> *
> * functie om gedeelte van rechts te lezen uit een grotere string
> LOCAL cFuncResult AS STRING
> LOCAL dwAantalRechts AS DWORD
> *
> * kijken naar vorm van tweede parameter
> DO CASE
> CASE IsString(uStart)
> *
> * kijken of string wel lang genoeg is
> DO CASE
> CASE SLen(cHeleString) < SLen(uStart)
> CASE uStart $ cHeleString
> dwAantalRechts := At(uStart,cHeleString)-1+Len(uStart)
> cFuncResult :=
> Right(cHeleString,Len(cHeleString)-dwAantalRechts)
> OTHERWISE
> dwAantalRechts := SLen(uStart)
> cFuncResult :=
> Right(cHeleString,Len(cHeleString)-dwAantalRechts)
> ENDCASE
> CASE IsNumeric(uStart) //.AND. uStart > 0
> *
> * kijken of string wel lang genoeg is
> DO CASE
> CASE uStart = 0
> cFuncResult := cHeleString
> CASE SLen(cHeleString) < DWORD(uStart)
> cFuncResult := ''
> OTHERWISE
> dwAantalRechts := SLen(cHeleString)-DWORD(uStart)
> cFuncResult := Right(cHeleString,dwAantalRechts)
> ENDCASE
> ENDCASE
> RETURN cFuncResult
>
>
> Op 6-4-2017 om 17:47 schreef Martin:
>> Thanks for this John
>>
>> Only one now I have an issue with is LeesRechtsVan()
>>
>> I am afraid I know no Dutch despite common ancestor!
>>
>> But it seems to be Read Right From
>>
>> But one of my favourite game developers is Amsterdam based.
>>
>> Thanks
>>
>> Martin
>>
>>
>> On 05/04/2017 20:06, JohnMartens wrote:
>>> These are mine.
>>> If you have any other questions let me know
>>>
>>> FUNCTION SpecialKarOmzetten(cInhoud) AS STRING
>>> *
>>> * functie om alle speciale karakters eruit te halen en te vervangen
>>> LOCAL cFuncResult AS STRING
>>> LOCAL aSpecialKar AS ARRAY
>>> LOCAL dwIndexNr AS DWORD
>>> *
>>> * array zetten
>>> aSpecialKar := SpecialKar()
>>> *
>>> * string overnemen
>>> cFuncResult := cInhoud
>>> *
>>> * aflopen alle speciale karakters
>>> FOR dwIndexNr := 1 UPTO ALen(aSpecialKar)
>>> *
>>> * vervangen van dit karakter
>>> cFuncResult :=
>>> StrTran(cFuncResult,aSpecialKar[dwIndexNr,1],aSpecialKar[dwIndexNr,2])
>>> NEXT
>>> RETURN cFuncResult
>>>
>>> FUNCTION SpecialKar() AS ARRAY
>>> *
>>> * functie op array terug te geven die conversie mogelijk maakt
>>> LOCAL aFuncResult := {} AS ARRAY
>>> AAdd(aFuncResult,{CHR(217),'ë'})
>>> AAdd(aFuncResult,{CHR(137),'ë'})
>>> AAdd(aFuncResult,{CHR(130),'é'})
>>> AAdd(aFuncResult,{CHR(138),'è'})
>>> AAdd(aFuncResult,{CHR(148),'ö'})
>>> AAdd(aFuncResult,{CHR(247),'ö'})
>>> AAdd(aFuncResult,{CHR(162),'ó'})
>>> AAdd(aFuncResult,{CHR(149),'ò'})
>>> AAdd(aFuncResult,{CHR(129),'ü'})
>>> AAdd(aFuncResult,{CHR(163),'ú'})
>>> AAdd(aFuncResult,{CHR(151),'ù'})
>>> AAdd(aFuncResult,{CHR(218),'é'})
>>> RETURN aFuncResult
>>>
>>> FUNCTION XmlSymbols2Kar(cInhoudMetSymbols AS STRING,cMode AS STRING) AS
>>> STRING
>>> *
>>> * functie om alle kodes eruit te halen en te vullen met speciale
>>> karakters
>>> LOCAL cFuncResult AS STRING
>>> LOCAL aXmlSymbols AS ARRAY
>>> LOCAL dwIndexNr AS DWORD
>>> *
>>> * array zetten
>>> aXmlSymbols := XmlSymbols()
>>> *
>>> * string overnemen
>>> cFuncResult := cInhoudMetSymbols
>>> *
>>> * aflopen allen speciale karakters
>>> FOR dwIndexNr := ALen(aXmlSymbols) DOWNTO 1
>>> *
>>> * vervangen van dit karakter
>>> IF Empty(cMode) .or. aXmlSymbols[dwIndexNr,3] == cMode
>>> cFuncResult :=
>>> StrTran(cFuncResult,aXmlSymbols[dwIndexNr,2],aXmlSymbols[dwIndexNr,1])
>>> ENDIF
>>> NEXT
>>> RETURN cFuncResult
>>>
>>>
>>> FUNCTION XmlSymbols2Kar(cInhoudMetSymbols AS STRING,cMode AS STRING) AS
>>> STRING
>>> *
>>> * replace Xml sybmols (also HTML) with special chars
>>> LOCAL cFuncResult AS STRING
>>> LOCAL aXmlSymbols AS ARRAY
>>> LOCAL dwIndexNr AS DWORD
>>> *
>>> * array zetten
>>> aXmlSymbols := XmlSymbols()
>>> *
>>> * string overnemen
>>> cFuncResult := cInhoudMetSymbols
>>> *
>>> * aflopen allen speciale karakters
>>> FOR dwIndexNr := ALen(aXmlSymbols) DOWNTO 1
>>> *
>>> * vervangen van dit karakter
>>> IF Empty(cMode) .or. aXmlSymbols[dwIndexNr,3] == cMode
>>> cFuncResult :=
>>> StrTran(cFuncResult,aXmlSymbols[dwIndexNr,2],aXmlSymbols[dwIndexNr,1])
>>> ENDIF
>>> NEXT
>>> RETURN cFuncResult
Back to comp.lang.clipper.visual-objects | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
XML Help please Norbert or John Martin <Martin@spam.spam> - 2017-04-05 16:10 +0100
Re: XML Help please Norbert or John JohnMartens <martens@tennishulp.info> - 2017-04-05 21:06 +0200
Re: XML Help please Norbert or John Martin <Martin@spam.spam> - 2017-04-06 09:14 +0100
Re: XML Help please Norbert or John Martin <Martin@spam.spam> - 2017-04-06 16:47 +0100
Re: XML Help please Norbert or John JohnMartens <martens@tennishulp.info> - 2017-04-06 22:28 +0200
Re: XML Help please Norbert or John Martin <Martin@spam.spam> - 2017-04-07 10:31 +0100
Re: XML Help please Norbert or John Martin <Martin@spam.spam> - 2017-04-07 10:32 +0100
XML Help please Norbert or John nk <n.kolb@aon.at> - 2017-04-06 01:08 +0200
Re: XML Help please Norbert or John Martin <Martin@spam.spam> - 2017-04-11 12:44 +0100
csiph-web