forum.vdsworld.com Forum Index forum.vdsworld.com
Visit VDSWORLD.com
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 


String processing DLL
Goto page Previous  1, 2, 3 ... 9, 10, 11, 12  Next
 
Post new topic   Reply to topic    forum.vdsworld.com Forum Index -> Other Product Support/Announcements
View previous topic :: View next topic  
Author Message
Dr. Dread
Professional Member
Professional Member


Joined: 03 Aug 2001
Posts: 1065
Location: Copenhagen, Denmark

PostPosted: Tue Dec 27, 2005 10:20 am    Post subject: Reply with quote

Version 5.1 has been uploaded. Single addition: function MatchLines now takes an IDENTITY parameter
which forces full-line matching.

Greetz
Dread

_________________
~~ Alcohol and calculus don't mix... Don't drink and derive! ~~

String.DLL * advanced string processing
Back to top
View user's profile Send private message
marty
Professional Member
Professional Member


Joined: 10 May 2001
Posts: 789

PostPosted: Wed Dec 28, 2005 12:37 pm    Post subject: Reply with quote

IDENTITY works like a charm for me Very Happy

Much appriciated..
Back to top
View user's profile Send private message Send e-mail Visit poster's website MSN Messenger
Dr. Dread
Professional Member
Professional Member


Joined: 03 Aug 2001
Posts: 1065
Location: Copenhagen, Denmark

PostPosted: Wed Dec 28, 2005 1:28 pm    Post subject: Reply with quote

Thumbs Up

Dread

_________________
~~ Alcohol and calculus don't mix... Don't drink and derive! ~~

String.DLL * advanced string processing
Back to top
View user's profile Send private message
Aslan
Valued Contributor
Valued Contributor


Joined: 31 May 2001
Posts: 589
Location: Memphis, TN USA

PostPosted: Sat Jan 07, 2006 11:57 pm    Post subject: Reply with quote

Hey Dread..

Is there an opposite function to to the following?

