View Complete Thread | FoxWeb Forum Home
Date:    Msg ID:   
From:    Thread:   
Well, it can't exactly be localized to the particular script, but you can set the delimiters in fw_enter.prg by setting the fwconfig.FwxDelimiterOpen and fwconfig.FwxDelimiterClose properties.
This means that you could do the following:

IF LOWER(Request.ServerVariables('SERVER_NAME')) = ''

fwconfig.FwxDelimiterOpen = '//'
fwconfig.FwxDelimiterClose = '\\'

fwconfig.FwxDelimiterOpen = '<%'
fwconfig.FwxDelimiterClose = '%>'
Setting the above properties does not write to the registry, but affects the current channel until you reset them in your code.  This is why you need to include the ELSE statement, which ensures that every time fw_enter is executed it sets the delimiters.
Please note that the delimiters are only used when a page needs to be compiled.  Once it's compiled the delimiters are ignored.

FoxWeb Support Team email

Sent by Anthony Shipley on 10/23/2003 12:50:54 AM:
Might be what I'm looking for. Because I want users to be able to define their own delimiters, using RegPut might actually result in userA changing it and affecting userB. Can it be localised to the page/script?

Yep, I know: Bloody Users!!!! :-)
Sent by FoxWeb Support on 10/19/2003 11:06:03 AM:
If you don't want to mess with the registry editor, you can add/modify the delimiter registry entries from a FoxWeb script as follows:

RegPut("FwxDelimiterOpen", "//")
RegPut("FwxDelimiterClose", "\\")

This actually changes the registry, so you only need to do it once.