![]() |
|
|||||||
| Home | Register | FAQ | Members List | Search | Today's Posts | Mark Forums Read |
| Questions & Help Needed Post any question regarding Basic4ppc. |
![]() |
|
|
LinkBack | Thread Tools | Display Modes |
|
|||
|
tvrman - here is the code I use for stripping the HTML Markup.
Pass the sub a Line of HTML Code:
Sub DecodeTxt(TheTxt)
tmp = ""
ch=""
leng = StrLength(TheTxt)
AON = false
For i = 0 To leng-1
ch = StrAt(TheTxt, i)
If (AON = false) Then
If (ch = "<") Then
AON = true
Else
' insert the char into text to save
tmp = tmp & ch
End If
Else
If (ch = ">") Then
AON = false
End If
End If ' else if AON is false (true)
Next
' TextConvert = LTRIM$(RTRIM$(tmp))
Return tmp
End Sub
|
|
|||
|
Hi, I did like this...
s value should not be blank PHP Code:
__________________
Rioven Sony Ericsson XPERIA X1i WM6.1 480x800 Display Resolution with QWERTY keyboard |
|
|||
|
Quote:
Thanks!!! Bpak ![]() It works very good. |
|
|||
|
Code:
Sub trim(txt) ch = SubString(txt, 0, 1) Do While Asc(ch) < 33 txt = SubString(txt, 1, StrLength(txt)-1) ch = SubString(txt, 0, 1) Loop ch = SubString(txt, StrLength(txt)-1, 1) Do While Asc(ch) < 33 txt = SubString(txt, 0, StrLength(txt)-1) ch = SubString(txt, StrLength(txt)-1, 1) Loop Return txt End Sub |
![]() |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
| Display Modes | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Compiling Problems - Images must not include spaces | J12345T | Bug Reports | 8 | 06-01-2008 08:55 AM |
| esiste la funzione trim? | marcomarco | Italian Forum | 2 | 04-16-2008 09:03 AM |
| SORT / TRIM Table(CSV) | sintaq | Questions & Help Needed | 1 | 03-24-2008 10:52 AM |
| Remove spaces from string | forisco | Questions & Help Needed | 2 | 11-16-2007 11:07 AM |
| Externalization of strings for localisation | Tirs | Questions & Help Needed | 2 | 05-29-2007 11:19 PM |