@string(Thousand, [input string (integer only)])
Converts an integer value into a string with thousand separator (as set by the user's system).

Basically what I need is a function that removes the thousand separator if it exists

eg. 3,456,789 converted to 3456789

Thanks in advance Wink
Back to top
View user's profile Send private message Send e-mail
Serge
Professional Member
Professional Member


Joined: 04 Mar 2002
Posts: 1480
Location: Australia

PostPosted: Sun Jan 08, 2006 12:29 am    Post subject: Reply with quote

a suggestion ... from memory, @STRING(DEL,%%string,",") will remove the comma from %%STRING ... you can use this to remove commas from numbers

serge

_________________
Back to top
View user's profile Send private message Visit poster's website MSN Messenger
Aslan
Valued Contributor
Valued Contributor


Joined: 31 May 2001
Posts: 589
Location: Memphis, TN USA

PostPosted: Sun Jan 08, 2006 2:18 am    Post subject: Reply with quote

This did it for me

@string(DelType, [input string], [Character type - default is Alpha])

I used the PUNCT character type

Character types:
Alpha = All uppercase/lowercase letters (depends on locale)
Upper = A..Z + uppercase accented letters + national chars (depends on locale)
Lower = a..z + lowercase accented letters + national chars (depends on locale)
AZUpper = only A..Z
AZLower = only a..z
Extended = Remove extended chars (128-255)
Punct = Strip punctuation chars !"#$%&'()*+,-./:;<=>?@[\]^_`{|}~€‚ƒ„…†‡ˆ‰‹‘’“”•–—˜™›
Digit = 0..9
Delim = Remove delimiters [char pos 1-47, 58-64, 91-96, 123-126]
Control = Remove any control chars [char pos 0-31 in char table]
AlphaNum = a..z (upper/lowercase) + 0..9 + _
Back to top
View user's profile Send private message Send e-mail
Serge
Professional Member
Professional Member


Joined: 04 Mar 2002
Posts: 1480
Location: Australia

PostPosted: Sun Jan 08, 2006 7:20 am    Post subject: Reply with quote

i thought about that after the post as it has the added benefit of getting rid of full stops which are used in some countries as commas for numbers

serge

_________________
Back to top
View user's profile Send private message Visit poster's website MSN Messenger
Dr. Dread
Professional Member
Professional Member


Joined: 03 Aug 2001
Posts: 1065
Location: Copenhagen, Denmark

PostPosted: Sun Mar 05, 2006 8:51 am    Post subject: Reply with quote

Version 5.3 has been released. This version fixes a bug in the FileOpsRes range of functions which prevented
the reuse of a previously used file slot.

Registered users should have been notified by mail.

Greetz
Dread

_________________
~~ Alcohol and calculus don't mix... Don't drink and derive! ~~

String.DLL * advanced string processing
Back to top
View user's profile Send private message
Serge
Professional Member
Professional Member


Joined: 04 Mar 2002
Posts: 1480
Location: Australia

PostPosted: Wed Mar 08, 2006 8:11 am    Post subject: Reply with quote

dr dread,

is there a way i can use your string.dll to permute words in a string so that for example:

life is good => is life good, is good life, life good is, good is life, good life is

thanks in advance

serge

_________________
Back to top
View user's profile Send private message Visit poster's website MSN Messenger
Dr. Dread
Professional Member
Professional Member


Joined: 03 Aug 2001
Posts: 1065
Location: Copenhagen, Denmark

PostPosted: Wed Mar 08, 2006 9:22 am    Post subject: Reply with quote

String.DLL has no premade function to do that. You could use WordCount to get the count and then repeat ... until
with GetWords to extract all the words to variables.

Then comes the hard part of doing the permutations - you'll just have to make nested loops for each of
the words extracted.

Greetz
Dread

_________________
~~ Alcohol and calculus don't mix... Don't drink and derive! ~~

String.DLL * advanced string processing
Back to top
View user's profile Send private message
Serge
Professional Member
Professional Member


Joined: 04 Mar 2002
Posts: 1480
Location: Australia

PostPosted: Wed Mar 08, 2006 9:45 am    Post subject: Reply with quote

ok, thanks for that Smile

serge

_________________
Back to top
View user's profile Send private message Visit poster's website MSN Messenger
Aslan
Valued Contributor
Valued Contributor


Joined: 31 May 2001
Posts: 589
Location: Memphis, TN USA

PostPosted: Sun Mar 12, 2006 5:44 pm    Post subject: Reply with quote

Hey Dread,

Can you add BITWISE functions to your String.dll?
Back to top
View user's profile Send private message Send e-mail
Dr. Dread
Professional Member
Professional Member


Joined: 03 Aug 2001
Posts: 1065
Location: Copenhagen, Denmark

PostPosted: Thu Mar 16, 2006 9:36 am    Post subject: Reply with quote

Never consided bitwise functions - normally they wouldn't be very relevant in relation to strings, would they?

Greetz
Dread

_________________
~~ Alcohol and calculus don't mix... Don't drink and derive! ~~

String.DLL * advanced string processing
Back to top
View user's profile Send private message
Dave®
Valued Contributor
Valued Contributor


Joined: 03 Sep 2005
Posts: 403
Location: Australia

PostPosted: Wed Jun 21, 2006 3:17 am    Post subject: Reply with quote

Hey Dread,

Is there a bug in the MatchLines function? I've tried different versions of string.dll with the same results. I can't get it to do anything other copy the whole input file to the outputfile Crying or Very sad . Or maybe there's an error in the help file?

I'm using:

Code:
%t = @string(FileOps,MatchLines,Data\listings.xml,Data\newfile.tmp,tv,GETMATCH,,)

_________________
cheers

Dave®
Back to top
View user's profile Send private message Visit poster's website
Dr. Dread
Professional Member
Professional Member


Joined: 03 Aug 2001
Posts: 1065
Location: Copenhagen, Denmark

PostPosted: Wed Jun 21, 2006 8:41 am    Post subject: Reply with quote

It should work. Just tested with an HTML file and the code snippet that you listed. Works as expected.

If ya want me to have a look try to mail me an example input file. Mail address in help file.

Greetz
Dread

_________________
~~ Alcohol and calculus don't mix... Don't drink and derive! ~~

String.DLL * advanced string processing
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    forum.vdsworld.com Forum Index -> Other Product Support/Announcements All times are GMT
Goto page Previous  1, 2, 3 ... 9, 10, 11, 12  Next
Page 10 of 12

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You can attach files in this forum
You can download files in this forum




Twitter@vdsworld       RSS

Powered by phpBB © 2001, 2005 phpBB Group